/* EarthRoster V1412 — targeted visual density correction.
   Existing EarthRoster styles, shift colours and original roster card structure retained. */

/* One restrained, clearly explained missed-clock banner. */
html body #app .er1411-attendance-banner {
  margin:5px 5px 8px!important;
  padding:8px 10px!important;
  gap:9px!important;
  border-radius:12px!important;
  min-height:0!important;
  box-shadow:none!important;
}
html body #app .er1411-attendance-banner .ic{
  width:27px!important;height:27px!important;flex-basis:27px!important;
  font-size:14px!important;border-radius:9px!important;
}
html body #app .er1411-attendance-banner strong{font-size:12px!important}
html body #app .er1411-attendance-banner small{font-size:10.5px!important;line-height:1.25!important}
html body #app .er1411-attendance-banner button{height:34px!important;min-height:34px!important;font-size:10.5px!important;border-radius:9px!important;padding:0 10px!important}

/* Employee Clock: tighter tab/summaries, with proper usable tap targets. */
@media (max-width:719px) {
 html body #app .clock-subnav.card.v499-clock-tabs{
   margin:0 5px 7px!important;padding:3px!important;min-height:45px!important;
   border-radius:13px!important;gap:3px!important;
 }
 html body #app .clock-subnav.v499-clock-tabs button{
   height:39px!important;min-height:39px!important;padding:0 10px!important;
   font-size:11.5px!important;border-radius:10px!important;
 }
 html body #app .clock-timesheet-page{gap:6px!important}
 html body #app .emp-ts-zone{gap:7px!important}
 html body #app .ets-hero{padding:8px 10px 4px!important;min-height:0!important;margin:0!important}
 html body #app .ets-hero h2{font-size:17px!important;line-height:1.08!important}
 html body #app .ets-hero p{font-size:10.5px!important;margin:3px 0 0!important}
 html body #app .ets-hero .ets-week-nav{gap:4px!important}
 html body #app .ets-hero .rh-nav{height:33px!important;width:33px!important;border-radius:9px!important}
 html body #app .ets-stat-grid{
   gap:5px!important;margin:0 8px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 html body #app .ets-mini{
   min-height:57px!important;padding:8px 10px!important;border-radius:11px!important;
   gap:4px!important;justify-content:center!important;
 }
 html body #app .ets-mini em{font-size:10px!important;line-height:1.05!important}
 html body #app .ets-mini strong{font-size:20px!important;line-height:1.05!important}
 html body #app .ets-summary-actions{
   margin:1px 8px 9px!important;gap:6px!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 html body #app .ets-summary-actions button{
   height:38px!important;min-height:38px!important;
   padding:0 7px!important;font-size:10.8px!important;border-radius:10px!important;
 }
 html body #app .ets-day-row{margin:2px 0 7px!important;gap:5px!important}
 html body #app .ets-day{padding:6px 3px!important;border-radius:11px!important}
 html body #app .ets-day strong{font-size:15px!important}
 html body #app .ets-day em{font-size:9px!important}
 html body #app .ets-day-card{padding:10px 12px!important;border-radius:16px!important}
 html body #app .ets-day-head{margin-bottom:9px!important;gap:8px!important}
 html body #app .ets-day-head strong{font-size:15px!important}
 html body #app .ets-day-head .btn{min-height:37px!important;font-size:10.8px!important;padding:0 11px!important}
 html body #app .v499-clock-page{gap:8px!important}
 html body #app .er1034-ready-stack{gap:8px!important}
 html body #app .er1034-ready-card{padding:10px 12px!important;min-height:0!important;border-radius:15px!important}
 html body #app .er1034-ready-card .er1034-no-shift{padding:8px 0!important;gap:10px!important}
 html body #app .er1034-ready-card .er1034-no-shift strong{font-size:17px!important}
 html body #app .er1034-ready-card .er1034-no-shift em{font-size:11px!important}
 html body #app .er1034-ready-card .v499-ready-actions button{height:37px!important;min-height:37px!important}
 html body #app .er1034-week-stats{min-height:70px!important;border-radius:13px!important}
 html body #app .er1034-week-stats>div{min-height:66px!important;padding:8px 7px!important;gap:6px!important}
 html body #app .er1034-week-stats em{font-size:10px!important}
 html body #app .er1034-week-stats strong{font-size:19px!important}
}

