/* UltraTool360 — convert.css
   Styles for the document converter tools only (PDF to Excel / Word, Excel / Word to PDF).
   Loaded just by those four pages, so nothing else on the site is affected. */

.ut-opts { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 18px 0 6px; align-items: flex-end; }
.ut-opts .field { margin: 0; flex: 1 1 190px; min-width: 170px; }
.ut-check { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text); cursor: pointer; flex: 1 1 220px; min-height: 44px; }
.ut-check input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

.ut-progress { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 18px 0 8px; border: 1px solid var(--border); }
.ut-progress > i { display: block; height: 100%; width: 0; background: var(--grad); }
.ut-status { font-size: .9rem; color: var(--muted); min-height: 1.3em; }

.ut-note { margin: 16px 0 12px; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface-2); font-size: .92rem; color: var(--text); }
.ut-note p { margin: 0 0 6px; }
.ut-note p:last-child { margin: 0; }
.ut-note .ut-swatch { display: inline-block; width: 1.5em; height: .9em; background: #fde68a; border: 1px solid #d6b84a; border-radius: 3px; vertical-align: -1px; }

.ut-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--surface-2); }
.ut-toolbar button { min-width: 38px; min-height: 36px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; cursor: pointer; transition: border-color var(--transition), color var(--transition); }
.ut-toolbar button:hover, .ut-toolbar button:focus-visible { border-color: var(--accent); color: var(--accent); }
.ut-toolbar .ut-sep { width: 1px; height: 24px; background: var(--border); margin: 0 3px; }
.ut-toolbar .ut-hint { margin-left: auto; font-size: .8rem; color: var(--muted); }

