/* merge-invoicing-1201: small glue between Fieldline's v3 look and the jobs & invoices screens. Flat rows, hairlines, mono numbers. */
html.fl3 .estjob{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:2px 0 12px;padding:10px 0;border-top:1px solid var(--x-line);border-bottom:1px solid var(--x-line)}
html.fl3 .estjob-k{display:inline-flex;align-items:center;gap:6px;font:500 11px var(--x-mono);letter-spacing:.09em;text-transform:uppercase;color:var(--x-mut2);margin-right:4px}
html.fl3 .estjob-k svg{width:15px;height:15px;color:var(--x-acc)}
html.fl3 .estjob .meta{font-size:13px;color:var(--x-mut)}
html.fl3 .ivmock,html.fl3 .ivtest{font:500 10.5px var(--x-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--x-mut2);margin-left:6px}
html.fl3 .ivphb{display:flex;gap:8px;flex-wrap:wrap}
html.fl3 :is(#invl,#ined,#pay,#outbox,#ivteam) .nvsub .nvt a.ivback{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none}
/* Settings > Invoices / Jobs & work orders */
html.fl3 .s4inv .s4f{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,260px);gap:6px 24px;align-items:center;padding:12px 0;border-bottom:1px solid var(--x-line2)}
html.fl3 .s4inv .s4f:last-of-type{border-bottom:0}
html.fl3 .s4inv .s4f b{display:block;font-weight:600;font-size:14px}
html.fl3 .s4inv .s4f small{display:block;color:var(--x-mut);font-size:12.5px;margin-top:2px;line-height:1.4}
html.fl3 .s4inv .s4f .in{width:100%}
html.fl3 .s4inv .s4f .s4u{display:flex;align-items:center;gap:8px}
html.fl3 .s4inv .s4f .s4u .in{font-family:var(--x-mono);font-variant-numeric:tabular-nums}
html.fl3 .s4inv .s4f .s4u span{color:var(--x-mut);font-size:13px;white-space:nowrap}
html.fl3 .s4inv .s4act{display:flex;align-items:center;gap:10px;padding:12px 0 2px}
html.fl3 .s4inv textarea.in{min-height:64px}
@media (max-width:760px){html.fl3 .s4inv .s4f{grid-template-columns:1fr}}
/* Jobs & invoices permissions (#ivteam): name on top, switches wrap under it */
html.fl3 #ivteam .card .row.ivtm{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;grid-template-areas:none!important;gap:8px 12px!important}
html.fl3 #ivteam .ivtm>.av{grid-area:auto}
html.fl3 #ivteam .ivtm>.tt{grid-area:auto!important}
html.fl3 #ivteam .ivtm .ivperm{grid-column:2;display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;min-width:0}
html.fl3 #ivteam .ivpt{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--x-ink)}
html.fl3 #ivteam .ivpal{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}
html.fl3 #ivteam .ivsw{width:22px;height:22px;padding:0;border:1px solid rgba(0,0,0,.12);cursor:pointer}
html.fl3 #ivteam .ivsw.on{outline:2px solid var(--x-ink);outline-offset:2px}
/* the settings edit pane can be narrow at 1024-1280: stack label over control when the card itself is narrow */
html.fl3 .s4inv .s4ib{container-type:inline-size}
@container (max-width:520px){html.fl3 .s4inv .s4f{grid-template-columns:1fr;gap:8px}}
/* look.js tags every card row (data-lkc) and cards.css flattens .tt/.lkr on phones; invoice line editors keep their grid */
@media (max-width:600px){
 .lk7 .scr .card .row.ivl.ivl[data-lkc]>.tt{display:block}
 .lk7 .scr .card .row.ivl.ivl[data-lkc]>.lkr{display:flex}
}
/* settings invoicing cards: same inner padding as the card head; numbers keep a compact box so the unit always fits */
html.fl3 .s4inv .s4ib{padding:0 16px 12px}
html.fl3 .s4inv .s4f .s4u .in{flex:0 1 120px;min-width:0}
html.fl3 .s4inv .s4f .s4u select.in{flex:1 1 auto}
html.fl3 .s4inv .s4f .s4u span{white-space:normal}

/* Needs scheduling box sits directly under the Today box. */
.v3unsched{margin:0}
.v3unsched .empty{padding:14px 16px}
.paybal{margin-left:6px}