/* Featured next shift — use the original coloured roster card, not a second
   block of redundant labels, dividers and empty white space. */
html body #app .er1412-employee-home .er1412-featured,
html body #app .er1412-featured{
  padding:0!important;margin:5px 0 8px!important;
  background:#fffefa!important;border:1px solid #d9e5d8!important;
  border-radius:14px!important;overflow:hidden!important;
  box-shadow:0 4px 12px rgba(28,49,32,.055)!important;
}
html body #app .er1412-featured .er1412-feature-head{
  padding:9px 12px 5px!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:8px!important;
}
html body #app .er1412-featured .er1412-feature-head strong{
  font-size:12px!important;color:#2b593b!important;font-weight:850!important;
}
html body #app .er1412-featured .er1412-feature-head span{
  font-size:10px!important;color:#387147!important;font-weight:800!important;
  border-radius:999px!important;background:#edf4e9!important;padding:4px 9px!important;
}
html body #app .er1412-featured .er1412-feature-body{padding:0 9px!important}
html body #app .er1412-featured .er1412-feature-actions{
  display:grid!important;grid-template-columns:1.15fr 1fr!important;
  gap:7px!important;padding:7px 10px 10px!important;
}
html body #app .er1412-featured .er1412-feature-actions button{
  min-height:38px!important;height:38px!important;border-radius:10px!important;
  padding:0 9px!important;background:#edf3e9!important;color:#29583b!important;
  border:1px solid #d9e3d5!important;font-size:11px!important;font-weight:800!important;
}
html body #app .er1412-featured .er1412-feature-actions button.primary{
  background:#285d40!important;border-color:#285d40!important;color:#fff!important;
}
html body #app .er1412-featured .rc-actions-row{display:none!important}
html body #app .er1412-featured .rcard{margin:0!important}

/* Six upcoming shifts use authentic EarthRoster shiftCard() markup and its
   per-shift colour, time rail, client, status, and actions. Only density changes. */
html body #app .home-roster-list.er1412-upcoming-roster{
  display:flex!important;flex-direction:column!important;
  gap:7px!important;margin:5px 0 11px!important;
  grid-template-columns:1fr!important;
}
html body #app .er1412-upcoming-roster .rcard,
html body #app .er1412-feature-body .rcard{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:stretch!important;gap:0!important;
  border-radius:13px!important;min-height:0!important;
  padding:0!important;box-shadow:0 3px 9px rgba(25,46,28,.07)!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--solid) 21%,#dce5d9)!important;
  background:linear-gradient(105deg,var(--surface) 0%,#fff 65%)!important;
}
html body #app .er1412-upcoming-roster .rcard .rc-v714-time,
html body #app .er1412-feature-body .rcard .rc-v714-time{
  height:auto!important;min-height:79px!important;width:58px!important;min-width:58px!important;
  border-radius:0!important;margin:0!important;padding:9px 3px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-items:center!important;color:#fff!important;
  background:linear-gradient(155deg,var(--solid),var(--deep))!important;
}
html body #app .er1412-upcoming-roster .rc-v714-start,
html body #app .er1412-feature-body .rc-v714-start{font-size:17px!important;line-height:1!important;color:#fff!important}
html body #app .er1412-upcoming-roster .rc-v714-ap,
html body #app .er1412-feature-body .rc-v714-ap{font-size:9px!important;color:#fff!important}
html body #app .er1412-upcoming-roster .rc-v714-dur,
html body #app .er1412-feature-body .rc-v714-dur{
  font-size:9px!important;color:var(--deep)!important;background:#fff!important;
  border-radius:999px!important;padding:2px 5px!important;margin-top:5px!important;
}
html body #app .er1412-upcoming-roster .rcard .rc-v714-body,
html body #app .er1412-feature-body .rcard .rc-v714-body{
  display:flex!important;flex-direction:column!important;
  gap:3px!important;padding:9px 11px!important;min-width:0!important;
}
html body #app .er1412-upcoming-roster .rc-v714-title-row,
html body #app .er1412-feature-body .rc-v714-title-row{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important}
html body #app .er1412-upcoming-roster .rc-v714-title-row h3,
html body #app .er1412-feature-body .rc-v714-title-row h3{
  font-size:13px!important;line-height:1.16!important;
  margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body #app .er1412-upcoming-roster .rc-v714-range,
