/* THIS IS FLORIDA: Mileage Log and Timecard. Layout reflows with grid auto-fit, so no width queries are needed. */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ml-savefail { margin: 0 0 1rem; padding: .7rem .9rem; border: 2px solid var(--danger); border-radius: .5rem; background: #fbeeed; color: var(--danger); font-weight: 700; max-width: 70ch; }
.ml-savefail[hidden] { display: none; }
.ml-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0 1.25rem; align-items: start; }
.ml-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 0 .8rem; }
.ml-row[hidden], #t-miles-row[hidden] { display: none; }
.editor label.ml-check { display: flex; align-items: center; gap: .65rem; min-height: 44px; margin: .4rem 0 .2rem; cursor: pointer; }
.editor .ml-check input { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; margin: 0; accent-color: var(--brand); }
.ml-preview { font-weight: 700; margin: .2rem 0 .4rem; min-height: 1.3em; }
.ml-filter fieldset { max-width: 760px; }
.ml-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ml-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ml-rates { width: 100%; border-collapse: collapse; min-width: 19rem; }
.ml-rates th, .ml-rates td { border-bottom: 1px solid var(--line); padding: .3rem .4rem; text-align: left; vertical-align: middle; font-size: .92rem; }
.ml-rates thead th { font-size: .85rem; color: var(--muted); }
.editor .ml-ratein { margin: 0; }
.editor .ml-ratein input { margin: 0; min-width: 5.5rem; }
.ml-summary { margin: .4rem 0 1rem; }
.ml-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .4rem; }
.ml-stats p { margin: 0; flex: 1 1 9rem; background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: .6rem .8rem; }
.ml-stats span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.ml-stats strong { font-size: 1.35rem; }
.ml-range { margin: .3rem 0 .6rem; color: var(--muted); font-weight: 600; }
.ml-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .8rem 1.25rem; align-items: start; }
.ml-h2 { font-size: 1.25rem; margin: 1.2rem 0 .5rem; }
.ml-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; }
.ml-table caption { text-align: left; font-weight: 700; padding: .2rem 0 .35rem; }
.ml-table th, .ml-table td { border: 1px solid var(--line); padding: .45rem .55rem; text-align: left; vertical-align: top; }
.ml-table thead th { background: #e6f2ec; font-size: .88rem; }
.ml-table .n { text-align: right; white-space: nowrap; }
.ml-table tr.tot th, .ml-table tr.tot td { font-weight: 700; background: #f1f5f3; }
#trip-table { min-width: 46rem; }
.ml-sub { display: block; font-size: .82rem; color: var(--muted); white-space: normal; }
.ml-act { white-space: nowrap; }
.ml-act button { margin: .1rem 0; }
.ml-empty { color: var(--muted); text-align: center; padding: 1rem; }
.ml-printhead { display: none; }
.ml-printhead h2 { margin: 0 0 .2rem; font-size: 1.35rem; }
.ml-printhead p, .ml-pd { margin: .2rem 0 .8rem; color: #444; font-size: .85rem; }
.ml-paper { font-family: Arial, Helvetica, sans-serif; font-size: 14px; max-width: 760px; padding: 1.2rem 1.3rem; }
.ml-ph { margin: 0 0 .2rem; font-size: 1.35rem; }
.ml-pt { min-width: 18rem; }
.tc-tot { margin-top: .8rem; }
.tc-tot th { width: 70%; font-weight: 600; }
.tc-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 1rem; }
.editor .tc-day { margin: 0 0 .8rem; padding: .5rem .8rem .6rem; }
.tc-date { font-weight: 400; color: var(--muted); }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr)); gap: 0 .6rem; }
.editor .tc-grid label { margin: .35rem 0; font-size: .9rem; }
.tc-hrs { margin: .3rem 0 0; font-weight: 700; color: var(--brand); }
.tc-weeks { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.tc-weeks li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .8rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); margin: 0 0 .5rem; }
.tc-weeks li.is-cur { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.tc-wb { display: flex; gap: .4rem; }
.toolbar { margin: .4rem 0 1rem; }
.tips h2 { margin-top: 1.4rem; }

/* Printing: app.js sets body[data-print] before opening the print dialog and removes it afterward.
   The shared app.css hides site chrome, tabs, editors and toolbars while printing. */
body[data-print="log"] #panel-log, body[data-print="week"] #panel-time { display: block !important; }
body[data-print] .editor, body[data-print] .toolbar, body[data-print] .no-print, body[data-print] .ml-act { display: none !important; }
body[data-print="log"] .ml-printhead { display: block; }
body[data-print] .ml-scroll { overflow: visible; }
body[data-print] #trip-table, body[data-print] .ml-rates, body[data-print] .ml-pt { min-width: 0; }
body[data-print] .ml-table { font-size: 11.5px; background: #fff; }
body[data-print] .ml-table th, body[data-print] .ml-table td { border-color: #999; padding: .25rem .35rem; }
body[data-print] .ml-table thead th, body[data-print] .ml-table tr.tot th, body[data-print] .ml-table tr.tot td { background: #eee; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body[data-print] .ml-table tr { break-inside: avoid; }
body[data-print] .ml-two { grid-template-columns: 1fr 1fr; }
body[data-print] .ml-stats p { border-color: #999; padding: .3rem .5rem; }
body[data-print] .ml-stats strong { font-size: 1.05rem; }
body[data-print] .ml-paper { max-width: none; }
