/* OneSpotOps authenticated shell and approved Dashboard layout.
   This file owns shell geometry so sidebar width is defined in one place. */

:root {
  --oso-sidebar-collapsed: 72px;
  --oso-sidebar-expanded: 264px;
  --oso-command-height: 64px;
  --oso-shell-border: #e2e8e4;
  --oso-shell-bg: #f7f9f8;
  --oso-panel-bg: #ffffff;
  --oso-text: #101c24;
  --oso-muted: #607080;
  --oso-green: #08752d;
  --oso-green-dark: #005b22;
  --oso-green-soft: #edf7f0;
  --oso-shadow: 0 2px 9px rgba(20, 40, 29, 0.045);
}

/* --------------------------------------------------------------------------
   Shared desktop shell
   -------------------------------------------------------------------------- */

html[data-sidebar-state] body.is-authenticated.target-operations-view {
  width: 100%;
  height: 100dvh;
  overflow: hidden !important;
  background: var(--oso-shell-bg);
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .app-frame {
  display: grid !important;
  width: 100%;
  height: 100dvh !important;
  min-height: 0 !important;
  grid-template-columns: var(--oso-sidebar-collapsed) minmax(0, 1fr) !important;
  overflow: hidden !important;
  background: var(--oso-shell-bg);
  transition: grid-template-columns 180ms ease;
}

html[data-sidebar-state="expanded"] body.is-authenticated.target-operations-view .app-frame {
  grid-template-columns: var(--oso-sidebar-expanded) minmax(0, 1fr) !important;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .sidebar {
  position: relative !important;
  z-index: 80;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid var(--oso-shell-border) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.app-sidebar-inner {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 68px minmax(0, 1fr) auto;
}

.app-sidebar-brand {
  display: flex;
  min-width: 0;
  padding: 0 14px;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.app-sidebar-brand img {
  width: 38px;
  height: 38px;
  min-width: 38px;
  object-fit: contain;
}

.app-sidebar-brand-label {
  display: flex;
  min-width: 0;
  align-items: baseline;
  overflow: hidden;
  color: var(--oso-text);
  font-size: 18px;
  font-style: normal;
  letter-spacing: -0.035em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 120ms ease;
}

.app-sidebar-brand-label b { font-weight: 800; }
.app-sidebar-brand-label em { color: var(--oso-green); font-style: normal; font-weight: 800; }
.app-sidebar-mobile-close { display: none; }

.app-sidebar-nav {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 9px 10px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d9e1dc transparent;
}

.app-sidebar-section {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-sidebar-section + .app-sidebar-section { margin-top: 9px; }

.app-sidebar-nav .sidebar-section-label {
  display: block !important;
  height: 20px;
  margin: 0;
  padding: 4px 10px 3px;
  overflow: hidden;
  color: #8a9690;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
  transition: height 160ms ease, padding 160ms ease, opacity 90ms ease;
}

.app-sidebar-nav .nav-tab {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: stretch;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #53625a !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-align: left;
  white-space: nowrap;
}

.app-sidebar-nav .nav-tab:hover,
.app-sidebar-nav .nav-tab:focus-visible {
  color: var(--oso-green) !important;
  background: #f4f8f5 !important;
}

.app-sidebar-nav .nav-tab.active {
  color: var(--oso-green-dark) !important;
  border-color: #d9eadf !important;
  background: var(--oso-green-soft) !important;
}

.app-sidebar-nav .nav-tab svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  stroke-width: 1.8;
}

.app-sidebar-nav .nav-tab > span {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  overflow: hidden !important;
  clip: auto !important;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 100ms ease;
}

.app-sidebar-footer {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 9px 10px 12px;
  gap: 7px;
  border-top: 1px solid var(--oso-shell-border);
  background: #fff;
}

.app-sidebar-profile,
.app-sidebar-toggle {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  justify-content: stretch;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #53625a;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
}

.app-sidebar-profile:hover,
.app-sidebar-profile:focus-visible,
.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus-visible {
  border-color: #dce7df !important;
  background: #f6f9f7 !important;
}

.app-sidebar-profile .profile-avatar {
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  margin: 0 !important;
  place-items: center;
  border: 1px solid #d8e5dc;
  border-radius: 50% !important;
  color: var(--oso-green-dark);
  background: #f7fbf8;
  font-size: 10px;
  font-weight: 800;
}

.app-sidebar-profile > div:not(.profile-avatar) {
  display: grid !important;
  min-width: 0;
  opacity: 1;
  transition: opacity 100ms ease;
}

.app-sidebar-profile strong,
.app-sidebar-profile span {
  position: static !important;
  display: block !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-profile strong { color: var(--oso-text); font-size: 11px; }
.app-sidebar-profile span { color: var(--oso-muted); font-size: 9px; }
.app-sidebar-profile > svg { width: 14px; }

.app-sidebar-toggle {
  grid-template-columns: 24px minmax(0, 1fr);
  border-color: #e1e8e3 !important;
  cursor: pointer;
  font: 650 11px/1 Inter, sans-serif;
}

.app-sidebar-toggle svg { width: 17px; height: 17px; justify-self: center; }
.app-sidebar-toggle span { overflow: hidden; white-space: nowrap; opacity: 1; transition: opacity 100ms ease; }

html[data-sidebar-state="collapsed"] .app-sidebar-brand { justify-content: center; padding-inline: 0; }
html[data-sidebar-state="collapsed"] .app-sidebar-brand-label,
html[data-sidebar-state="collapsed"] .app-sidebar-profile > div:not(.profile-avatar),
html[data-sidebar-state="collapsed"] .app-sidebar-profile > svg,
html[data-sidebar-state="collapsed"] .app-sidebar-toggle span { opacity: 0; pointer-events: none; }
html[data-sidebar-state="collapsed"] .app-sidebar-nav .sidebar-section-label { height: 0; padding-block: 0; opacity: 0; }
html[data-sidebar-state="collapsed"] .app-sidebar-section + .app-sidebar-section { margin-top: 3px; }
html[data-sidebar-state="collapsed"] .app-sidebar-nav .nav-tab { width: 44px !important; padding: 0 !important; grid-template-columns: 1fr; justify-items: center; }
html[data-sidebar-state="collapsed"] .app-sidebar-nav .nav-tab > span { position: absolute !important; width: 1px !important; height: 1px !important; clip: rect(0 0 0 0) !important; opacity: 0; }
html[data-sidebar-state="collapsed"] .app-sidebar-profile,
html[data-sidebar-state="collapsed"] .app-sidebar-toggle { width: 44px !important; padding: 5px !important; grid-template-columns: 1fr; justify-items: center; }
html[data-sidebar-state="collapsed"] .app-sidebar-profile { grid-template-columns: 32px; }

html[data-sidebar-state] body.is-authenticated.target-operations-view .main {
  width: 100% !important;
  min-width: 0 !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: var(--oso-shell-bg) !important;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .workspace {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100% !important;
  background: transparent !important;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header {
  position: sticky !important;
  z-index: 60 !important;
  top: 0 !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--oso-command-height) !important;
  height: var(--oso-command-height) !important;
  margin: 0 !important;
  padding: 9px 24px !important;
  align-items: center !important;
  border: 0 !important;
  border-bottom: 1px solid var(--oso-shell-border) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header > div:first-child {
  display: block !important;
  flex: 0 0 auto;
  min-width: 230px;
  margin-right: 28px;
}

body.is-authenticated.target-operations-view .page-header .page-kicker,
body.is-authenticated.target-operations-view .page-header #currentViewSubtitle { display: none !important; }

body.is-authenticated.target-operations-view .page-header #currentViewTitle {
  margin: 0 !important;
  color: #101c2b !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1 !important;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .header-actions {
  width: auto !important;
  flex: 1 1 auto;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .search-box {
  width: min(390px, 34vw) !important;
}

html[data-sidebar-state] body.is-authenticated[data-active-view="schedule"] .page-header > div:first-child {
  display: block !important;
  flex: 0 0 auto;
  min-width: 230px;
  margin-right: 28px;
}

body.is-authenticated[data-active-view="schedule"] .page-header .page-kicker,
body.is-authenticated[data-active-view="schedule"] .page-header #currentViewSubtitle { display: none !important; }

body.is-authenticated[data-active-view="schedule"] .page-header #currentViewTitle {
  margin: 0 !important;
  color: #101c2b !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1 !important;
}

html[data-sidebar-state] body.is-authenticated[data-active-view="schedule"] .page-header .header-actions {
  width: auto !important;
  flex: 1 1 auto;
}

html[data-sidebar-state] body.is-authenticated[data-active-view="schedule"] .page-header .search-box {
  width: min(390px, 34vw) !important;
}

body.is-authenticated[data-active-view="schedule"] .schedule-v2-header {
  min-height: 0 !important;
  margin-bottom: 0 !important;
  justify-content: flex-end !important;
}
html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .header-actions {
  display: flex !important;
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  gap: 9px !important;
  align-items: center;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .search-box {
  position: relative;
  width: min(460px, 42vw) !important;
  min-width: 220px;
  min-height: 40px !important;
  margin: 0 auto 0 0 !important;
  border: 1px solid #dce4df !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .search-box:focus-within {
  border-color: #7db88e !important;
  box-shadow: 0 0 0 3px rgba(8, 117, 45, 0.1) !important;
}

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .search-box input {
  width: 100%;
  min-width: 0;
  height: 38px !important;
  padding-right: 58px;
  font-size: 12px !important;
}

body.is-authenticated.target-operations-view .page-header .search-box { order: 10; }
body.is-authenticated.target-operations-view .page-header #openMyActivity { order: 20; }
body.is-authenticated.target-operations-view .page-header .notification-wrap { order: 30; }
body.is-authenticated.target-operations-view .page-header #headerPrimaryAction { order: 40; }
body.is-authenticated.target-operations-view .page-header #commandProfileButton { order: 50; }
body.is-authenticated.target-operations-view .page-header #refreshButton { order: 60; }

html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .button,
html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .icon-button,
html[data-sidebar-state] body.is-authenticated.target-operations-view .command-profile-button {
  min-height: 38px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.app-mobile-menu-button { display: none !important; }
.app-sidebar-backdrop { display: none; }

html[data-sidebar-state] body.is-authenticated.target-operations-view .profile-menu:not(.hidden) {
  position: fixed !important;
  z-index: 150 !important;
  right: auto !important;
  bottom: 69px !important;
  left: 10px !important;
  top: auto !important;
  width: 244px !important;
}

html[data-sidebar-state="collapsed"] body.is-authenticated.target-operations-view .profile-menu:not(.hidden) { left: 66px !important; }

/* --------------------------------------------------------------------------
   Approved Dashboard
   -------------------------------------------------------------------------- */

html[data-sidebar-state] body.is-authenticated[data-active-view="dashboard"] #dashboardView {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: calc(100dvh - var(--oso-command-height));
  margin: 0 !important;
  padding: 24px 28px 36px !important;
  overflow: visible !important;
}

body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top {
  display: flex !important;
  min-height: 72px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  gap: 20px;
  align-items: flex-start !important;
  justify-content: space-between;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top::before { display: none !important; }
body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top h2 {
  margin: 0 !important;
  color: var(--oso-text) !important;
  font-size: clamp(25px, 2.1vw, 31px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
}

body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top p {
  margin: 6px 0 0 !important;
  color: var(--oso-muted) !important;
  font-size: 13px !important;
}

body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-actions {
  display: flex !important;
  margin: 0 !important;
  gap: 12px;
  align-items: center;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-local-clock {
  display: grid !important;
  min-width: 178px;
  justify-items: end;
  color: var(--oso-text);
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-local-clock span { color: #52606d; font-size: 11px; font-weight: 650; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-local-clock strong { margin-top: 3px; font-size: 23px; letter-spacing: -0.03em; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-view-options { width: 42px !important; height: 42px !important; border: 1px solid var(--oso-shell-border) !important; background: #fff !important; }

body.is-authenticated[data-active-view="dashboard"] .dashboard-control-bar {
  display: flex !important;
  min-width: 0;
  min-height: 80px !important;
  margin: 0 0 14px !important;
  padding: 12px 14px !important;
  gap: 14px;
  align-items: flex-end !important;
  justify-content: space-between;
  border: 1px solid var(--oso-shell-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: var(--oso-shadow) !important;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls {
  display: flex !important;
  min-width: 0;
  gap: 14px !important;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls label { display: grid; width: min(250px, 20vw); min-width: 180px; gap: 5px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls label > span { color: #53615a; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls select {
  width: 100%;
  height: 40px !important;
  min-height: 40px !important;
  padding-inline: 12px 34px !important;
  border: 1px solid #dce4df !important;
  border-radius: 6px !important;
  color: #25332b;
  background-color: #fff;
  font-size: 11px !important;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip {
  display: flex !important;
  min-width: 0;
  gap: 10px !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip .button {
  min-height: 40px !important;
  padding: 0 15px !important;
  border: 1px solid #dde5e0 !important;
  border-radius: 6px !important;
  color: var(--oso-green-dark) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip .button:hover { border-color: #b8d3c1 !important; background: #f7fbf8 !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip svg { width: 16px; }

body.is-authenticated[data-active-view="dashboard"] #dashboardTimeClock {
  position: relative;
  display: grid !important;
  min-width: 0;
  min-height: 96px !important;
  margin: 0 0 14px !important;
  padding: 18px !important;
  grid-template-columns: minmax(270px, 0.72fr) minmax(320px, 1.8fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dbe6df !important;
  border-radius: 8px !important;
  background: linear-gradient(110deg, #fff 0%, #fbfdfc 62%, #f4faf6 100%) !important;
  box-shadow: var(--oso-shadow) !important;
}

body.is-authenticated[data-active-view="dashboard"] #dashboardTimeClock::after { display: none !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-face,
body.is-authenticated[data-active-view="dashboard"] .time-clock-copy { display: flex !important; min-width: 0; gap: 14px; align-items: center; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-face { padding-right: 22px; border-right: 1px solid #dce4df; }
body.is-authenticated[data-active-view="dashboard"] .time-clock-icon {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  place-items: center;
  border: 3px solid #53b871 !important;
  border-radius: 50% !important;
  color: var(--oso-green-dark) !important;
  background: #fff !important;
}
body.is-authenticated[data-active-view="dashboard"] .time-clock-icon svg { width: 22px; height: 22px; }
body.is-authenticated[data-active-view="dashboard"] #dashboardTimeClock .kicker { margin: 0 0 4px !important; color: #52615a !important; font-size: 9px !important; font-weight: 800 !important; letter-spacing: 0.04em; text-transform: uppercase; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-face h3 { display: flex; margin: 0 !important; gap: 10px; align-items: center; color: var(--oso-text); font-size: 23px !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-badge { padding: 4px 8px; border-radius: 4px; color: var(--oso-green-dark); background: var(--oso-green-soft); font-size: 9px; font-weight: 700; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-badge.is-idle { color: #64716a; background: #eef1ef; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-current-work { display: grid; min-width: 0; gap: 3px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-current-work strong { overflow: hidden; color: var(--oso-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-current-work > span,
body.is-authenticated[data-active-view="dashboard"] .dashboard-current-work small { overflow: hidden; color: var(--oso-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-current-work progress { width: min(100%, 480px); height: 4px; margin-top: 5px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-actions { display: flex !important; min-width: max-content; gap: 10px; justify-content: flex-end; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-actions .button { min-height: 40px !important; padding-inline: 16px !important; border-radius: 6px !important; font-size: 11px !important; }

body.is-authenticated[data-active-view="dashboard"] .dashboard-workspace-grid {
  display: grid !important;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 350px !important;
  gap: 14px !important;
  align-items: start;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-primary-column,
body.is-authenticated[data-active-view="dashboard"] .dashboard-side-column { display: grid !important; min-width: 0; gap: 14px !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-grid {
  display: grid !important;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-card {
  position: relative;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 15px 16px !important;
  overflow: hidden;
  border: 1px solid var(--oso-shell-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: var(--oso-shadow) !important;
}

body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-grid .dashboard-card { min-height: 150px !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-head { display: flex !important; gap: 9px; align-items: center; }
body.is-authenticated[data-active-view="dashboard"] .employee-icon-box {
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  place-items: center;
  border-radius: 50% !important;
  color: var(--oso-green) !important;
  background: var(--oso-green-soft) !important;
}
body.is-authenticated[data-active-view="dashboard"] .dashboard-card.is-alerts .employee-icon-box { color: #e14754 !important; background: #fff0f2 !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-label { color: #46544c; font-size: 10px !important; font-weight: 750 !important; letter-spacing: 0.025em; text-transform: uppercase; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-main { margin: 14px 0 6px !important; color: var(--oso-text) !important; font-size: 18px !important; font-weight: 750 !important; line-height: 1.2; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-copy,
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-meta { margin: 3px 0 0 !important; overflow: hidden; color: var(--oso-muted) !important; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split { display: grid !important; margin-top: 12px; grid-template-columns: minmax(70px, 0.8fr) minmax(92px, 1fr); gap: 10px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split > div { display: grid; align-content: center; border-right: 1px solid var(--oso-shell-border); }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split > div strong { color: var(--oso-text); font-size: 25px; line-height: 1; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split > div span { margin-top: 6px; color: var(--oso-muted); font-size: 9px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split dl { display: grid; margin: 0; gap: 5px; align-content: center; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split dl div { display: grid; grid-template-columns: 18px 1fr; gap: 4px; color: #4e5d55; font-size: 9px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split dt { font-weight: 800; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split dd { margin: 0; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-split .is-danger { color: #dd3545; }
body.is-authenticated[data-active-view="dashboard"] .employee-card-link {
  position: absolute !important;
  right: 16px !important;
  bottom: 13px !important;
  left: 16px !important;
  display: flex !important;
  min-height: 20px;
  padding: 0 !important;
  align-items: center;
  justify-content: space-between;
  border: 0 !important;
  color: var(--oso-green-dark) !important;
  background: transparent !important;
  font-size: 9px !important;
  font-weight: 750 !important;
}

body.is-authenticated[data-active-view="dashboard"] .employee-tasks-card,
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-card { padding: 0 !important; }
body.is-authenticated[data-active-view="dashboard"] .employee-tasks-card { min-height: 370px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-section-title {
  display: flex !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--oso-shell-border);
}
body.is-authenticated[data-active-view="dashboard"] .dashboard-section-title > div { display: flex; gap: 8px; align-items: center; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-section-title h3 { margin: 0 !important; color: var(--oso-text); font-size: 13px !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-section-title .employee-card-link { position: static !important; width: auto !important; min-width: auto; gap: 7px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-count-badge { padding: 3px 7px; border-radius: 4px; color: #5d6962; background: #edf1ef; font-size: 8px; font-weight: 700; }

body.is-authenticated[data-active-view="dashboard"] .dashboard-task-list { width: 100%; min-width: 760px; overflow: hidden; }
body.is-authenticated[data-active-view="dashboard"] #dashboardWorkTable { min-width: 0; overflow-x: auto; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-head,
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-row {
  display: grid !important;
  width: 100%;
  min-width: 760px;
  grid-template-columns: 82px minmax(170px, 1.5fr) minmax(120px, 0.9fr) minmax(132px, 0.95fr) 88px minmax(125px, 0.9fr) 18px !important;
  gap: 8px !important;
  align-items: center;
}
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-head { min-height: 36px !important; padding: 0 16px !important; color: #76827b !important; background: #fbfcfb; font-size: 8px !important; font-weight: 750; letter-spacing: 0.035em; text-transform: uppercase; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-row { min-height: 58px !important; padding: 7px 16px !important; border: 0 !important; border-top: 1px solid #edf1ee !important; border-radius: 0 !important; color: #37443d !important; background: #fff !important; box-shadow: none !important; text-align: left; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-row:hover { background: #f8fbf9 !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-main,
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-site { display: grid; min-width: 0; gap: 3px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-main strong,
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-site strong { overflow: hidden; color: #223028; font-size: 10px !important; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-main small,
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-site small { color: var(--oso-muted); font-size: 8px !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-due { display: flex; gap: 5px; align-items: center; color: #48564e; font-size: 9px !important; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-due.is-overdue { color: #e33c4b !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-due svg { width: 13px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-assignee { display: flex; min-width: 0; gap: 7px; align-items: center; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-assignee > span { display: grid; width: 26px; height: 26px; min-width: 26px; place-items: center; border: 1px solid #dce4df; border-radius: 50%; font-size: 8px; font-weight: 800; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-task-assignee strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-table-footer { display: flex; min-height: 42px; padding: 0 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--oso-shell-border); color: var(--oso-muted); font-size: 9px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-table-footer button { border: 0; color: var(--oso-green-dark); background: transparent; font-size: 9px; font-weight: 700; }

body.is-authenticated[data-active-view="dashboard"] .dashboard-side-column .dashboard-card { min-height: 0 !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-list { display: grid; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-row { display: grid !important; min-height: 58px; padding: 9px 13px !important; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; border: 0 !important; border-bottom: 1px solid #edf1ee !important; border-radius: 0 !important; color: #344139 !important; background: #fff !important; text-align: left; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-row:hover { background: #f8fbf9 !important; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 5px; color: #e54150; background: #fff0f2; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-icon svg { width: 14px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-copy { display: grid; min-width: 0; gap: 2px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-copy > span { display: flex; min-width: 0; gap: 8px; align-items: baseline; justify-content: space-between; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-copy strong { overflow: hidden; color: var(--oso-text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-copy time { color: #738078; font-size: 8px; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-copy small { color: #46534c; font-size: 8px; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-copy p { margin: 0; overflow: hidden; color: var(--oso-muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-rail-footer { display: flex; width: 100%; min-height: 42px; padding: 0 16px; align-items: center; justify-content: center; gap: 9px; border: 0; color: var(--oso-green-dark); background: #fff; font-size: 9px; font-weight: 750; }
body.is-authenticated[data-active-view="dashboard"] .dashboard-supplemental-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-footer { display: none !important; }

/* --------------------------------------------------------------------------
   Responsive behavior
   -------------------------------------------------------------------------- */

@media (max-width: 1440px) {
  html[data-sidebar-state="expanded"] body.is-authenticated[data-active-view="dashboard"] .dashboard-workspace-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-sidebar-state="expanded"] body.is-authenticated[data-active-view="dashboard"] .dashboard-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-control-bar { align-items: stretch !important; flex-direction: column; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip { justify-content: flex-start; }
}

@media (max-width: 1180px) {
  html[data-sidebar-state] body.is-authenticated.target-operations-view #openMyActivity,
  html[data-sidebar-state] body.is-authenticated.target-operations-view #refreshButton { display: none !important; }
  html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .search-box { width: min(420px, 48vw) !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-workspace-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-authenticated[data-active-view="dashboard"] #dashboardTimeClock { grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.4fr); }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 940px) {
  body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-grid .dashboard-card { min-height: 146px !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls label { width: min(250px, 42vw); }
}

@media (max-width: 840px) {
  html[data-sidebar-state] body.is-authenticated.target-operations-view .app-frame,
  html[data-sidebar-state="expanded"] body.is-authenticated.target-operations-view .app-frame {
    display: block !important;
    height: 100dvh !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view .sidebar {
    position: fixed !important;
    z-index: 200 !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(286px, 86vw) !important;
    transform: translateX(-102%);
    transition: transform 190ms ease;
    box-shadow: 18px 0 40px rgba(13, 31, 20, 0.16) !important;
  }

  body.is-authenticated.sidebar-mobile-open .sidebar { transform: translateX(0) !important; }
  .app-sidebar-brand { padding-inline: 14px; justify-content: flex-start !important; }
  .app-sidebar-brand-label,
  .app-sidebar-profile > div:not(.profile-avatar),
  .app-sidebar-profile > svg,
  .app-sidebar-toggle span { opacity: 1 !important; pointer-events: auto !important; }
  .app-sidebar-nav .sidebar-section-label { height: 20px !important; padding: 4px 10px 3px !important; opacity: 1 !important; }
  .app-sidebar-section + .app-sidebar-section { margin-top: 9px !important; }
  .app-sidebar-nav .nav-tab { width: 100% !important; padding: 0 10px !important; grid-template-columns: 24px minmax(0, 1fr) !important; justify-items: stretch !important; }
  .app-sidebar-nav .nav-tab > span { position: static !important; display: block !important; width: auto !important; height: auto !important; clip: auto !important; opacity: 1 !important; }
  .app-sidebar-profile { width: 100% !important; padding: 5px 8px !important; grid-template-columns: 32px minmax(0, 1fr) 16px !important; justify-items: stretch !important; }
  .app-sidebar-toggle { display: none !important; }
  .app-sidebar-mobile-close { display: grid; width: 34px; height: 34px; margin-left: auto; place-items: center; border: 1px solid #dfe7e2; border-radius: 7px; color: #48564e; background: #fff; }
  .app-sidebar-backdrop { position: fixed; z-index: 190; inset: 0; display: block; border: 0; background: rgba(16, 31, 22, 0.42); opacity: 0; pointer-events: none; transition: opacity 190ms ease; }
  body.sidebar-mobile-open .app-sidebar-backdrop { opacity: 1; pointer-events: auto; }

  .app-mobile-menu-button { display: grid !important; width: 38px !important; min-width: 38px !important; place-items: center; }
  html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header { padding-inline: 12px !important; }
  html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header .search-box { width: auto !important; min-width: 0; flex: 1; }
  body.is-authenticated[data-active-view="dashboard"] #dashboardView { padding: 18px 14px 84px !important; }
  body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top { min-height: 64px !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-local-clock { min-width: auto; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-local-clock span { display: none; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-local-clock strong { font-size: 18px; }
  body.is-authenticated[data-active-view="dashboard"] #dashboardTimeClock { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-face { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--oso-shell-border); }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-actions { grid-column: auto; justify-content: stretch; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-clock-actions .button { flex: 1; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-side-column { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  html[data-sidebar-state] body.is-authenticated.target-operations-view .page-header > div:first-child { display: none !important; }
  html[data-sidebar-state] body.is-authenticated.target-operations-view #openMyActivity,
  html[data-sidebar-state] body.is-authenticated.target-operations-view #refreshButton,
  html[data-sidebar-state] body.is-authenticated.target-operations-view .command-search-shortcut { display: none !important; }
  body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top { align-items: flex-start !important; }
  body.is-authenticated[data-active-view="dashboard"] .employee-dashboard-top h2 { font-size: 24px !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-view-options { width: 38px !important; height: 38px !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-control-bar { padding: 12px !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls { display: grid !important; width: 100%; grid-template-columns: minmax(0, 1fr); }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-filter-controls label { width: 100%; min-width: 0; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-quick-strip .button { width: 100%; padding-inline: 10px !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-grid,
  body.is-authenticated[data-active-view="dashboard"] .dashboard-supplemental-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.is-authenticated[data-active-view="dashboard"] .dashboard-summary-grid .dashboard-card { min-height: 148px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-sidebar-state] body.is-authenticated.target-operations-view .app-frame,
  html[data-sidebar-state] body.is-authenticated.target-operations-view .sidebar,
  .app-sidebar-backdrop { transition: none !important; }
}

/* The authenticated shell normally owns the viewport and scrolls inside
   .main. Printing must release that viewport so Chromium-based print previews
   can paginate the complete schedule instead of capturing a clipped scroller. */
@media print {
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .app-frame {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: none !important;
    overflow: visible !important;
    background: #fff !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .sidebar,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .page-header,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .app-sidebar-backdrop,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .schedule-v2-header,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #scheduleModeRow,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #scheduleWeekRow,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #scheduleMyPanel,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #scheduleAnalyticsPanel,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #activePresetBanner,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .schedule-side {
    display: none !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .main {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    scrollbar-gutter: auto !important;
    overscroll-behavior: auto !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .workspace {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #scheduleView {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing #locationScheduleSummary {
    display: none !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .schedule-v2-team-card {
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .schedule-grid {
    position: static !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .schedule-grid-header,
  html[data-sidebar-state] body.is-authenticated.target-operations-view.schedule-printing .schedule-grid > :nth-child(9n + 1) {
    position: static !important;
  }
}