html body #app .er1412-feature-body .rc-v714-range{font-size:10.5px!important;line-height:1.2!important;gap:5px!important}
html body #app .er1412-upcoming-roster .rc-v714-line,
html body #app .er1412-feature-body .rc-v714-line{font-size:10px!important;line-height:1.25!important;overflow:hidden!important}
html body #app .er1412-upcoming-roster .rc-v714-address span,
html body #app .er1412-feature-body .rc-v714-address span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body #app .er1412-upcoming-roster .rc-v714-status,
html body #app .er1412-feature-body .rc-v714-status{
  font-size:9px!important;padding:3px 7px!important;border-radius:999px!important;
}
html body #app .er1412-upcoming-roster .rc-v714-actions{
  margin:3px 0 0!important;padding:3px 0 0!important;gap:6px!important;
}
html body #app .er1412-upcoming-roster .rc-v714-actions .rc-act{
  height:29px!important;min-height:29px!important;padding:0 8px!important;
  border-radius:8px!important;font-size:10.5px!important;
}
@media(max-width:375px){
 html body #app .er1412-upcoming-roster .rcard,
 html body #app .er1412-feature-body .rcard{grid-template-columns:52px minmax(0,1fr)!important}
 html body #app .er1412-upcoming-roster .rcard .rc-v714-time,
 html body #app .er1412-feature-body .rcard .rc-v714-time{width:52px!important;min-width:52px!important}
}

/* The active V1393 roster renderer produces .er794-card, not .rcard.
   Match those exact real card elements without changing the roster screen. */
html body #app .er1412-feature-body.home-roster-list{display:block!important;margin:0!important;padding:0 8px!important;width:100%!important;box-sizing:border-box!important}
html body #app .er1412-feature-body.home-roster-list>.er794-card{
  height:82px!important;min-height:82px!important;max-height:82px!important;
  overflow:hidden!important;margin:0!important;
  grid-template-columns:63px minmax(0,1fr)!important;
  gap:8px!important;padding:6px 9px!important;
  border-radius:12px!important;
}
html body #app .er1412-feature-body .er794-time{height:67px!important;min-height:67px!important;width:63px!important;min-width:63px!important}
html body #app .er1412-feature-body .er794-info{gap:2px!important}
html body #app .er1412-feature-body .er794-title{font-size:13px!important;line-height:1.1!important}
html body #app .er1412-feature-body .er794-meta{font-size:9.5px!important;line-height:1.2!important}
html body #app .er1412-feature-body .er794-address{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body #app .er1412-feature-body .er794-side,
html body #app .er1412-feature-body .er795-inline-view,
html body #app .er1412-feature-body .er794-response{display:none!important}
html body #app .er1412-featured .er1412-feature-actions{padding-top:8px!important}
html body #app .er1412-upcoming-roster.home-roster-list{display:flex!important;gap:7px!important}
html body #app .er1412-upcoming-roster.home-roster-list>.er794-card{
  height:86px!important;min-height:86px!important;max-height:86px!important;
  padding:7px 9px!important;gap:8px!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  border-radius:13px!important;overflow:hidden!important;
  box-shadow:0 3px 10px rgba(24,47,30,.055)!important;
}
html body #app .er1412-upcoming-roster .er794-time{width:62px!important;min-width:62px!important;height:69px!important;min-height:69px!important}
html body #app .er1412-upcoming-roster .er794-title{font-size:12.5px!important}
html body #app .er1412-upcoming-roster .er794-meta{font-size:9px!important}
html body #app .er1412-upcoming-roster .er794-side{display:none!important}
html body #app .er1412-upcoming-roster .er795-inline-view{display:none!important}