.ut-stagewrap { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: #7f8798; padding: 14px; overflow: auto; max-height: 78vh; }
.ut-scaler { margin: 0 auto; }
.ut-doc { background: #fff; color: #000; box-shadow: 0 2px 16px rgba(0, 0, 0, .28); outline: none; box-sizing: border-box; transform-origin: top left;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif; font-size: 11pt; line-height: 1.15; text-align: left;
  white-space: pre-wrap; overflow-wrap: break-word; tab-size: 8; }
.ut-doc p, .ut-doc h1, .ut-doc h2, .ut-doc h3, .ut-doc h4, .ut-doc h5, .ut-doc h6 { margin: 0; color: inherit; border: 0; letter-spacing: normal; }
.ut-doc h1 { font-size: 20pt; } .ut-doc h2 { font-size: 16pt; } .ut-doc h3 { font-size: 13pt; }
.ut-doc h4, .ut-doc h5, .ut-doc h6 { font-size: 11pt; }
.ut-doc ul, .ut-doc ol { margin: 0; padding-left: 30pt; }
.ut-doc li { margin: 0; }
.ut-doc img { max-width: 100%; height: auto; vertical-align: bottom; }
.ut-doc table { border-collapse: collapse; border-spacing: 0; }
.ut-doc td, .ut-doc th { vertical-align: top; text-align: left; font-weight: normal; }
.ut-doc a { color: #0563C1; text-decoration: underline; }
.ut-doc .ut-low { background: #fde68a; border-radius: 2px; }
.ut-doc .ut-box { border: .75pt solid #9aa3af; padding: 4pt; margin: 4pt 0; }
.ut-doc .ut-pb { position: relative; height: 0; margin: 12pt 0; border-top: 2px dashed #94a3b8; }
.ut-doc .ut-pb::after { content: "Page break"; position: absolute; right: 0; top: -9px; padding: 0 6px; background: #fff; color: #64748b; font: 600 10px/16px Arial, sans-serif; }

/* off-screen copy used to build the PDF */
.ut-stage { background: #fff; color: #000; }
.ut-stage .ut-doc { box-shadow: none; }
.ut-stage .ut-pb { border: 0 !important; margin: 0 !important; height: 0 !important; }
.ut-stage .ut-pb::after { content: none !important; }
.ut-stage .ut-low { background: transparent !important; }

.ut-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.ut-tabs button { padding: 7px 14px; min-height: 36px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; cursor: pointer; }
.ut-tabs button.active { background: var(--grad); color: #fff; border-color: transparent; }

.ut-gridwrap { overflow: auto; max-height: 72vh; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: #fff; }
table.ut-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; color: #000; font: 10pt/1.25 Arial, Helvetica, "Liberation Sans", sans-serif; }
.ut-grid td { border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; padding: 3px 6px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; text-align: left; height: 23px; cursor: cell; }
.ut-grid td:focus { box-shadow: inset 0 0 0 2px #4F46E5; cursor: text; }
.ut-grid td.ut-low { background: #fde68a; }
.ut-grid td.ut-sel { background: #dbe4ff; }
.ut-grid td.ut-low.ut-sel { background: #e6dca0; }
.ut-gridwrap:focus { outline: none; }
.ut-gridwrap.ut-dragging td { user-select: none; -webkit-user-select: none; cursor: cell; }
.ut-gridwrap.ut-pro th { cursor: pointer; }
.ut-toolbar button:disabled { opacity: .45; cursor: default; pointer-events: none; }
.ut-toolbar button.ut-danger { color: #b91c1c; border-color: #fecaca; }
.ut-toolbar button.ut-danger:hover, .ut-toolbar button.ut-danger:focus-visible { color: #fff; background: #dc2626; border-color: #dc2626; }
.ut-toolbar .ut-hint.ut-warn { color: #b45309; font-weight: 600; display: inline; }
.ut-tabs .ut-tabwrap { display: inline-flex; align-items: center; gap: 5px; }
.ut-tabs .ut-tabwrap input { width: 17px; height: 17px; margin: 0; accent-color: #dc2626; cursor: pointer; }
.ut-grid td.ut-bd { border-right-color: #111; border-bottom-color: #111; box-shadow: -1px -1px 0 #111; vertical-align: middle; padding: 3px 4px; }
.ut-grid td.ut-bd:focus { box-shadow: inset 0 0 0 2px #4F46E5; }
.ut-grid th { background: #eef2f7; color: #475569; font: 600 11px/1.4 Arial, sans-serif; text-align: center; border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; padding: 3px 4px; user-select: none; }
.ut-grid thead th { position: sticky; top: 0; z-index: 2; }
.ut-grid tbody th { position: sticky; left: 0; z-index: 1; }
.ut-grid thead th:first-child { left: 0; z-index: 3; }

table.ut-print { border-collapse: collapse; table-layout: fixed; background: #fff; color: #000; font: 10pt/1.25 Arial, Helvetica, "Liberation Sans", sans-serif; }
.ut-print td { border: 1px solid #8a94a6; padding: 3px 6px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.ut-print.ut-nogrid td { border: 0; }
.ut-print td.ut-bd, .ut-print.ut-nogrid td.ut-bd { border: 1px solid #000; vertical-align: middle; }

.ut-file { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content table.ut-cmp { width: 100%; border-collapse: collapse; margin: 0 0 1.1rem; font-size: .93rem; }
.content .ut-cmp th, .content .ut-cmp td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
.content .ut-cmp th { background: var(--surface-2); color: var(--heading); }
.content .ut-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .ut-stagewrap { padding: 8px; }
  .ut-toolbar .ut-hint { display: none; }
  .ut-opts .field, .ut-check { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ut-progress > i { transition: none; } }

/* keep the sticky site header from covering what we scroll to */
#dz, #fname { scroll-margin-top: 96px; }

.ut-fluidnote { padding: 8px 12px; font-size: .82rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-top: 0; }
.ut-doc.ut-fluid { box-shadow: none; }
.ut-doc.ut-fluid table { max-width: 100%; }

/* PDF to Word: page list (delete / move pages) */
.ut-toolbar.ut-pagebar { border-radius: var(--radius-sm); margin-bottom: 8px; }
.ut-pagebar .ut-lbl { font-size: .86rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.ut-pagebar .ut-tabs { margin: 0; }
.ut-pagebar .ut-tabs button { min-width: 38px; padding: 5px 12px; border-radius: 99px; }
.ut-pagebar .ut-tabs button.active { background: var(--grad); color: #fff; border-color: transparent; }
