.fm-editor { min-width: 0; color: #202124; background: #fff; }
.fm-editor label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; min-width: 0; }
.fm-editor input,.fm-editor select,.fm-editor textarea { width: 100%; min-width: 0; box-sizing: border-box; background: #fff !important; color: #202124 !important; border: 1px solid #bdc1c6; border-radius: 4px; padding: 9px; min-height: 38px; }
.fm-editor button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: #e8f0fe !important; color: #174ea6 !important; border: 1px solid #a8c7fa; box-shadow: none !important; border-radius: 4px; padding: 8px 10px; min-height: 36px; }
.fm-editor button:hover { background: #d2e3fc !important; color: #174ea6 !important; }
.fm-editor button * { color: inherit !important; }
.fm-editor .material-symbols-rounded { font-size: 19px; }
.fm-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.fm-toolbar,.fm-station>header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-toolbar { justify-content: space-between; border-top: 1px solid #dadce0; margin-top: 20px; padding-top: 14px; }
.fm-toolbar h3 { font-size: 17px; margin: 0; }
.fm-station { margin: 14px 0 20px; padding: 14px 0; border-top: 2px solid #1a73e8; border-bottom: 1px solid #dadce0; }
.fm-station>header>[data-fm-row-total] { margin-left: auto; font-size: 12px; }
.fm-fill { display: flex; align-items: end; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.fm-fill label { width: 155px; }
.fm-grid-scroll { max-width: 100%; overflow: auto; }
.fm-spot-grid { border-collapse: collapse; width: auto; }
.fm-spot-grid th,.fm-spot-grid td { padding: 5px; min-width: 85px; text-align: center; border: 1px solid #dadce0; }
.fm-spot-grid th { background: #f1f3f4; font-size: 11px; }
.fm-spot-grid small { display: block; }
.fm-spot-grid input { text-align: center; }
.fm-financials { grid-template-columns: repeat(3,minmax(0,1fr)); }
.fm-totals { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; padding: 14px 0; margin: 12px 0; border-block: 1px solid #dadce0; }
.fm-totals span,.fm-totals strong { display: block; overflow-wrap: anywhere; }
.fm-totals span { font-size: 11px; color: #5f6368; margin-bottom: 4px; }
.fm-totals strong { font-size: 14px; }
.fm-error { color: #8c1d18 !important; background: #fce8e6; border: 1px solid #d93025; padding: 12px; margin: 0 0 14px; font-weight: 600; white-space: pre-wrap; }
.fm-editor [hidden] { display: none !important; }
.fm-editor [aria-invalid="true"] { border: 2px solid #b3261e; }
.fm-timing { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 12px; background: #f1f6ff; border-left: 3px solid #1a73e8; }
.fm-timing label { flex: 1 1 140px; }
.fm-document { max-width: 100%; overflow-x: auto; }
.fm-ro-page.ro-doc { width: 281mm !important; min-width: 281mm !important; max-width: 281mm !important; height: 194mm !important; min-height: 194mm !important; box-sizing: border-box; padding: 5mm !important; margin: 10px auto !important; background: #fff !important; color: #202124 !important; border: 1px solid #dadce0; border-radius: 0; box-shadow: none; font-family: Arial,sans-serif !important; font-size: 10px !important; line-height: 1.25 !important; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.fm-ro-page * { box-sizing: border-box; letter-spacing: 0; }
.fm-doc-header { display: flex; gap: 15px; align-items: center; border-bottom: 2px solid #b31f2a; padding-bottom: 8px; }
.fm-doc-header>div:first-child { flex: 1; }
.fm-doc-header strong { font-size: 18px; }
.fm-doc-header small { display: block; margin-top: 5px; font-size: 10px; }
.fm-doc-header img { width: 18mm; height: 17mm; object-fit: contain; }
.fm-doc-meta { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; }
.fm-doc-meta>div { min-width: 0; overflow-wrap: anywhere; }
.fm-doc-meta span,.fm-doc-meta small { display: block; margin-bottom: 3px; }
.fm-doc-meta span { color: #8b1720; font-size: 9px; }
.fm-doc-meta b { display: block; margin-bottom: 3px; font-size: 11px; }
.fm-ro-page h3 { display: flex; justify-content: space-between; font-size: 11px !important; margin: 0 !important; color: #8b1720 !important; }
.fm-ro-page h3 span { color: #5f6368; font-weight: 400; font-size: 9px; }
.fm-ro-page table { width: 100%; min-width: 0 !important; max-width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0 !important; font-size: 9px !important; }
.fm-ro-page th,.fm-ro-page td { border: 1px solid #c5c9cf !important; padding: 4px !important; white-space: normal !important; overflow-wrap: anywhere; vertical-align: middle; color: #202124 !important; background: #fff !important; font-size: 9px !important; line-height: 1.2 !important; }
.fm-ro-page th { background: #fce8e6 !important; font-weight: 700; }
.fm-ro-page td small,.fm-ro-page th small { display: block; font-size: 8px; }
.fm-doc-grid td,.fm-doc-grid th { text-align: center; }
.fm-doc-grid td:nth-child(2),.fm-doc-grid th:nth-child(2) { text-align: left; }
.fm-doc-rates th:first-child { width: 3%; }
.fm-doc-rates th:nth-child(2) { width: 35%; }
.fm-doc-rates td:nth-child(n+3) { text-align: right; }
.fm-doc-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.fm-doc-bottom p { margin: 0 0 6px; font-size: 9px; overflow-wrap: anywhere; }
.fm-doc-bottom td:last-child { text-align: right; }
.fm-doc-bottom tr:last-child td { font-weight: 700; color: #8b1720 !important; background: #fce8e6 !important; }
.fm-ro-page footer { display: flex; justify-content: space-between; align-items: end; margin-top: auto; border-top: 1px solid #dadce0; padding-top: 8px; font-size: 9px; }
.fm-ro-page footer span:last-child { text-align: right; }
.fm-ro-page footer b { display: block; margin-top: 9px; }
@media(max-width:700px) { body .modal.fm-ro-modal.workspace-modal { left: 0 !important; width: 100vw !important; padding: 8px; } .modal.fm-ro-modal .modal-head { flex-wrap: wrap; gap: 8px; } .modal.fm-ro-modal .modal-panel { height: calc(100dvh - 16px); } .fm-fields,.fm-financials { grid-template-columns: repeat(2,minmax(0,1fr)); } .fm-totals { grid-template-columns: repeat(2,minmax(0,1fr)); } .fm-station>header>[data-fm-row-total] { margin-left: 0; } }
@page fmRadio { size: A4 landscape; margin: 8mm; }
@media print { .fm-document { overflow: visible; } .fm-ro-page.ro-doc { page: fmRadio; margin: 0 !important; border: 0; break-after: page; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; } .fm-ro-page:last-child { break-after: auto; } }
.modal.fm-ro-modal { z-index: 1200; }
.modal.fm-ro-modal .modal-panel { background: #fff; backdrop-filter: none; border-radius: 8px; }
.modal.fm-ro-modal #modalForm { grid-template-columns: minmax(0,1fr); }