/* V1412 final compact roster-card preview variant. Its colour palette, times,
   statuses, addresses and deep links come from the same live roster records. */
html body #app .er1412-feature-body.home-roster-list,
html body #app .er1412-upcoming-roster.home-roster-list{
  display:flex!important;flex-direction:column!important;gap:7px!important;
  width:100%!important;max-width:none!important;
  margin:0!important;padding:0 9px!important;box-sizing:border-box!important;
}
html body #app .er1412-upcoming-roster.home-roster-list{padding:0 4px!important}
html body #app .er1412-featured .er1412-feature-body{padding:0 9px!important}
html body #app .er1412-roster-card{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;gap:0!important;
  min-height:83px!important;height:83px!important;
  background:linear-gradient(110deg,var(--er1412-surface),#fff 88%)!important;
  border:1px solid color-mix(in srgb,var(--er1412-solid) 24%,#e0e8e0)!important;
  border-radius:13px!important;box-shadow:0 3px 10px rgba(24,44,31,.06)!important;
  color:#253e2f!important;overflow:hidden!important;position:relative!important;
  cursor:pointer!important;
}
html body #app .er1412-roster-card .er1412-r-rail{
  background:linear-gradient(158deg,var(--er1412-solid),var(--er1412-deep))!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-items:center!important;padding:6px 2px!important;min-width:0!important;
  color:#fff!important;gap:2px!important;
}
html body #app .er1412-roster-card .er1412-r-rail b{font-size:15px!important;font-weight:850!important;line-height:1.05!important;color:#fff!important}
html body #app .er1412-roster-card .er1412-r-rail small{font-size:9px!important;font-weight:800!important;line-height:1!important;color:#fff!important}
html body #app .er1412-roster-card .er1412-r-content{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  gap:5px!important;min-width:0!important;padding:8px 11px!important;
}
html body #app .er1412-roster-card .er1412-r-top{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
html body #app .er1412-roster-card .er1412-r-top strong{
  flex:1!important;min-width:0!important;font-size:12.3px!important;
  font-weight:850!important;color:#263f30!important;line-height:1.12!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body #app .er1412-roster-card .er1412-r-top em{
  flex:0 0 auto!important;font-style:normal!important;font-size:10px!important;
  font-weight:800!important;color:var(--er1412-deep)!important;
  background:#fff!important;border-radius:99px!important;padding:3px 6px!important;
  border:1px solid color-mix(in srgb,var(--er1412-solid) 20%,white)!important;
}
html body #app .er1412-roster-card .er1412-r-meta,
html body #app .er1412-roster-card .er1412-r-address{
  font-size:10.1px!important;font-weight:600!important;
  color:#67786c!important;line-height:1.13!important;
  min-width:0!important;white-space:nowrap!important;overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body #app .er1412-roster-card .er1412-r-meta span{font-weight:500!important}
html body #app .er1412-roster-card .er1412-r-pill{
  position:absolute!important;right:9px!important;bottom:7px!important;
  font-size:8.5px!important;font-weight:800!important;
  color:#2d6842!important;background:#e7f2e7!important;
  padding:3px 6px!important;border-radius:999px!important;
}
html body #app .er1412-roster-card .er1412-r-pill.waiting{background:#fff0db!important;color:#916322!important}
html body #app .er1412-roster-card .er1412-r-address{padding-right:65px!important}
html body #app .er1412-featured .er1412-feature-actions{margin:0!important;padding:8px 9px 10px!important}
@media(max-width:350px){html body #app .er1412-roster-card .er1412-r-meta span{display:none!important}}
