.brand-mark { overflow: hidden; }
.brand-logo { display:block; width:184px; height:auto; max-height:48px; object-fit:contain; object-position:left center; filter: invert(20%) sepia(28%) saturate(1240%) hue-rotate(174deg) brightness(83%) contrast(94%); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark.fallback::after { content: "M"; }

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(23,32,51,.96), rgba(13,20,36,.78));
}
.overview-head h2 { margin: 3px 0; font-size: clamp(24px, 3vw, 38px); }
.overview-head p:last-child { margin: 0; color: var(--muted); }

.file-drop {
  padding: 18px;
  border: 1px dashed #4a5870;
  border-radius: 11px;
  background: #0d1422;
  cursor: pointer;
}
.file-drop:hover { border-color: var(--accent); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop span { color: var(--text); font-weight: 700; }
label small, .file-drop small { color: var(--muted); font-size: 11px; }
.selected-files { display: grid; gap: 6px; margin: -6px 0 15px; }
.file-chip { padding: 8px 10px; border-radius: 8px; background: var(--surface2); color: #cad1dd; font-size: 12px; }

@media (max-width: 720px) {
  .overview-head { align-items: flex-start; padding: 20px; }
  .overview-head .secondary { white-space: nowrap; font-size: 12px; }
}

/* Tema claro MARS */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface2: #edf1f6;
  --line: #dfe5ec;
  --text: #182131;
  --muted: #6f7b8d;
  --accent: #ef5b32;
  --accent2: #d74723;
  --green: #21a67a;
  --shadow: 0 20px 55px rgba(35, 48, 67, .09);
}
body { background: linear-gradient(135deg, #f7f9fb 0%, #eef2f6 100%); color: var(--text); }
.sidebar { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 10px 0 40px rgba(35,48,67,.04); }
.brand { color: var(--text); }
.nav-item { color: #748094; }
.nav-item:hover, .nav-item.active { background: #f1f4f8; color: var(--text); }
.nav-item span svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.nav-item span { vertical-align: middle; }
.stat i svg, .list-icon svg { width: 20px; height: 20px; fill: currentColor; }
.stat i { display: grid; place-items: center; }
.panel, .stat { background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.overview-head { background: linear-gradient(120deg, #fff, #f7f9fc); box-shadow: var(--shadow); }
input, select, textarea { background: #f8fafc; color: var(--text); }
.list-icon, .tag, .file-chip { background: #f1f4f8; }
.table-panel { background: #fff; }
td { color: #354052; }
.result-card { background: linear-gradient(140deg, #fc724b, #e84d2b); }
.file-drop { background: #f8fafc; }
.file-drop span { color: var(--text); }
.icon-button { background: #f0f3f7; color: var(--text); }
dialog { background: #fff; color: var(--text); }
dialog::backdrop { background: rgba(26,35,50,.35); }

.title-line { display: flex; align-items: center; gap: 10px; }
.title-line h1, .title-line h3 { margin: 0; }
.help-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #cbd4df;
  border-radius: 50%;
  background: #fff;
  color: #6a7688;
  font: 700 12px/1 inherit;
  cursor: pointer;
}
.help-button:hover { border-color: var(--accent); color: var(--accent); }
.help-button::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 9px);
  width: 210px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #202938;
  color: #fff;
  font: 500 11px/1.4 Inter, sans-serif;
  text-align: left;
  box-shadow: 0 10px 30px rgba(20,28,40,.2);
  opacity: 0;
  transform: translate(-50%, 5px);
  pointer-events: none;
  transition: .18s;
}
.help-button:hover::after, .help-button:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.help-button.mini { width: 19px; height: 19px; margin-left: 4px; }
.help-modal { padding: 28px; }
.help-modal #help-content { color: var(--muted); }
.help-modal ul { padding-left: 19px; }
.help-modal li { margin: 8px 0; }

.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.info-strip article { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.75); }
.info-strip strong, .info-strip small { display: block; }
.info-strip small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.info-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: #fff0eb; color: var(--accent); }
.info-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recent-panel { margin-top: 14px; }

@media (max-width: 900px) { .info-strip { grid-template-columns: 1fr; } }

/* Paleta clara, cinzento-escuro e azul-marinho */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface2: #e9edf2;
  --line: #d9dee5;
  --text: #242b35;
  --muted: #707a87;
  --accent: #173b67;
  --accent2: #24588f;
  --green: #27856d;
  --shadow: 0 18px 48px rgba(29, 39, 52, .09);
}
body { background: linear-gradient(135deg, #f7f8fa 0%, #edf0f4 100%); }
.brand b, .eyebrow, .text-button, .tag { color: var(--accent2); }
.brand-mark { background: linear-gradient(145deg, #102d50, #285f96); box-shadow: 0 8px 24px rgba(23,59,103,.23); }
.primary { background: linear-gradient(135deg, #173b67, #24588f); box-shadow: 0 9px 28px rgba(23,59,103,.18); }
.nav-item.active { box-shadow: inset 3px 0 #173b67; }
.nav-item:hover, .nav-item.active { background: #e8edf3; color: #173b67; }
.info-icon { background: #e8eff7; color: #24588f; }
.result-card { background: linear-gradient(145deg, #173b67, #102b4c); box-shadow: 0 20px 52px rgba(16,43,76,.19); }
.help-button:hover { border-color: #24588f; color: #24588f; }
input:focus, select:focus, textarea:focus, .file-drop:hover { border-color: #24588f; }
.status-dot { background: #27856d; box-shadow: 0 0 12px rgba(39,133,109,.45); }
.help-modal h4 { margin: 22px 0 6px; color: var(--text); font-size: 14px; }
.help-modal p { line-height: 1.65; }

.result-card, .result-card span, .result-card strong, .result-card b { color: #ffffff; }
.result-card .eyebrow { color: #b9d7f5; }
.result-card .divider { background: rgba(255,255,255,.28); }
.result-card .breakdown span { background: rgba(5,20,38,.25); color: #c6d8eb; }
.client-summary { margin-top: 18px; border-left: 4px solid #24588f; }
.client-summary .panel-head { margin-bottom: 12px; }
.client-summary #client-message { margin: 0; color: #465365; font-size: 14px; line-height: 1.65; }
.copy-summary { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #ced7e2; border-radius: 9px; background: #f7f9fb; color: #173b67; font: 700 12px/1 Inter, sans-serif; cursor: pointer; }
.copy-summary:hover { border-color: #24588f; background: #edf3f9; }
.copy-summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.filter-panel { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.filter-top { display: flex; align-items: center; gap: 12px; }
.advanced-search { min-height: 46px; background: #f7f9fb; }
.advanced-search svg { width: 19px; height: 19px; fill: none; stroke: #687588; stroke-width: 1.8; stroke-linecap: round; }
.advanced-search kbd { display: none; }
.clear-filters { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #5d6878; font: 700 12px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.clear-filters:hover { border-color: #24588f; color: #173b67; }
.clear-filters svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filter-groups { display: grid; grid-template-columns: minmax(420px, 1.8fr) repeat(3, minmax(150px, .65fr)); gap: 14px; align-items: end; margin-top: 16px; }
.filter-group { min-width: 0; }
.filter-label { display: block; margin-bottom: 7px; color: #758092; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { padding: 9px 11px; border: 1px solid #d9e0e8; border-radius: 999px; background: #f8fafc; color: #5f6b7d; font: 700 11px/1 Inter, sans-serif; cursor: pointer; transition: .18s; }
.filter-chip:hover { border-color: #8fa9c4; color: #173b67; }
.filter-chip.active { border-color: #173b67; background: #173b67; color: #fff; box-shadow: 0 5px 15px rgba(23,59,103,.15); }
.compact-filter { margin: 0; }
.compact-filter select { min-height: 40px; padding: 9px 34px 9px 11px; background-color: #f8fafc; font-size: 12px; }
.filter-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e9ef; color: #7a8595; font-size: 11px; }
#results-count { color: #263548; font-weight: 800; }

@media (max-width: 1180px) { .filter-groups { grid-template-columns: 1fr 1fr 1fr; } .type-filter { grid-column: 1 / -1; } }
@media (max-width: 720px) { .filter-top { align-items: stretch; flex-direction: column; } .clear-filters { justify-content: center; } .filter-groups { grid-template-columns: 1fr; } .type-filter { grid-column: auto; } .advanced-search kbd { display: none; } }

body { caret-color: transparent; }
input, textarea, [contenteditable="true"] { caret-color: #24588f; }
.price-lock-button { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 17px; padding: 9px 12px; border: 1px solid #d6dfe9; border-radius: 9px; background: #f4f7fa; color: #36536f; font: 700 11px/1 Inter, sans-serif; cursor: pointer; }
.price-lock-button:hover { border-color: #24588f; background: #edf3f9; }
.price-lock-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc-form input:disabled { color: #657286; background: #eef2f6; cursor: not-allowed; }
.modal-description { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.danger-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 9px; background: #c83d47; color: #fff; font: 700 13px/1 Inter, sans-serif; cursor: pointer; }
.danger-button:hover { background: #a92f39; }
.danger-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.confirm-modal, .detail-modal, .price-modal { padding: 28px; }
.confirm-modal { text-align: center; }
.confirm-modal .modal-actions { justify-content: center; }
.confirm-modal p { color: var(--muted); line-height: 1.55; }
.confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 18px; background: #fff0f0; color: #c83d47; animation: warning-pulse 1.8s ease-in-out infinite; }
.confirm-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes warning-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(200,61,71,.08); } }
.record-name { padding: 0; border: 0; background: transparent; color: #213d60; font: 700 14px/1.4 Inter, sans-serif; cursor: pointer; text-align: left; }
.record-name:hover { color: #24588f; text-decoration: underline; }
.row-actions button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-actions button:first-child { color: #24588f; }
.row-actions button:last-child { color: #b53a45; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-grid div, .detail-block { padding: 13px; border-radius: 10px; background: #f5f7fa; }
.detail-grid span, .detail-block > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid strong, .detail-block strong { color: var(--text); }
.detail-block { margin-top: 12px; }
.detail-block a { color: #24588f; word-break: break-all; }
.detail-block p { margin: 0; line-height: 1.55; }
.detail-image { display: block; max-width: 100%; max-height: 180px; margin: 0 auto 16px; border-radius: 10px; object-fit: contain; }
.image-field { padding: 14px; border: 1px dashed #bdc9d7; border-radius: 10px; background: #f7f9fb; }
.image-field input[type="file"] { border: 0; background: transparent; padding: 5px 0; }
.image-field span { color: var(--muted); font-size: 11px; }
.image-field img { display: block; max-width: 120px; max-height: 90px; margin-top: 10px; border-radius: 8px; }

/* Alinhamento consistente dos campos da calculadora */
.calc-form .form-row { align-items: start; }
.calc-form .form-row > label { display: grid; grid-template-rows: 17px 42px auto; align-content: start; min-width: 0; }
.calc-form .form-row > label > input,
.calc-form .form-row > label > select { height: 42px; min-height: 42px; margin: 0; }
.calc-form .form-row > label > small { min-height: 16px; margin-top: 5px; line-height: 1.35; }
.calc-form > label:not(.file-drop) > input,
.calc-form > label:not(.file-drop) > select { height: 42px; min-height: 42px; }
.calc-image-field { padding: 14px; border: 1px dashed #bdc9d7; border-radius: 10px; background: #f7f9fb; }
.calc-image-field { cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.calc-image-field:hover, .calc-image-field:focus-within { border-color: #173b67; box-shadow: 0 0 0 3px rgba(23,59,103,.12); background: #f3f7fb; }
.calc-image-field input[type="file"] { border: 0; background: transparent; padding: 5px 0; }
.calc-image-field span { color: var(--muted); font-size: 11px; }
.paste-image-button { width: fit-content; margin-top: 8px; padding: 8px 12px; border: 1px solid #c6d4e3; border-radius: 8px; background: #fff; color: #173b67; font: 700 11px/1 Inter, sans-serif; cursor: pointer; }
.paste-image-button:hover { border-color: #173b67; background: #edf3f9; }
.remove-image-button { width: fit-content; margin-top: 8px; padding: 8px 12px; border: 1px solid #e1c5c8; border-radius: 8px; background: #fff8f8; color: #a8323d; font: 700 11px/1 Inter, sans-serif; cursor: pointer; }
.remove-image-button:hover { border-color: #a8323d; background: #fff0f1; }
.upload-progress { margin-top: 12px; }.upload-progress-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #dce5ef; }.upload-progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: #173b67; transition: width .18s ease; }.upload-progress small { display: block; margin-top: 5px; color: #6f7b8d; font-size: 11px; }
.calc-image-field img { display: block; max-width: 150px; max-height: 100px; margin-top: 10px; border-radius: 8px; object-fit: contain; }
#detail-dialog { width: min(1060px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); overflow-x: hidden; overflow-y: auto; border-radius: 20px; }
.detail-modal { width: 100%; min-width: 0; padding: 28px; }
.detail-modal .modal-head { gap: 20px; margin-bottom: 22px; }
.detail-modal .modal-head > div { min-width: 0; }
.detail-modal h3 { overflow-wrap: anywhere; }
.detail-modal .close-detail { flex-shrink: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-visual { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; border: 1px solid #e1e6ed; border-radius: 16px; background: linear-gradient(145deg,#f8fafc,#eef3f8); overflow: hidden; position: sticky; top: 0; }
.detail-image { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: contain; border-radius: 10px; }
.detail-image-empty { color: #8a96a6; font-size: 12px; }
.detail-info { min-width: 0; }
.calculation-detail { display: grid; gap: 14px; }
.calc-detail-image { display: block; width: min(280px, 100%); aspect-ratio: 1; margin: 0 auto 6px; border-radius: 14px; object-fit: contain; background: #f4f7fa; }
.calculation-detail-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.calculation-visual { min-width: 0; display: grid; grid-template-rows: auto auto; gap: 14px; padding: 14px; border: 1px solid #dfe6ee; border-radius: 18px; background: linear-gradient(145deg,#f8fafc,#edf3f8); }
.calculation-visual .calc-detail-image { display: block; width: min(100%, calc(100dvh - 270px)); height: auto; aspect-ratio: 1; max-width: 100%; margin: 0; justify-self: center; border-radius: 12px; object-fit: contain; background: #fff; }
.calc-image-placeholder { display: grid; place-items: center; align-content: center; gap: 7px; width: min(100%, calc(100dvh - 270px)); justify-self: center; aspect-ratio: 1; border: 1px dashed #c3cfdd; border-radius: 12px; color: #718096; }.calc-image-placeholder span { font-size: 13px; font-weight: 800; color: #36536f; }.calc-image-placeholder small { font-size: 11px; }
.calculation-info { min-width: 0; display: grid; align-content: start; gap: 12px; }
.image-actions { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }.modal-copy-button { border: 1px solid #c9d6e4; border-radius: 8px; background: #fff; color: #173b67; padding: 8px 11px; font: 700 11px/1 Inter,sans-serif; cursor: pointer; }.modal-copy-button:hover { border-color: #173b67; background: #edf3f9; }.modal-copy-button:disabled { opacity: .5; cursor: not-allowed; }.detail-block-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }.client-detail-block p { margin: 8px 0 0; }
.detail-modal .detail-grid { gap: 9px; }
.detail-modal .detail-grid div, .detail-modal .detail-block { padding: 11px; }
.calculation-info .detail-block { margin-top: 0; }
.detail-grid > div { min-width: 0; }
.detail-grid strong, .detail-block p, .detail-files li { overflow-wrap: anywhere; }
.detail-block-head > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-block-head .modal-copy-button { flex-shrink: 0; }
.download-files { list-style: none; padding: 0; margin: 8px 0 0; }
.download-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e1e6ed; }
.download-files li:last-child { border-bottom: 0; padding-bottom: 0; }
.download-file-info { min-width: 0; }
.download-file-info strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.download-file-info small { display: block; margin: 3px 0 0; font-size: 11px; }
.detail-block .file-download-button { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 8px 10px; border: 1px solid #c9d6e4; border-radius: 8px; background: #fff; color: #173b67; font-size: 11px; font-weight: 700; text-decoration: none; }
.file-download-button:hover { background: #edf3f9; border-color: #173b67; }
.file-download-button:focus-visible { outline: 2px solid #173b67; outline-offset: 3px; }
.file-download-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; }.page-intro h2 { margin:4px 0 8px; font-size:32px; }.page-intro p:last-child { margin:0; color:var(--muted); }.print-list-grid { display:grid; gap:12px; }.print-job { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:14px; }.priority-pill { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#e8eff7; color:#173b67; font-weight:800; }.print-job h3,.print-job p { margin:0; }.print-job p { color:var(--muted); font-size:12px; }.job-status,.connection-badge { border-radius:99px; padding:6px 10px; background:#f1f4f8; color:#667386; font-size:11px; font-weight:700; }.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.settings-grid .panel h3 { margin:0; }.connection-badge.is-ready { background:#e4f5ed; color:#237653; }.printer-list { display:grid; gap:8px; margin:16px 0; }.empty-inline { color:var(--muted); padding:24px; text-align:center; }.settings-grid .panel > label { margin-top:14px; }.settings-grid .panel .primary { margin-top:8px; }.settings-grid .panel .secondary { border:1px solid var(--line); }.nav-item svg { width:19px; height:19px; fill:currentColor; vertical-align:middle; }.nav-item span { vertical-align:middle; }
@media (max-width:720px) { .page-intro { align-items:flex-start; flex-direction:column; }.settings-grid { grid-template-columns:1fr; }.print-job { grid-template-columns:36px 1fr; }.job-status { grid-column:2; width:max-content; } }
.image-actions { margin-top: 0; }
@media (max-width: 760px) { #detail-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } .detail-modal { padding: 20px; } .detail-layout, .calculation-detail-layout { grid-template-columns: 1fr; gap: 20px; } .detail-visual { min-height: 150px; aspect-ratio: auto; } .calculation-visual { width: 100%; max-width: 360px; margin-inline: auto; } }
.print-toolbar{display:flex;gap:12px;align-items:center;margin-top:18px}.print-toolbar .search{flex:1}.print-toolbar select{min-width:220px}.print-table-panel{margin-top:18px}.print-table-panel table{min-width:900px}.print-table-panel th{white-space:nowrap}.print-table-panel td small{display:block;color:#6b7a90;margin-top:4px}.print-row-clickable{cursor:pointer}.print-row-clickable:hover{background:#f7faff}.print-status,.produced-input{height:38px;border:1px solid #d5dfeb;border-radius:9px;background:#fff;padding:0 10px;color:#193b63}.produced-input{width:82px}.print-status-warning{border-color:#d98c23;color:#a96300;animation:printPulse 1.3s ease-in-out infinite}.completion-bar{width:110px;height:7px;background:#e7edf4;border-radius:99px;overflow:hidden;margin-top:7px}.completion-bar span{display:block;height:100%;background:#23629c;border-radius:inherit;transition:width .25s ease}.print-detail-modal{width:min(620px,calc(100vw - 32px))}.print-detail-modal .detail-grid{margin-top:6px}.print-detail-modal .modal-actions{justify-content:flex-end}@keyframes printPulse{50%{box-shadow:0 0 0 4px rgba(217,140,35,.16)}} @keyframes completedPulse{0%,100%{box-shadow:0 0 0 0 rgba(40,170,105,.25)}50%{box-shadow:0 0 0 6px rgba(40,170,105,.12)}} .print-status option[value="5"]{color:#16834f}
@media(max-width:760px){.print-toolbar{display:grid}.print-toolbar select{width:100%}.print-table-panel{overflow:auto}.print-table-panel .table-wrap{overflow-x:auto}.print-table-panel table{min-width:760px}}
.page-actions{display:flex;gap:10px;align-items:center}.page-actions button svg,.row-actions button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.danger-button{display:inline-flex;align-items:center;gap:8px}.danger-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;animation:dangerWiggle 1.6s ease-in-out infinite}@keyframes dangerWiggle{0%,100%{transform:rotate(0)}50%{transform:rotate(-8deg) scale(1.08)}}

.brand{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.brand-subtitle{padding-left:2px;color:#244e7d;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.print-status{font-weight:700;border-width:2px}.print-status-1{color:#c62828!important;border-color:#e53935!important;background:#fff4f4!important}.print-status-2{color:#d56a12!important;border-color:#f28c28!important;background:#fff8ef!important}.print-status-3{color:#6b4bb3!important;border-color:#8968cc!important;background:#f8f5ff!important}.print-status-4{color:#1769aa!important;border-color:#2784c6!important;background:#f1f8ff!important}.print-status-5,.print-status-complete{color:#11834d!important;border-color:#20b968!important;background:#edfff5!important;animation:completedPulse 1.15s ease-in-out infinite}.print-status option{font-weight:600}
.print-status-4{animation:none!important}.print-status-warning{animation:warningPulse 1.8s ease-in-out infinite!important}.print-status-5,.print-status-complete{animation:completedPulse 1.15s ease-in-out infinite!important}@keyframes warningPulse{50%{box-shadow:0 0 0 3px rgba(217,140,35,.14)}}
.brand-subtitle{font-size:10px;font-weight:500;letter-spacing:.22em;color:#576b84;border-top:1px solid #d7e0ec;padding-top:9px;margin-top:3px;width:112px;text-align:center;padding-left:0}.brand{gap:8px}
#print-lists .page-intro{padding:0;border:0;background:none;box-shadow:none;margin:0 0 12px;justify-content:flex-end}#print-lists .page-intro>div{display:none}#print-lists .print-toolbar{padding:12px 16px;margin:0;border-radius:12px;display:grid;grid-template-columns:minmax(240px,1fr) 220px;gap:14px}#print-lists .search{display:flex;align-items:center;width:100%;min-width:0;gap:10px}#print-lists .search svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:#647a96;stroke-width:1.7}#print-lists .search input{width:100%;min-width:0;border:0;background:transparent;height:38px}#print-lists .print-table-panel{margin-top:12px;min-height:48vh;box-shadow:0 8px 28px #20375109}#print-lists td{padding:18px 14px;vertical-align:middle}#print-lists .priority-pill{width:auto;height:auto;display:inline-flex;padding:7px 10px;font-size:10px;white-space:nowrap;border-radius:7px}.priority-1{background:#ffeded;color:#c32938}.priority-2{background:#fff3e7;color:#b76019}.priority-3{background:#f2edff;color:#7251ac}.priority-4{background:#eaf4ff;color:#246ea7}.priority-5{background:#eafaf1;color:#17834c}.print-thumbnail{width:46px;height:46px;object-fit:cover;border-radius:10px;float:left;margin-right:12px;border:1px solid #e0e7ef}.print-placeholder{display:grid;place-items:center;background:#f3f6fa;color:#6983a1;font-size:22px}.print-status{max-width:180px;font-size:11px}.print-status-complete{animation:completedPulse 1.15s ease-in-out infinite!important}.row-actions button{width:32px;height:32px;border-radius:8px}.row-actions button:hover{background:#eaf1fa}#print-job-dialog input[readonly]{background:#edf2f7;color:#6b7c92}#print-job-dialog{max-height:90vh;overflow:auto}@media(max-width:760px){#print-lists .print-toolbar{grid-template-columns:1fr}#print-lists .print-table-panel{min-height:40vh}}
.print-status-1{color:#61738c!important;border-color:#ccd7e4!important;background:#f3f6fa!important;animation:waitingFade 2.8s ease-in-out infinite!important}.print-status-4.print-status-warning{animation:productionTargetAlert 1.4s ease-in-out infinite!important;font-weight:800}.print-status-5,.print-status-complete{animation:none!important;background:#edfff5!important;color:#11834d!important}.produced-input:disabled{background:#edf1f6;color:#8795a8;cursor:not-allowed;border-color:#dce3ec}@keyframes waitingFade{0%,100%{color:#61738c}50%{color:#61738c20}}@keyframes productionTargetAlert{0%,100%{background:#d8ffe9;border-color:#10b968;color:#08793d;box-shadow:0 0 0 4px #10b96826}50%{background:#fff0c2;border-color:#e7a01e;color:#906000;box-shadow:0 0 0 6px #e7a01e26}}@media(prefers-reduced-motion:reduce){.print-status{animation:none!important}.print-status-4.print-status-warning{background:#d8ffe9!important;color:#08793d!important;border-color:#10b968!important}}
.print-status-4.print-status-warning{background:#d8ffe9!important;border-color:#10b968!important;color:#08793d!important;outline:2px solid transparent;outline-offset:2px}@keyframes waitingFade{0%,100%{opacity:1}50%{opacity:.35}}@keyframes productionTargetAlert{0%,100%{outline-color:#10b968;box-shadow:0 0 0 4px #10b96826;filter:brightness(1)}50%{outline-color:#efac20;box-shadow:0 0 0 7px #efac2040;filter:brightness(1.06)}}
#print-detail-dialog{width:min(920px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);overflow-x:hidden;overflow-y:auto;border-radius:20px}#print-detail-dialog .print-modal{width:100%;min-width:0;padding:28px}#print-detail-dialog .modal-head{gap:16px;margin-bottom:24px}#print-detail-dialog .modal-head>div{min-width:0}#print-detail-title{overflow-wrap:anywhere;font-size:23px;margin:0}#print-detail-dialog .icon-button{flex:0 0 34px;color:#304963;display:grid;place-items:center}#print-detail-dialog .print-detail-layout{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px}.print-detail-visual,.print-detail-info{min-width:0}.print-detail-visual>img,.print-detail-placeholder{width:100%;aspect-ratio:1;object-fit:contain;display:block;border-radius:14px;background:#f3f6fa;border:1px solid #e1e8f1}.print-detail-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#7890aa;font-size:12px}.print-detail-placeholder svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:1.4}.print-material-card{margin-top:12px;padding:14px;background:#f5f7fa;border-radius:10px}.print-material-card>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#6d7d91;margin-bottom:6px}.print-material-card p{margin:4px 0 0;font-size:12px;color:#6d7d91;overflow-wrap:anywhere}.print-detail-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.print-detail-state,.print-detail-priority{padding:7px 10px;border-radius:8px;font-size:11px;font-weight:700;background:#eef3f9;color:#42607f}.print-detail-state.state-4{background:#eaf4ff;color:#1769aa}.print-detail-state.state-5{background:#e5faee;color:#16834f}#print-detail-dialog .detail-grid{gap:10px;margin:0}#print-detail-dialog .detail-grid>div{padding:13px;min-width:0}#print-detail-dialog .detail-grid strong{font-size:15px}.print-detail-progress{padding:16px 0}.print-detail-progress>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:#657991}.print-detail-progress strong{color:#203d63}.print-detail-progress .completion-bar{width:100%;height:8px;margin-top:10px}#print-detail-dialog .detail-block{margin:0}#print-detail-dialog .detail-block p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.print-detail-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e2e9f1;margin-top:22px;padding-top:18px}.print-detail-footer>span{font-size:11px;color:#7c8b9e}.print-detail-footer button{display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:12px}.print-detail-footer svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}#printer-dialog{width:min(540px,calc(100vw - 32px))}#printer-dialog .print-modal{width:100%;min-width:0;padding:26px}@media(max-width:640px){#print-detail-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#print-detail-dialog .print-modal{padding:20px}#print-detail-dialog .print-detail-layout{grid-template-columns:1fr;gap:18px}.print-detail-visual>img,.print-detail-placeholder{max-height:240px;aspect-ratio:auto;height:220px}.print-detail-footer{align-items:stretch;flex-direction:column}.print-detail-footer button{justify-content:center}#print-detail-title{font-size:20px}}
.brand{align-items:center;gap:0;padding-left:0;padding-right:0}.brand-logo{width:172px;max-width:100%;max-height:none;object-position:center}.brand-subtitle{width:172px;max-width:100%;text-align:center;border-top:0;margin-top:-3px;padding:0;font-size:12px;font-weight:600;letter-spacing:.14em;color:#244568;line-height:1.3}
#settings .page-intro h2{display:inline-block;vertical-align:middle;margin-right:10px}#settings .settings-grid{grid-template-columns:minmax(300px,.8fr) minmax(360px,1.2fr);align-items:start}.bridge-signal-box{padding:16px;background:#f4f7fb;border:1px solid #e1e8f1;border-radius:12px;margin-bottom:18px}.bridge-signal-box strong{display:block;font-size:13px;color:#34516e}.bridge-signal-box small{display:block;color:#7b8a9e;margin-top:6px}.monitoring-note{font-size:11px;color:#78889b;margin:12px 0;line-height:1.6}#refresh-monitoring{margin-left:8px;border:1px solid #dce5ef;font-size:12px}.machine-card{padding:18px;border:1px solid #e1e8f1;background:#fbfcfe;border-radius:14px}.machine-card-head{display:flex;gap:12px;justify-content:space-between;align-items:start}.machine-card h4{margin:0;color:#203e61;font-size:15px}.machine-card small{font-size:10px;color:#8090a3}.machine-state{padding:5px 8px;border-radius:7px;background:#edf1f6;color:#6c7b8f;font-size:10px;font-weight:700;white-space:nowrap}.machine-idle{background:#e8faef;color:#15834d}.machine-printing{background:#e8f3ff;color:#1e70b5}.machine-paused{background:#fff3d8;color:#a47716}.machine-error{background:#ffeded;color:#bf3448;font-size:12px}.machine-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.machine-metrics>div{background:#f0f4f9;border-radius:8px;padding:10px}.machine-metrics span{display:block;font-size:10px;color:#8292a5}.machine-metrics strong{font-size:13px;color:#335371}.machine-card .completion-bar{width:100%;margin-bottom:12px}#machine-dialog{width:min(520px,calc(100vw - 32px))}#settings .printer-list{max-height:65vh;overflow:auto}@media(max-width:900px){#settings .settings-grid{grid-template-columns:1fr}}
#bridge-settings .panel-head h3,#settings .settings-grid>article>h3{display:inline-block;vertical-align:middle}.settings-card-help{margin-left:8px;vertical-align:middle;flex:none}#settings .settings-grid{margin-top:0}#bridge-settings .panel-head>div{min-width:0}
.machine-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.machine-remove{display:grid;place-items:center;width:34px;height:34px;border:1px solid #f0dce0;border-radius:9px;background:#fff5f6;color:#bd3d50;cursor:pointer;transition:background .2s,transform .2s}.machine-remove:hover{background:#ffe5ea;transform:translateY(-1px)}.machine-remove svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.machine-remove:focus-visible{outline:2px solid #bd3d50;outline-offset:3px}