/* Dashboard daily board (merge-invoicing-1201): flat hairline rows, mono numbers, one column on phones.
   Header: icon + title + a right-hand stack (amount over the count). The title must never shrink to
   one letter per line (.card * {min-width:0} and overflow-wrap:anywhere would do that). */
.v3board{width:100%}
.bdg{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px;align-items:start;width:100%}
.bdx{margin:0;padding:0;min-width:0;overflow:hidden}
.bdx>.ch, .bdx .ch{
  display:flex;flex-wrap:nowrap!important;align-items:center;gap:10px 12px;
  padding:12px 16px;margin:0
}
.bdx .ch::before,.bdx .ch::after{display:none!important}
.bdx .ch .bdi{flex:0 0 auto;align-self:center;display:inline-flex;color:var(--tx2,#5b6560)}
.bdx .ch .bdi .i{width:18px;height:18px;flex:none}
.bdx .ch h2{
  flex:1 1 auto;min-width:8rem;max-width:100%;margin:0;
  font-size:15px;line-height:1.3;font-weight:650;
  overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal
}
.bdx .ch .bdmeta{
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;
  gap:2px;flex:0 0 auto;min-width:auto;margin-left:auto
}
.bds{color:var(--tx2,#5b6560);font-family:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap;overflow-wrap:normal;word-break:normal;min-width:auto}
.bdn{font-family:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;font-size:22px;font-weight:600;line-height:1;min-width:1.5ch;text-align:right;overflow-wrap:normal;word-break:normal}
.bdn.zero{color:var(--tx3,#9aa39e);font-weight:500}
.bdx .ch .bds,.bdx .ch .bdn{flex:0 0 auto;min-width:auto}
.bdr{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--l,#e5e7eb);text-decoration:none;color:inherit;min-height:48px}
.bdr:hover{background:#f7f9f8}
.bdt{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.bdt b{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bdt small{color:var(--tx2,#5b6560);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bdm{font-family:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;font-size:13px;white-space:nowrap;color:var(--tx2,#5b6560)}
.bdm.late{color:#b4322a;font-weight:600}
.bde{padding:12px 16px;border-top:1px solid var(--l,#e5e7eb);color:var(--tx2,#5b6560);font-size:13px}
.bdg>.bde{border:0}
.bdall{display:block;padding:10px 16px;border-top:1px solid var(--l,#e5e7eb);font-size:13px;font-weight:600;color:#1a7f45;text-decoration:none}

/* Daily board sits right under Today / Needs scheduling / Needs estimate. Insights comes after it.
   fl3/theme.css sets #home>.wrap>*{order:4} and #lkch{order:3}, which had been putting Insights above the board. */
html.fl3 #home>.wrap>.dtr.v3board{order:3}
html.fl3 #home>.wrap>#lkch{order:4}
/* Section heading: "Daily board" stays on one line; the subtitle wraps beside it or under it on phones. */
.v3board>.dth{flex-wrap:wrap;align-items:baseline}
.v3board>.dth h2{flex:0 0 auto;min-width:auto;white-space:nowrap;overflow-wrap:normal}
.v3board>.dth small{flex:1 1 12rem;min-width:8rem}
@media (max-width:760px){
  .v3board>.dth{flex-direction:column;align-items:flex-start;gap:2px}
  .v3board>.dth small{flex:1 1 auto;min-width:0}
}

/* Invoice warranty claim panel — Fieldline v3: white, hairline rows, mono numbers, no pills */
.iwc-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:10px 16px 4px}
@media (max-width:760px){.iwc-fields{grid-template-columns:1fr}}
.iwc-fields .ivf{display:flex;flex-direction:column;gap:4px;min-width:0}
.iwc-fields .ivf span{font-size:12px;color:var(--tx2,#5b6560)}
.iwc-fields .ivf.full{grid-column:1/-1}
.iwc-st{display:flex;margin:8px 16px 4px;border-top:1px solid var(--line,#e6e8e6);border-bottom:1px solid var(--line,#e6e8e6)}
.iwc-s{flex:1;background:#fff;border:0;border-right:1px solid var(--line,#e6e8e6);padding:10px 8px;font:inherit;font-size:13px;color:var(--tx,#1a1d1a);cursor:pointer}
.iwc-s:last-child{border-right:0}
.iwc-s.on{font-weight:650;color:var(--acc,#1a7f45)}
.iwc-s:disabled{opacity:.55;cursor:default}
.iwc-act{padding:8px 16px 14px}
.iwc-sub{display:flex;gap:0;border-bottom:1px solid var(--line,#e6e8e6);margin:0 0 10px}
.iwc-sub a{background:#fff;border:0;border-right:1px solid var(--line,#e6e8e6);padding:8px 14px;font:inherit;font-size:13px;color:var(--tx,#1a1d1a);text-decoration:none}
.iwc-sub a:last-child{border-right:0}
.iwc-sub a.on{font-weight:650;color:var(--acc,#1a7f45)}

/* Quick estimate marker (list) and editor — not a pill */
.ivqk{font-size:12px;font-weight:600;color:#1a7f45;letter-spacing:.01em;margin-left:4px}
.qest-choice{background:#fff;width:min(520px,100%);padding:22px 20px 16px;border-top:1px solid #e5e7eb}
.qest-choice h2{margin:0 0 6px;font-size:20px;font-weight:650;letter-spacing:-.02em}
.qest-choice .meta{margin-bottom:14px}
.qest-opt{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:0;padding:14px 14px;margin:0 0 8px;cursor:pointer}
.qest-opt:hover,.qest-opt:focus{border-color:#1a7f45;outline:none}
.qest-opt b{display:block;font-size:16px;font-weight:650;margin-bottom:4px}
.qest-opt span{display:block;font-size:13px;color:#6b7280;line-height:1.4;font-weight:400}
.qest-ed{background:#fff;min-height:100%;}
.qest-ed .ived{padding-bottom:48px}
.qest-hits{position:absolute;left:0;right:0;top:100%;z-index:5;background:#fff;border:1px solid #e5e7eb;max-height:240px;overflow:auto}
.qest-hits button{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #f3f4f6;padding:8px 10px;cursor:pointer}
.qest-hits button:hover{background:#f8faf9}
.qest-cust{position:relative}

/* Quick estimate editor: hide the estimates list underneath so the document
   is not thousands of px tall, and keep the typeahead dropdown short like invoices. */
html.qest-open,html.qest-open body{overflow:hidden;height:100%;}
html.qest-open #app{display:none !important;}
#qestx{position:fixed;inset:0;z-index:80;background:#fff;overflow:auto;-webkit-overflow-scrolling:touch;}
#qestx .i{width:16px;height:16px;flex:0 0 auto;vertical-align:middle;}
#qestx .ivback{display:inline-flex;align-items:center;gap:6px;}
#qestx .ivdd,#qestx .lkdd{position:absolute;max-height:240px;overflow:auto;z-index:6;}

/* Work-order note outlines: win over html.fl3 textarea.in in theme.css */
html.fl3 textarea.in.scnote-priv,html.fl3 textarea.scnote-priv{border:2px solid #c0392b !important;box-shadow:none !important;outline:none}
html.fl3 textarea.in.scnote-cust,html.fl3 textarea.scnote-cust{border:2px solid #1a7f45 !important;box-shadow:0 0 0 1px #c5a046 !important;outline:none}
html.fl3 textarea.in.scnote-off,html.fl3 textarea.scnote-off{border:1px solid var(--x-line,#e5e7eb) !important}

/* Spanish strings can be longer; don't clip buttons or labels. */
html[data-app-lang=es] .scsteps button,html[data-app-lang=es] .v3cal-open,html[data-app-lang=es] .scjlab,html[data-app-lang=es] .nv,html[data-app-lang=es] #tabs a{white-space:normal;line-height:1.2;overflow:visible;word-break:normal}
html[data-app-lang=es] .dxh{flex-wrap:wrap;gap:6px}
html[data-app-lang=es] .dxh .btn,html[data-app-lang=es] .dxv .btn,html[data-app-lang=es] .dxa .btn{white-space:nowrap;min-width:0;flex:0 1 auto;padding-left:10px;padding-right:10px;overflow:visible}
html[data-app-lang=es] .scsteps{flex-wrap:wrap}
html[data-app-lang=es] .scjadd{flex-wrap:wrap}
#ivteam .ivperm .ivpt:last-of-type{flex-basis:100%}
