/* Loyal Fixerman V20.12.1 — Lovable-inspired Premium Field UI
   Design language adapted from user's Lovable prototype (Manrope / Sora, warm surfaces,
   floating navigation, tactile cards and sheets). Built on the EXISTING working app.
   No application DB schema or workflow changes are made here. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap');
:root{
  --lfL-brand:#f89520; --lfL-brand-2:#e86f16;
  --lfL-font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --lfL-display:"Sora","Manrope",system-ui,sans-serif;
  --lfL-radius:18px; --lfL-card-shadow:0 1px 2px rgba(50,37,27,.035),0 6px 24px -9px rgba(50,37,27,.13);
  --lfL-gradient:linear-gradient(135deg,#f8a12f 0%,#f28524 52%,#d96c1a 100%);
  --lfL-brand-shadow:0 10px 28px -11px rgba(212,99,15,.33);
}
html.lf20110-light-mode,html.lf20110-light-mode body{
  --bg:#faf8f5; --panel:#fff; --panel2:#f5f1ed; --panel3:#eae5e0;
  --line:#eae4dc; --text:#2b2927; --muted:#786e65; --orange:var(--lfL-brand);
  --pro-bg:#faf8f5; --pro-surface:#fff; --pro-surface-2:#f5f1ed; --pro-border:#eae4dc;
  --pro-text:#2b2927; --pro-muted:#786e65; --lf12-input:#fff; --lf12-soft:#6d635d;
  --lf12-shadow:var(--lfL-card-shadow); --lf12-orange:var(--lfL-brand); --lf12-orange-pressed:var(--lfL-brand-2);
  background:var(--bg)!important;
}
html.lf20110-black-mode,html.lf20110-black-mode body{
  --bg:#211f1d; --panel:#2b2826; --panel2:#34302e; --panel3:#403b37;
  --line:#423d39; --text:#f8f4ef; --muted:#bcb2aa; --orange:var(--lfL-brand);
  --pro-bg:#211f1d; --pro-surface:#2b2826; --pro-surface-2:#34302e; --pro-border:#423d39;
  --pro-text:#f8f4ef; --pro-muted:#bcb2aa; --lf12-input:#252320; --lf12-soft:#d1c6bd;
  --lf12-shadow:0 1px 2px rgba(0,0,0,.15),0 8px 24px -10px rgba(0,0,0,.4);
  --lf12-orange:var(--lfL-brand); --lf12-orange-pressed:var(--lfL-brand-2);
  background:var(--bg)!important;
}
html body{font-family:var(--lfL-font)!important;font-size:14px!important;letter-spacing:-.005em!important;padding-bottom:calc(113px + env(safe-area-inset-bottom))!important}
body::before{display:none!important}
html.lf20110-black-mode .header,html.lf20110-light-mode .header{
  background:color-mix(in srgb,var(--bg) 88%,transparent)!important;
  border:0!important; box-shadow:none!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  padding-top:11px!important;padding-bottom:11px!important;
}
.brand{gap:10px!important}.brand h1{font-family:var(--lfL-display)!important;font-size:15px!important;font-weight:750!important;letter-spacing:-.03em!important;text-transform:none!important;line-height:1.3!important}
.brand small{letter-spacing:.02em!important;font-size:9px!important;font-weight:700!important;text-transform:uppercase!important}
.brand img{border-radius:13px!important;box-shadow:0 3px 10px rgba(0,0,0,.07)!important}
.header .sync-chip{border-radius:999px!important}
.header .top-actions>button:not(.sync-chip){border-radius:50%!important;width:37px!important;height:37px!important;min-width:37px!important;min-height:37px!important;border:1px solid var(--line)!important;background:var(--panel)!important}
html main{max-width:970px;padding:16px 16px 42px!important}
.page-title{padding:4px 2px 16px!important;align-items:center!important}
.page-title h2{font-family:var(--lfL-display)!important;font-size:27px!important;font-weight:760!important;letter-spacing:-.042em!important}
#homePage .page-title h2{font-size:29px!important}
.lfL-eyebrow{font-size:10px!important;font-weight:800;text-transform:uppercase;letter-spacing:.16em;color:var(--orange);margin:0 0 5px!important}
#homePage .page-title{align-items:end!important}
#todayLabel{font-size:11px!important}
.section-head b,.section-head strong{font-family:var(--lfL-display)!important;font-size:14px!important;letter-spacing:-.025em!important}
html.lf20110-black-mode .card,html.lf20110-light-mode .card,
html.lf20110-black-mode .kpi,html.lf20110-light-mode .kpi,
html.lf20110-black-mode .list-item,html.lf20110-light-mode .list-item,
html.lf20110-black-mode .lf2080-record-card,html.lf20110-light-mode .lf2080-record-card{
  border-radius:var(--lfL-radius)!important;box-shadow:var(--lf12-shadow)!important;
  border:1px solid var(--line)!important;background:var(--panel)!important;
}
html.lf20110-black-mode .subcard,html.lf20110-light-mode .subcard{border-radius:15px!important}
.card{margin:11px 0!important;padding:17px!important}
.list-item{padding:15px!important;margin:9px 0!important;transition:transform .15s ease,border-color .15s ease}
.list-item:active{transform:scale(.992)}
#customerList .list-item{display:flex;gap:12px;align-items:center}
#customerList .status-line{min-width:0;flex:1}
.lfL-avatar{width:43px;height:43px;min-width:43px;display:grid;place-items:center;background:color-mix(in srgb,var(--orange) 13%,var(--panel));color:var(--orange);border-radius:50%;font-family:var(--lfL-display);font-size:12px;font-weight:800}
#customerList .list-item h3{font-family:var(--lfL-font)!important;font-size:14px!important;font-weight:800!important;letter-spacing:-.01em}
#customerList .list-item h3 .lfL-old-emoji{display:none}
#customerList .status-line>.muted,#customerList .status-line .muted{line-height:1.6}
#homePage .kpis{margin-bottom:17px!important;gap:12px!important}
#homePage .kpi{min-height:120px!important;padding:17px!important;border-radius:19px!important}
#homePage .kpi b{font-family:var(--lfL-display)!important;font-weight:800!important;font-size:26px!important;letter-spacing:-.045em!important}
#homePage .kpi small{font-size:11px!important;font-weight:700!important}
#homePage .kpi:first-child{background:var(--panel)!important}
#homePage .kpi:first-child:before{display:none!important}
#homePage .home-today-card,#homePage .home-quick-actions{border-radius:20px!important;min-height:0!important}
#homePage .home-quick-actions{padding:17px!important}
#homePage .command-card .section-head{padding-bottom:13px!important}
#homePage .today-work-card{border-radius:16px!important;border:1px solid var(--line)!important;margin:11px 0!important;padding:14px!important;background:var(--panel2)!important;box-shadow:none!important}
#homePage .today-work-card:first-of-type{
  background:var(--lfL-gradient)!important;color:#fff!important;border:0!important;
  box-shadow:var(--lfL-brand-shadow)!important;padding:17px!important;
}
#homePage .today-work-card:first-of-type b,#homePage .today-work-card:first-of-type span,#homePage .today-work-card:first-of-type .muted{color:#fff!important}
#homePage .today-work-card:first-of-type .today-work-main{padding:3px 0 14px!important}
#homePage .today-work-card:first-of-type .today-work-main b{font-family:var(--lfL-display)!important;font-size:17px!important;font-weight:760!important;letter-spacing:-.03em!important;line-height:1.3!important}
#homePage .today-work-card:first-of-type .today-work-main span{opacity:.92}
#homePage .today-work-card:first-of-type .today-work-actions{display:flex;gap:7px!important;flex-wrap:wrap}
#homePage .today-work-card:first-of-type .today-work-actions button,#homePage .today-work-card:first-of-type .today-work-actions .btn{background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:13px!important;box-shadow:none!important}
#homePage .today-work-card:first-of-type .today-work-actions button:active,#homePage .today-work-card:first-of-type .today-work-actions .btn:active{background:rgba(255,255,255,.29)!important}
#homePage .home-action-grid{gap:11px!important}
#homePage .home-action{min-height:96px!important;border-radius:16px!important;align-items:flex-start!important;text-align:left!important;font-family:var(--lfL-font)!important;font-weight:750!important}
#homePage .home-action.primary{background:var(--lfL-gradient)!important;color:#fff!important;border:0!important;box-shadow:var(--lfL-brand-shadow)!important}
#homePage .home-action.primary .lf12-icon{stroke:#fff!important}
#homePage .home-action.secondary{background:var(--panel2)!important}
.page-title .primary,.home-action-grid .primary{box-shadow:none!important}
html.lf20110-light-mode .primary,html.lf20110-black-mode .primary{background:var(--lfL-gradient)!important;color:#fff!important;border:1px solid transparent!important}
html.lf20110-light-mode button.primary,html.lf20110-black-mode button.primary{font-weight:750!important}
button,.btn{font-family:var(--lfL-font)!important;border-radius:13px!important;transition:transform .12s ease,background .14s ease,border-color .14s ease!important}
button:active,.btn:active{transform:scale(.982)}
button:focus-visible,.btn:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
input,textarea,select{font-family:var(--lfL-font)!important;border-radius:13px!important}
.pill{border-radius:999px!important;font-family:var(--lfL-font)!important;font-weight:800!important}
.search{position:relative!important;top:0!important;padding:6px 0 13px!important}
.search input{height:49px}
.sheet{border-radius:25px 25px 0 0!important}
.sheet-head h3{font-family:var(--lfL-display)!important}
/* Real app's responsive floating bar, inspired by Lovable's design. */
html.lf20110-black-mode .bottom-nav.lfL-bottom-nav,html.lf20110-light-mode .bottom-nav.lfL-bottom-nav{
  box-sizing:border-box!important;position:fixed!important;z-index:60!important;
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:min(440px,calc(100% - 24px))!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
  background:color-mix(in srgb,var(--panel) 96%,transparent)!important;
  border:1px solid var(--line)!important;border-radius:23px!important;
  display:grid!important;grid-template-columns:1fr 1fr 1.2fr 1fr 1fr!important;
  align-items:center!important;justify-content:space-between!important;gap:1px!important;
  padding:8px 5px!important;box-shadow:0 10px 30px rgba(0,0,0,.13)!important;
  backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)
}
.lfL-bottom-nav .navbtn,.lfL-bottom-nav .lfL-nav-aux{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-height:52px!important;padding:5px 2px!important;font-size:10px!important;line-height:1.2!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--muted)!important;font-weight:750!important;letter-spacing:0!important}
.lfL-bottom-nav .navbtn span,.lfL-bottom-nav .lfL-nav-aux span{display:grid!important;place-items:center!important;font-size:0!important;height:24px!important;width:24px!important;margin:0!important}
.lfL-bottom-nav .navbtn .lf12-icon,.lfL-bottom-nav .lfL-nav-aux .lf12-icon{width:22px!important;height:22px!important;stroke-width:2!important}
html.lf20110-black-mode .lfL-bottom-nav .navbtn.on,html.lf20110-light-mode .lfL-bottom-nav .navbtn.on,
.lfL-bottom-nav .lfL-nav-aux.on{background:transparent!important;color:var(--orange)!important}
.lfL-bottom-nav .lfL-nav-plus{width:56px!important;height:56px!important;min-width:0!important;min-height:56px!important;border-radius:17px!important;background:var(--lfL-gradient)!important;color:#fff!important;display:grid!important;place-items:center!important;border:0!important;margin:-23px auto 0!important;box-shadow:var(--lfL-brand-shadow)!important;font-family:var(--lfL-display)!important}
.lfL-bottom-nav .lfL-plus-icon{color:#fff!important;font-size:34px!important;line-height:1!important;font-weight:500!important;transform:translateY(-1px)}
#lf2090Fab{display:none!important}
.lfL-sheet-backdrop{position:fixed;inset:0;z-index:120;background:rgba(20,16,12,.47);backdrop-filter:blur(3px);display:flex;align-items:flex-end;justify-content:center;padding:0!important}
.lfL-sheet-backdrop.hidden{display:none!important}
.lfL-sheet{background:var(--panel);border:1px solid var(--line);border-bottom:0;border-radius:27px 27px 0 0;box-shadow:0 -8px 44px rgba(0,0,0,.18);width:min(100%,475px);padding:10px 18px max(26px,env(safe-area-inset-bottom));max-height:89dvh;overflow-y:auto;animation:lfLUp .17s ease-out}
@keyframes lfLUp{from{opacity:.7;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.lfL-sheet-handle{width:39px;height:5px;background:var(--line);border-radius:99px;margin:0 auto 15px}
.lfL-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.lfL-sheet-head h3{font-family:var(--lfL-display);font-size:19px;font-weight:800;letter-spacing:-.04em}
.lfL-close{font-size:24px!important;width:36px;height:36px!important;min-height:36px!important;padding:0!important;background:var(--panel2)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:50%!important}
.lfL-sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lfL-sheet-tile{min-height:111px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:14px 7px;background:var(--bg)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:17px!important;font-size:11.5px!important;font-weight:750!important;text-align:center;line-height:1.32!important}
.lfL-tile-icon{background:color-mix(in srgb,var(--orange) 13%,var(--panel));color:var(--orange);width:44px;height:44px;display:grid;place-items:center;border-radius:13px}
.lfL-tile-icon .lf12-icon{width:22px;height:22px}
@media (min-width:700px){
  html main{max-width:950px!important;padding:24px 24px 46px!important}
  html.lf20110-black-mode .lfL-bottom-nav,html.lf20110-light-mode .lfL-bottom-nav{bottom:18px!important}
  .lfL-sheet{border-radius:25px 25px 0 0}
}
@media(max-width:420px){
  html main{padding:12px 12px 36px!important}
  .brand h1{font-size:13px!important}
  .brand small{font-size:8.5px!important}
  .lfL-bottom-nav .navbtn,.lfL-bottom-nav .lfL-nav-aux{font-size:9.5px!important}
  .lfL-sheet-grid{gap:8px}
  .lfL-sheet-tile{min-height:100px;padding:9px 5px}
}
@media print{.lfL-bottom-nav,.lfL-sheet-backdrop{display:none!important}}
@media(prefers-reduced-motion:reduce){.lfL-sheet{animation:none}button,.btn,.list-item{transition:none!important}}

/* Shared premium status and supporting views, no changes to record rendering logic. */
.lf20110-notification-row,.lf2090-cal-job,.lf2090-search-result,.lf2090-expense-card{border-radius:16px!important;border-color:var(--line)!important}
.lf20110-notification-row{background:var(--panel)!important;box-shadow:var(--lfL-card-shadow)!important}
.lf20110-notification-row.is-unread{border-left:3px solid var(--orange)!important}
.lf20110-notification-tabs{gap:7px!important}
.lf20110-notification-tabs button{border-radius:999px!important}
.lf2090-calendar-toolbar,.lf2090-day-head{border-radius:16px!important}
.lf2090-cal-job{background:var(--panel2)!important}
.lf2090-quick-tile,.lf2090-next-step{border-radius:15px!important}
@media (hover:hover){.lfL-sheet-tile:hover{border-color:var(--orange)!important;transform:translateY(-1px)}}
