/* Base: layout real da tarefa Fontes e Drivers. Somente os encaixes do gerador
   de fitas e a navegação entre formatos diferem da referência. */
:root { --text: #000; --muted: #5F6480; }
.topbar { position: static; backdrop-filter: none; min-height: 0; padding: 20px 34px; gap: 26px; background: #fff; }
.brand-context { gap: 26px; }
.brand-context img { width: 108px; height: 43px; object-fit: contain; }
.context-copy { border-left: 1px solid var(--line); padding-left: 26px; }
.context-copy span { margin: 0; font-size: 9px; font-weight: 600; letter-spacing: .14em; }
.context-copy h1 { font-size: 17px; margin-top: 4px; font-weight: 600; }
.top-actions { gap: 9px; margin-left: auto; }
.top-link { min-height: 36px; padding: 9px 12px; font-size: 11px; border-radius: 6px; }
.references-menu { padding: 0; border: 0; }
.references-menu summary::after { font-size: 11px; }
.references-menu summary { min-height: 36px; }
.division-nav { display: flex; gap: 26px; padding: 0 34px; border-bottom: 1px solid var(--line); }
.division-nav button { min-height: 46px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--slate); font-size: 12px; font-weight: 600; padding: 0 0 2px; }
.division-nav button[aria-pressed="true"] { color: #000; border-bottom-color: #000; }
.workspace { width: 100%; margin: 0; gap: 0; align-items: stretch; }
.strips-workspace .controls { grid-column: 2; grid-row: 1; position: static; max-height: none; overflow: visible; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 31px 25px 25px; }
.controls-head { padding: 0; border: 0; margin-bottom: 24px; }
.controls-head h2 { font-size: 26px; margin-top: 8px; }
.catalog-picker { padding: 0 0 20px; gap: 8px; }
.catalog-picker label { font-size: 10px; color: var(--slate); font-weight: 400; }
.catalog-picker input, .catalog-picker select { min-height: 38px; padding: 10px 11px; font-size: 12px; border-color: #D7DACF; border-radius: 7px; }
.catalog-filter { gap: 7px; }
.catalog-filter .action { min-height: 38px; font-size: 10px; padding: 0 9px; }
.catalog-picker p { font-size: 10px; color: var(--slate); }
.catalog-picker #productTitle { font-size: 11px; color: #000; }
.state-badge { font-size: 9px; padding: 4px 6px; background: var(--paper); }
.compact-details { padding: 10px 0 0; }
.compact-details summary { min-height: 26px; font-size: 10px; font-weight: 400; color: var(--slate); }
.compact-details summary::before { content: none; }
.compact-details p { font-size: 10px; }
.form { padding: 19px 0 0; gap: 17px; }
.field-group legend { font-size: 12px; padding-bottom: 12px; font-weight: 600; }
.field label { font-size: 10px; color: var(--slate); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-section { gap: 10px; }
.field input, .field select { min-height: 38px; font-size: 12px; padding: 9px 10px; border-color: #D7DACF; }
.field small, .status { font-size: 10px; }
.form-actions .action { min-height: 38px; padding: 9px 8px; font-size: 10px; border-radius: 7px; }
.barcode-actions .action { min-height: 38px; font-size: 10px; }
.barcode-actions p { font-size: 10px; }
.strips-workspace .stage { grid-column: 1; grid-row: 1; padding: 30px 30px 22px; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; }
.strips-workspace .catalog-only { grid-column: 1; grid-row: 1; border: 0; border-radius: 0; padding: 30px; }
.catalog-only h2 { font-size: 27px; }
.catalog-only p { font-size: 12px; margin-top: 16px; }
.catalog-only dl { font-size: 12px; margin-top: 25px; }
.catalog-only .action { margin-top: 24px; font-size: 11px; }
.viewbar { padding: 0; border: 0; background: transparent; margin-bottom: 13px; }
.view-buttons { gap: 3px; }
.view-button { min-height: 34px; font-weight: 400; }
.view-tabs .view-button[aria-pressed="true"] { background: #fff; border: 0; color: #000; box-shadow: 0 1px 4px #0000000A; }
.view-tabs .view-button:hover { background: #fff; }
.strip-canvas .view-area { height: clamp(380px,44vw,640px); min-height: 0; max-height: none; padding: 54px 26px 48px; background: #F2F3EF; }
.pack-grid { gap: 26px; height: 100%; align-content: center; }
.stage[data-active-view="plan"] .view-area { height: 650px; }
.stage[data-active-view="plan"] .pack-grid, .stage[data-active-view="reference"] .pack-grid { align-content: center; }
.artboard { border: 0; border-radius: 0; box-shadow: 0 12px 18px #00000010; }
.artboard.plan { box-shadow: none; background: transparent; }
.artboard.reference { padding: 0; min-height: 0; background: transparent; box-shadow: none; }
.artboard.reference img { max-height: 530px; margin: auto; }
.artboard.sticker { padding: 16px; border-radius: 6px; }
.artboard.sticker svg { max-width: 195px; }
.artboard.sticker.back svg { max-width: 265px; }
.pack-card figcaption { border: 0; border-radius: 0; padding: 10px 0 0; background: transparent; font-size: 10px; color: var(--slate); }
.pack-card figcaption span { display: none; }
.pack-card figcaption strong { font-weight: 400; }
.preview-tools { border: 0; padding: 13px 0 0; }
.preview-tools span, .zoom-control { font-size: 10px; color: var(--slate); }
.zoom-control select { width: auto; min-height: 28px; padding: 4px 20px 4px 8px; font-size: 10px; }
.export-toolbar { padding: 19px 0 0; margin-top: 20px; }
.export-toolbar .action { min-height: 38px; font-size: 11px; }
.export-toolbar p { font-size: 10px; }
.driver-workspace .editor { display: block; }
.driver-workspace .side-editor,.driver-workspace .end-editor { border-top:1px solid var(--line);padding:0 0 19px; }
.driver-workspace .side-editor>a,.driver-workspace .end-editor>a { display:block;font-size:10px;margin-top:10px;text-decoration:none;font-weight:600; }
.driver-workspace .dimension-fields input { width: 100%; }
.driver-workspace .form-message { overflow-wrap: anywhere; }
.driver-catalog-picker { margin-bottom: 20px; }
.driver-catalog-picker label { margin-top: 0; }
.driver-catalog-picker input { width: 100%; min-height: 38px; padding: 10px 11px; font-size: 12px; border: 1px solid #D7DACF; border-radius: 7px; background: #fff; }
.driver-status { font-size: 10px; color: var(--slate); margin-top: 9px; }
.driver-catalog-only { grid-column: 1; grid-row: 1; padding: 30px; }
.driver-catalog-only h2 { font-size: 27px; }
.driver-catalog-only p { font-size: 12px; color: var(--slate); margin: 20px 0; }
.driver-catalog-only dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 12px; }
.driver-catalog-only dd { margin: 0; }
.driver-gtin-error { color: var(--danger); font-size: 10px; margin-top: 8px; }
#label-gtin[aria-invalid="true"] { border-color: var(--danger); }
.driver-workspace details.driver-gtin-preview { border: 0; padding: 12px 0 0; }
.driver-workspace .review-limits a { overflow-wrap: anywhere; }
.drafts-menu .reference-links button { width: 100%; padding: 10px 12px; border: 0; border-radius: 5px; background: #fff; text-align: left; font-size: 12px; }
.drafts-menu .reference-links button:hover { background: var(--paper); }
.drafts-menu .reference-links p { font-size: 10px; color: var(--slate); padding: 5px 12px; }
#driverSection .under-canvas { align-items: center; }
.driver-zoom { margin-left: auto; }
#driverSection #preview-stage { overflow: auto; }
#driverSection #preview-stage[data-zoomed="true"] { display: block; }
#driverSection #preview-stage[data-zoomed="true"] > svg { max-width: none; max-height: none; margin: auto; }
#driverSection .canvas-wrap:has([data-zoomed="true"]) .canvas-corner,
#driverSection .canvas-wrap:has([data-zoomed="true"]) .canvas-bottom { position: static; padding: 12px 16px; }
.draft-dialog { width: min(460px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: #000; background: #fff; font: inherit; }
.draft-dialog::backdrop { background: #0006; }
.draft-dialog h2 { font-size: 22px; margin-bottom: 14px; }
.draft-dialog p { font-size: 12px; margin-top: 12px; color: var(--slate); overflow-wrap: anywhere; }
.draft-dialog .dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.draft-dialog .dialog-actions button { width: auto; padding: 10px 14px; }
.draft-dialog .dialog-actions .primary-button { background: var(--green); }
/* Source callouts remain archived in the imported HTML. No editorial filler
   is added to the working tool; the same views are reached through its tabs. */
#driverSection .construction, #driverSection .design-notes { display: none; }
#driverSection footer { padding: 14px 30px; }
@media(min-width:1700px) {
  .strips-workspace .controls { padding-inline: 32px; }
  .strips-workspace .stage { padding-inline: 50px; }
}
@media(max-width:1100px) {
  .strips-workspace .controls { padding: 27px 19px; }
  .strips-workspace .stage { padding: 25px 21px; }
  .viewbar { flex-direction: row; }
}
@media(max-width:800px) {
  .topbar { flex-direction: row; align-items: center; padding: 17px 21px; gap: 19px; flex-wrap: wrap; }
  .brand-context { gap: 19px; }
  .context-copy { padding-left: 18px; }
  .brand-context img { width: 90px; height: 36px; }
  .context-copy h1 { font-size: 14px; }
  .context-copy span { display: block; font-size: 8px; }
  .top-actions { justify-content: flex-end; }
  .division-nav { padding-inline: 21px; }
  .strips-workspace .stage, .strips-workspace .catalog-only { grid-column: 1; grid-row: 1; padding: 25px 20px 22px; }
  .strips-workspace .controls { grid-column: 1; grid-row: 2; border-left: 0; border-top: 1px solid var(--line); padding: 25px 22px; display: block; }
  .strip-canvas .view-area { height: auto; min-height: 310px; padding: 50px 20px 40px; }
  .stage[data-active-view="compare"] .pack-grid, .stage[data-active-view="stickers"] .pack-grid { grid-template-columns: 1fr 1fr; }
  .stage[data-active-view="plan"] .view-area { height: auto; min-height: 310px; }
  .pack-card figcaption { flex-direction: row; }
  .driver-workspace .editor { display: block; }
}
@media(max-width:500px) {
  .topbar { padding: 14px 16px; gap: 13px; }
  .brand-context { gap: 13px; }
  .brand-context img { width: 82px; height: 34px; }
  .context-copy { padding-left: 12px; }
  .context-copy h1 { font-size: 13px; }
  .context-copy span { font-size: 7px; letter-spacing: .08em; }
  .top-actions { width: 100%; justify-content: flex-start; margin: 0; gap: 6px; }
  .top-link { flex: 0 1 auto; font-size: 10px; padding-inline: 10px; }
  .references-menu { flex: 0 1 auto; }
  .reference-links { left: 0; right: auto; }
  .division-nav { padding-inline: 16px; }
  .strips-workspace .stage { padding: 23px 14px 20px; }
  .strips-workspace .controls { padding: 24px 20px; }
  .view-buttons { width: auto; }
  .view-button { flex: 0 1 auto; }
  .strip-canvas .view-area { padding: 42px 12px 36px; }
  .stage[data-active-view="compare"] .pack-grid { gap: 12px; }
  .stage[data-active-view="stickers"] .pack-grid { grid-template-columns: 1fr; gap: 20px; }
  .artboard.sticker svg { max-width: 180px; }
  .preview-tools span, .zoom-control { font-size: 9px; }
  .driver-catalog-only { padding: 23px 14px; }
  .driver-catalog-only dl { grid-template-columns: 100px 1fr; }
}
@page { size: A4; margin: 12mm; }
@media print {
  body > * { display: none !important; }
  body:not([data-print-mode="drivers"]) #editor { display: block !important; }
  .division-nav, .design-topline, .canvas-corner, .canvas-bottom, #driverSection { display: none !important; }
  .strips-workspace { display: block; min-height: 0; }
  .strips-workspace .stage { padding: 0; display: block !important; }
  .strip-canvas { border: 0; overflow: visible; background: white; }
  .strip-canvas .view-area { height: auto !important; min-height: 0; padding: 0; overflow: visible; }
  .pack-grid { height: auto; align-content: start; }
  .artboard { box-shadow: none; }
  body[data-print-mode="drivers"] #driverPrintOutput { display: block !important; }
  #driverPrintOutput > svg { width: 100%; height: 250mm; display: block; }
  #driverPrintOutput > p { font-size: 9pt; margin-bottom: 4mm; }
}
#driverPrintOutput { display: none; }
@page driver-proof { size: A3 landscape; margin: 7mm; }
@media print { #driverPrintOutput { page: driver-proof; } }
