/* Smart workspace 2.2.18. Loaded after the existing ERP and profile themes. */
.erp-ui {
  --bg: #f2f5f9;
  --ink: #21384d;
  --muted: #657b90;
  --line: #dce5ee;
  --brand: #087d72;
  --brand-dark: #05685f;
  --shadow: 0 2px 4px #19324904, 0 8px 26px #19324906;
  --smart-navy: #142d44;
  --smart-gold: #d4ad55;
  --smart-radius: 14px;
  -webkit-font-smoothing: antialiased;
}
.erp-ui .erp-main,
.erp-ui .workspace,
.erp-ui .smart-dashboard,
.erp-ui .smart-dashboard > *,
.erp-ui .smart-attendance-tools { min-width: 0; }
.erp-ui .erp-sidebar {
  background: linear-gradient(180deg, #132b42 0%, #162e43 100%);
  border-right-color: #203b50;
}
.erp-ui .erp-brand { gap: 13px; padding-bottom: 25px; }
.erp-ui .erp-brand .brand-logo-badge { border: 1px solid #d8e3e6; box-shadow: 0 4px 12px #06162828; }
.erp-ui .brand-copy strong { font-weight: 650; }
.erp-ui .brand-copy small { color: #a8bdcf; }
.erp-ui .erp-nav .nav-link,
.erp-ui .erp-nav summary { border-radius: 8px; }
.erp-ui .erp-nav .nav-link.active {
  background: #08786f;
  box-shadow: inset 3px 0 0 #d4ad55;
}
.erp-ui .erp-nav .nav-link:hover,
.erp-ui .erp-nav summary:hover { background: #254156; }
.erp-ui .erp-nav .nav-link.active:hover { background: #0a8579; }
.erp-ui .erp-topbar.app-header { border-bottom-color: #e2e9ef; box-shadow: 0 2px 5px #132d4203; }
.erp-ui .page-context strong { color: #1e384e; }
.erp-ui .quick-toolbar { gap: 8px; }
.erp-ui .quick-toolbar a { border-radius: 8px; }
.erp-ui .workspace { padding-top: 28px; }
.erp-ui .card:not(.profile-card),
.erp-ui section.card:not(.profile-card) { border-radius: var(--smart-radius); box-shadow: var(--shadow); }
.erp-ui .card h2 { color: #243e54; }
.erp-ui .btn,
.erp-ui button:not(.nav-toggle):not(.sidebar-close):not(.nav-backdrop) { border-radius: 8px; }
.erp-ui .btn:not(.secondary):not(.danger),
.erp-ui button[type=submit]:not(.secondary):not(.danger) { box-shadow: 0 2px 4px #087d7214; }
.erp-ui input:not([type=checkbox]):not([type=radio]),
.erp-ui select,
.erp-ui textarea { border-color: #cfdae5; border-radius: 8px; }
.erp-ui input::placeholder,
.erp-ui textarea::placeholder { color: #8091a2; opacity: 1; }
.erp-ui .table-wrap { border-radius: 10px; border-color: #e0e7ee; scrollbar-width: thin; }
.erp-ui th { background: #f3f6fa; color: #557087; }
.erp-ui tbody tr:hover { background: #f0f8f5; }
.erp-ui .search-field input { border: 0; border-radius: 0; }
.erp-ui .alert { border-radius: 10px; }
.erp-ui a,
.erp-ui button { -webkit-tap-highlight-color: #087d721f; }
.erp-ui a:focus-visible,
.erp-ui button:focus-visible,
.erp-ui summary:focus-visible { outline: 3px solid #168779; outline-offset: 3px; }

/* Personal shortcuts are optional and always use the existing navigation. */
.erp-ui .workspace-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
  min-width: 0;
}
.erp-ui .workspace-controls button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #dce5ed;
  background: #fff;
  color: #567086;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}
.erp-ui .workspace-controls button:hover { background: #f3f8f7; border-color: #b7d6cf; color: #086d63; }
.erp-ui .workspace-controls button[aria-pressed=true] { background: #e9f6f0; border-color: #b6dacc; color: #096e5e; }
.erp-ui .workspace-controls .ui-icon { width: 14px; height: 14px; }
.erp-ui .erp-favourites { flex: none; max-height: 180px; overflow-y: auto; scrollbar-width: thin; margin: 4px 0 13px; padding-bottom: 12px; border-bottom: 1px solid #304b60; }
.erp-ui .erp-favourites h2,
.erp-ui .erp-favourites h3 { margin: 8px 12px 6px; color: #bdcbda; font-size: 10px; font-weight: 650; letter-spacing: .9px; text-transform: uppercase; }
.erp-ui .erp-favourites ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.erp-ui .erp-favourites li { min-width: 0; }
.erp-ui .erp-favourites a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 7px; color: #d0dfeb; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.erp-ui .erp-favourites a:hover { color: #fff; background: #254156; }
.erp-ui .erp-favourites .ui-icon { color: #d4ad55; width: 16px; height: 16px; }
.erp-ui .erp-favourites .favourite-link { display: grid; gap: 3px; }
.erp-ui .erp-favourites .favourite-link strong { color: #d6e4ed; font-size: 11px; font-weight: 600; }
.erp-ui .erp-favourites .favourite-link small { color: #93adc0; font-size: 9px; line-height: 1.5; }
.erp-ui .erp-favourites .favourite-link[aria-current=page] { background: #203f50; box-shadow: inset 2px 0 0 #d4ad55; }
.erp-ui .erp-favourites .favourite-link[aria-current=page] strong { color: #fff; }

/* Dashboard hero: a stronger visual anchor with useful date navigation. */
.erp-ui .smart-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 23px;
  padding: 29px 30px;
  margin: 0 0 21px;
  overflow: hidden;
  color: #fff;
  border: 1px solid #264b60;
  border-radius: 17px;
  background: linear-gradient(112deg, #142e46 6%, #1a4052 75%, #22554f 100%);
  box-shadow: 0 7px 23px #142e4610;
}
.erp-ui .smart-hero::before,
.erp-ui .smart-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; border: 1px solid #d4ad551f; }
.erp-ui .smart-hero::before { width: 340px; height: 340px; right: -80px; top: -225px; }
.erp-ui .smart-hero::after { width: 340px; height: 340px; right: -132px; top: -180px; }
.erp-ui .smart-hero > div { min-width: 0; }
.erp-ui .smart-hero > div:first-child { flex: 1 1 410px; }
.erp-ui .smart-hero h1 { color: #fff; font-size: clamp(25px, 2.5vw, 32px); line-height: 1.25; letter-spacing: -.8px; margin: 0 0 9px; }
.erp-ui .smart-hero p { max-width: 650px; margin: 0; color: #bcd2db; font-size: 12px; line-height: 1.7; }
.erp-ui .smart-hero .dashboard-eyebrow { color: #e5c37c; font-size: 9px; letter-spacing: 1.65px; margin-bottom: 9px !important; }
.erp-ui .smart-hero .actions { gap: 8px; margin: 0; }
.erp-ui .smart-hero > div > .actions { margin-top: 18px; }
.erp-ui .smart-hero .btn { min-height: 38px; border-color: #5c9a8e; background: #148e7e; color: #fff; }
.erp-ui .smart-hero .btn:hover { background: #0e9c89; border-color: #77b7a9; }
.erp-ui .smart-hero .btn.secondary { border-color: #6a8e9d; background: #ffffff0a; color: #e2edf0; }
.erp-ui .smart-hero .btn.secondary:hover { background: #ffffff15; border-color: #92afbb; }
.erp-ui .smart-hero form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; max-width: 100%; margin: 0; }
.erp-ui .smart-hero form label { min-width: 0; color: #d0e0e6; font-size: 10px; font-weight: 600; gap: 4px; }
.erp-ui .smart-hero form input { min-width: 0; max-width: 100%; background: #fff; color: #28495d; border-color: #e1e9eb; }
.erp-ui .smart-hero form button { background: #148e7e; border: 1px solid #5c9a8e; color: #fff; min-height: 39px; }
.erp-ui .smart-hero form.smart-date-form { display: grid; grid-template-columns: minmax(0, 1fr); flex: 0 1 246px; width: 246px; gap: 7px; padding: 14px; border: 1px solid #7caaad42; border-radius: 11px; background: #ffffff07; }
.erp-ui .smart-date-form input { width: 100%; }
.erp-ui .smart-date-form .actions button { flex: 1; }
.erp-ui .smart-date-form .actions a { padding: 5px; color: #eed9a4; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.erp-ui .smart-date-form > small { color: #adc9d2; font-size: 9px; text-align: center; }
.erp-ui .smart-hero .dashboard-date { color: #c8dce2; font-size: 10px; }

.erp-ui .smart-status {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 11px 14px;
  padding: 14px 17px;
  margin-bottom: 22px;
  border: 1px solid #d4e5df;
  border-radius: 11px;
  background: #edf6f2;
  color: #326d5d;
  font-size: 11px;
  line-height: 1.65;
}
.erp-ui .smart-status > .ui-icon { width: 19px; height: 19px; margin-top: 2px; color: #24866a; }
.erp-ui .smart-status > div:not(.smart-status-meta) { flex: 1 1 330px; min-width: 0; }
.erp-ui .smart-status p { margin: 0; font-size: 11px; }
.erp-ui .smart-status strong { color: #235c4c; font-size: 11px; font-weight: 700; }
.erp-ui .smart-status a { color: #126e5d; text-decoration: underline; text-underline-offset: 2px; }
.erp-ui .smart-status-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-left: auto; color: #577c70; font-size: 10px; }
.erp-ui .smart-status-meta small { display: block; font-size: 10px; }
.erp-ui .smart-status > div .smart-status-meta { margin-top: 5px; margin-left: 0; font-size: 10px; }
.erp-ui .smart-status > .btn { align-self: center; min-height: 34px; padding: 7px 10px; border-color: #c9ddd5; background: #fff; color: #35695b; font-size: 10px; text-decoration: none; }
.erp-ui .smart-status.pending,
.erp-ui .smart-status.warning { border-color: #e9dbb9; background: #fff9ed; color: #846326; }
.erp-ui .smart-status.pending strong,
.erp-ui .smart-status.warning strong,
.erp-ui .smart-status.pending > .ui-icon,
.erp-ui .smart-status.warning > .ui-icon { color: #8a6624; }
.erp-ui .smart-status.pending a,
.erp-ui .smart-status.warning a { color: #795b23; }
.erp-ui .smart-status.pending .smart-status-meta,
.erp-ui .smart-status.warning .smart-status-meta { color: #887454; }
.erp-ui .smart-status.attention,
.erp-ui .smart-status.unconfigured { border-color: #e9dbb9; background: #fff9ed; color: #846326; }
.erp-ui .smart-status.attention strong,
.erp-ui .smart-status.unconfigured strong,
.erp-ui .smart-status.attention > .ui-icon,
.erp-ui .smart-status.unconfigured > .ui-icon { color: #8a6624; }
.erp-ui .smart-status.attention .smart-status-meta,
.erp-ui .smart-status.unconfigured .smart-status-meta { color: #887454; }
.erp-ui .smart-status.attention > .btn,
.erp-ui .smart-status.unconfigured > .btn { border-color: #e4d5b7; color: #82642c; }
.erp-ui .smart-status.stored { background: #f0f5f8; border-color: #dbe5eb; color: #617b8e; }
.erp-ui .smart-status.stored strong,
.erp-ui .smart-status.stored > .ui-icon { color: #527589; }

.erp-ui .smart-dashboard .dashboard-kpis { gap: 16px; margin-bottom: 23px; }
.erp-ui .smart-dashboard .stat-card {
  --stat-accent: #337bad;
  position: relative;
  display: block;
  min-width: 0;
  padding: 22px 20px 19px;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.erp-ui .smart-dashboard .stat-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--stat-accent); }
.erp-ui .smart-dashboard .stat-card.present { --stat-accent: #14836f; }
.erp-ui .smart-dashboard .stat-card.late { --stat-accent: #ba852b; }
.erp-ui .smart-dashboard .stat-card.absent { --stat-accent: #bb6076; }
.erp-ui .smart-dashboard a.stat-card:hover { border-color: #a5c9c1; box-shadow: 0 8px 24px #1932490d; }
.erp-ui .smart-dashboard .stat-label { color: #536c82; font-size: 11px; }
.erp-ui .smart-dashboard .stat-icon { width: 35px; height: 35px; border-radius: 10px; }
.erp-ui .smart-dashboard .stat-value { color: #213e54; font-size: 36px; font-variant-numeric: tabular-nums; margin: 11px 0 8px; }
.erp-ui .smart-dashboard .stat-note { color: #73869a; font-size: 10px; }
.erp-ui .smart-dashboard .stat-note .ui-icon { width: 12px; height: 12px; margin-left: 3px; color: #769aaa; }
.erp-ui .smart-dashboard .dashboard-main { gap: 21px; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.erp-ui .smart-dashboard .dashboard-main > .card { min-width: 0; }
.erp-ui .smart-dashboard .panel-heading { gap: 14px; }
.erp-ui .smart-dashboard .panel-heading h2 { font-size: 16px; letter-spacing: -.2px; }
.erp-ui .smart-dashboard .panel-heading p { font-size: 11px; }
.erp-ui .smart-dashboard .panel-label { border-radius: 6px; font-size: 9px; background: #eef6f3; color: #487567; }
.erp-ui .smart-dashboard .chart-caption { margin-top: 19px; color: #74889b; }
.erp-ui .smart-dashboard .punch-track { background: repeating-linear-gradient(to top, transparent 0, transparent 37px, #eaf0f5 38px, transparent 39px); }
.erp-ui .smart-dashboard .punch-fill { background: linear-gradient(180deg, #41b6a4 0%, #188f7c 100%); border-radius: 5px 5px 0 0; box-shadow: inset 0 1px 0 #ffffff40; }
.erp-ui .smart-dashboard .punch-bars .is-today .punch-fill { background: linear-gradient(180deg, #6198c6, #3476ac); }
.erp-ui .smart-dashboard .punch-value { color: #42617a; font-variant-numeric: tabular-nums; }
.erp-ui .smart-dashboard .chart-source { padding-top: 5px; line-height: 1.65; }

.erp-ui .smart-ring-layout { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 23px; margin: 24px 0 12px; min-width: 0; }
.erp-ui .smart-attendance-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 150px;
  height: 150px;
  padding: 22px;
  border-radius: 50%;
  background: conic-gradient(#188c79 calc(var(--ring-value, 0) * 1%), #eaf0f4 0);
  color: #28485d;
}
.erp-ui .smart-attendance-ring::before { content: ""; position: absolute; inset: 11px; background: #fff; border-radius: 50%; border: 1px solid #edf2f5; }
.erp-ui .smart-attendance-ring > * { position: relative; z-index: 1; }
.erp-ui .smart-attendance-ring > div { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.erp-ui .smart-attendance-ring strong { font-size: 29px; font-weight: 700; line-height: 1.25; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.erp-ui .smart-attendance-ring small { max-width: 105px; margin-top: 6px; color: #718699; font-size: 9px; line-height: 1.5; text-align: center; }
.erp-ui .smart-status-breakdown { flex: 1 1 140px; min-width: 0; }
.erp-ui .smart-status-breakdown .summary-row { gap: 10px; padding: 9px 0; }
.erp-ui .smart-status-breakdown .summary-label { color: #5b758a; font-size: 11px; }
.erp-ui .smart-status-breakdown .summary-value { color: #304e64; font-size: 16px; font-variant-numeric: tabular-nums; }
.erp-ui .smart-status-breakdown .summary-dot.neutral { background: #8ea4b4; }
.erp-ui .smart-dashboard .dashboard-storage { padding: 13px 14px; border-color: #e6edf2; border-radius: 10px; background: #f6f9fb; }
.erp-ui .smart-dashboard .storage-value { font-size: 25px; font-variant-numeric: tabular-nums; }

.erp-ui .smart-focus-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 15px 0 0; }
.erp-ui .smart-focus-list li { min-width: 0; border-bottom: 1px solid #eaf0f4; }
.erp-ui .smart-focus-list li:last-child { border: 0; }
.erp-ui .smart-focus-list li > a { display: flex; align-items: center; gap: 11px; padding: 13px 3px; min-width: 0; border-radius: 7px; text-decoration: none; color: #435f75; }
.erp-ui .smart-focus-list li > a:hover { background: #f4f9f7; color: #0c7368; }
.erp-ui .smart-focus-list .ui-icon { width: 17px; height: 17px; color: #7592a7; }
.erp-ui .smart-focus-list li > a > span:not(:last-child) { min-width: 0; flex: 1; font-size: 12px; line-height: 1.5; }
.erp-ui .smart-focus-list li > a > span:last-child,
.erp-ui .smart-focus-list li > a > strong:last-child { display: inline-flex; justify-content: center; align-items: center; flex: none; min-width: 30px; min-height: 26px; margin-left: auto; padding: 3px 8px; color: #49697c; background: #edf3f7; border: 1px solid #e1e9ef; border-radius: 7px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.erp-ui .smart-focus-list li > a > span strong { display: block; font-size: 11px; font-weight: 650; }
.erp-ui .smart-focus-list li > a > span small { display: block; margin-top: 3px; color: #7b91a2; font-size: 9px; line-height: 1.5; }
.erp-ui .smart-focus-list li > a > b { display: inline-flex; justify-content: center; align-items: center; flex: none; min-width: 30px; min-height: 26px; margin-left: auto; padding: 3px 8px; color: #49697c; background: #edf3f7; border: 1px solid #e1e9ef; border-radius: 7px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.erp-ui .smart-focus-list li > a > .ui-icon:last-child { width: 12px; height: 12px; color: #89a1b2; }
.erp-ui .smart-focus-empty { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 16px; border-radius: 10px; border: 1px dashed #c9dfd5; background: #f5faf7; color: #4b7c67; font-size: 11px; line-height: 1.6; }
.erp-ui .smart-focus-empty .ui-icon { width: 21px; height: 21px; color: #258568; }
.erp-ui .smart-focus-empty p { margin: 0; }
.erp-ui div.smart-focus-empty { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 5px 9px; }
.erp-ui div.smart-focus-empty p { grid-column: 2; font-size: 10px; }
.erp-ui div.smart-focus-empty strong { font-size: 11px; font-weight: 650; }
.erp-ui .smart-device-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 17px 0 0; list-style: none; }
.erp-ui .smart-device-strip li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 13px 14px; background: #f8fafc; border: 1px solid #e2eaf0; border-radius: 10px; }
.erp-ui .smart-device-strip li strong { width: 100%; color: #3d5a71; font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.erp-ui .smart-device-strip li small { color: #73899c; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.erp-ui .smart-device-strip .badge { margin-top: auto; font-size: 9px; }
.erp-ui .smart-device-strip li > span { display: flex; align-items: flex-start; gap: 7px; min-width: 0; width: 100%; }
.erp-ui .smart-device-strip li > span .ui-icon { width: 15px; height: 15px; margin-top: 2px; color: #7895a8; }
.erp-ui .smart-device-strip li > time { margin-top: auto; color: #7990a1; font-size: 9px; }
.erp-ui .smart-device-strip li > small { display: flex; align-items: flex-start; gap: 5px; }
.erp-ui .smart-device-strip li > small::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #8da4b4; flex: none; margin-top: 5px; }
.erp-ui .smart-device-strip li.recent > small { color: #4f8770; }
.erp-ui .smart-device-strip li.recent > small::before { background: #248c6b; }
.erp-ui .smart-device-strip li.stale > small { color: #9b7c41; }
.erp-ui .smart-device-strip li.stale > small::before { background: #bf922f; }
.erp-ui .smart-device-strip li.error > small { color: #ad6475; }
.erp-ui .smart-device-strip li.error > small::before { background: #bd6076; }
.erp-ui .smart-dashboard .workspace-links { gap: 14px; margin-bottom: 23px; }
.erp-ui .smart-dashboard .workspace-link { min-width: 0; padding: 18px; border-radius: 12px; box-shadow: var(--shadow); }
.erp-ui .smart-dashboard .workspace-link > span:not(.workspace-icon) { min-width: 0; }
.erp-ui .smart-dashboard .workspace-link strong { color: #3b5870; }
.erp-ui .smart-dashboard .workspace-link small { line-height: 1.5; }
.erp-ui .smart-dashboard .workspace-icon { width: 39px; height: 39px; border-radius: 10px; }
.erp-ui .smart-dashboard .activity-table a { font-weight: 650; color: #28708f; }
.erp-ui .smart-dashboard .activity-table a:hover { text-decoration: underline; }
.erp-ui .smart-dashboard .activity-table td:first-child { color: #647e93; font-size: 11px; }

.erp-ui .smart-branch-tools { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin: 19px 0 0; }
.erp-ui .smart-branch-tools label { flex: 1 1 220px; max-width: 360px; min-width: 0; font-size: 10px; }
.erp-ui .smart-branch-tools input { width: 100%; min-width: 0; }
.erp-ui .smart-branch-tools > label { display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #d6e3e9; border-radius: 8px; background: #f8fbfc; }
.erp-ui .smart-branch-tools > label > .ui-icon { width: 16px; height: 16px; color: #7b99a9; }
.erp-ui .smart-branch-tools > label > input { border: 0; background: transparent; padding-left: 0; padding-right: 0; outline-offset: 3px; }
.erp-ui .smart-branch-tools > label:focus-within { border-color: #97cabb; box-shadow: 0 0 0 3px #087d7210; }
.erp-ui .smart-branch-tools > span,
.erp-ui .smart-branch-tools > p,
.erp-ui .smart-branch-tools > small { margin: 0; padding-bottom: 9px; color: #768a9e; font-size: 10px; }
.erp-ui .smart-dashboard .institution-grid { gap: 14px; margin-top: 16px; }
.erp-ui .smart-dashboard .institution-card { border-color: #dce6ed; border-radius: 12px; box-shadow: 0 2px 4px #19324903, 0 7px 21px #19324904; }
.erp-ui .smart-dashboard .institution-link { min-height: 295px; padding: 19px 16px 15px; border-radius: 11px; }
.erp-ui .smart-dashboard .institution-link:hover { background: #f9fcfb; box-shadow: inset 0 0 0 2px #b6dcd3; }
.erp-ui .smart-dashboard .institution-logo { --logo-height: 96px; margin-bottom: 14px; }
.erp-ui .smart-dashboard .institution-logo img { max-width: 140px; }
.erp-ui .smart-dashboard .institution-card h3 { color: #2d495f; font-size: 12px; line-height: 1.6; }
.erp-ui .smart-dashboard .institution-card p { color: #7b8da0; font-size: 9px; padding-top: 3px; }
.erp-ui .smart-branch-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; padding-top: 13px; margin-top: auto; }
.erp-ui .smart-branch-counts > * { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px 3px; background: #f4f7fa; border-radius: 6px; text-align: center; }
.erp-ui .smart-branch-counts > *:nth-child(2) { background: #eef7f2; }
.erp-ui .smart-branch-counts > *:nth-child(3) { background: #fcf1f4; }
.erp-ui .smart-branch-counts strong { color: #49657c; font-size: 16px; line-height: 1.2; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.erp-ui .smart-branch-counts > *:nth-child(2) strong { color: #287960; }
.erp-ui .smart-branch-counts > *:nth-child(3) strong { color: #a45870; }
.erp-ui .smart-branch-counts small { color: #74889b; font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.erp-ui .smart-dashboard .institution-open { width: 100%; justify-content: center; margin-top: 11px; padding-top: 11px; border-top: 1px solid #e8eff2; font-size: 10px; color: #13796c; }

/* Attendance sheet tools: search and status views remain separate from edits. */
.erp-ui .smart-attendance-tools { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 17px 0 8px; }
.erp-ui .form-grid.smart-attendance-tools { display: grid; grid-template-columns: minmax(150px, .8fr) repeat(2, minmax(0, 1fr)); align-items: end; gap: 17px; margin: 0; padding-bottom: 0; }
.erp-ui .form-grid.smart-attendance-tools > label { min-width: 0; }
.erp-ui .form-grid.smart-attendance-tools input,
.erp-ui .form-grid.smart-attendance-tools select { width: 100%; min-width: 0; max-width: 100%; }
.erp-ui .form-grid.smart-attendance-tools .smart-sheet-search { grid-column: span 2; max-width: none; }
.erp-ui .form-grid.smart-attendance-tools .actions { align-items: center; justify-content: flex-start; }
.erp-ui .smart-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.erp-ui .smart-filter-chips a,
.erp-ui .smart-filter-chips button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid #dbe5ec; border-radius: 8px; background: #fff; color: #56758a; font-size: 10px; line-height: 1.5; font-weight: 600; text-decoration: none; box-shadow: none; }
.erp-ui .smart-filter-chips a:hover,
.erp-ui .smart-filter-chips button:hover { color: #08776a; border-color: #b3d6cb; background: #f3faf6; }
.erp-ui .smart-filter-chips .active,
.erp-ui .smart-filter-chips .is-active,
.erp-ui .smart-filter-chips [aria-current=page],
.erp-ui .smart-filter-chips [aria-current=true],
.erp-ui .smart-filter-chips [aria-pressed=true] { color: #076f61; border-color: #a7cfc1; background: #eaf6ef; }
.erp-ui .smart-filter-chips strong,
.erp-ui .smart-filter-chips .count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 1px 5px; border-radius: 4px; color: #607a8d; background: #eef3f6; font-size: 9px; font-weight: 650; font-variant-numeric: tabular-nums; }
.erp-ui .smart-filter-chips [aria-current] strong,
.erp-ui .smart-filter-chips [aria-pressed=true] strong,
.erp-ui .smart-filter-chips .active strong { background: #d3eadd; color: #28735e; }
.erp-ui .smart-sheet-search { display: grid; gap: 4px; min-width: 0; flex: 1 1 200px; max-width: 320px; color: #647e92; font-size: 10px; }
.erp-ui .smart-sheet-search input { width: 100%; min-width: 0; }
.erp-ui .smart-sheet-count { margin: 11px 0 0; color: #70889b; font-size: 10px; line-height: 1.6; }
.erp-ui details.card.smart-manual-punch { margin: 0 0 22px; padding: 0 20px; background: #fff; border: 1px solid #dce5ee; border-radius: 12px; box-shadow: var(--shadow); }
.erp-ui .smart-manual-punch > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 16px 0; color: #3e6075; font-size: 12px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.erp-ui .smart-manual-punch > summary .ui-icon { width: 17px; height: 17px; color: #548779; }
.erp-ui .smart-manual-punch > summary::marker { color: #729388; }
.erp-ui .smart-manual-punch > summary small { margin-left: auto; color: #7d91a3; font-size: 10px; font-weight: 400; }
.erp-ui .smart-manual-punch > summary > .muted { margin-left: auto; color: #7d91a3; font-size: 10px; font-weight: 400; }
.erp-ui .smart-manual-punch > summary::after { content: "+"; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 3px; color: #6b8b83; font-size: 17px; line-height: 1; }
.erp-ui .smart-manual-punch[open] > summary::after { content: "−"; }
.erp-ui .smart-manual-punch > summary:hover { color: #08776a; }
.erp-ui .smart-manual-punch[open] > summary { border-bottom: 1px solid #e9eff3; margin-bottom: 15px; }
.erp-ui .smart-manual-punch .form-grid { margin: 0; padding-bottom: 20px; }
.erp-ui .smart-manual-punch > p { color: #73889a; font-size: 11px; }

/* Compact mode changes density without rebuilding profile, chart or report layouts. */
.erp-ui.erp-compact .workspace { padding-top: 21px; padding-bottom: 25px; }
.erp-ui.erp-compact .card:not(.profile-card),
.erp-ui.erp-compact section.card:not(.profile-card) { padding: 17px 19px; margin-bottom: 16px; }
.erp-ui.erp-compact .table-wrap:not(.profile-attendance-table) table:not(.form-j-table):not(.muster):not(.report-matrix) th,
.erp-ui.erp-compact .table-wrap:not(.profile-attendance-table) table:not(.form-j-table):not(.muster):not(.report-matrix) td { padding-top: 9px; padding-bottom: 9px; }
.erp-ui.erp-compact .smart-hero { padding-top: 23px; padding-bottom: 23px; margin-bottom: 17px; }
.erp-ui.erp-compact .smart-dashboard .stat-card { padding-top: 17px; padding-bottom: 15px; }
.erp-ui.erp-compact .smart-dashboard .stat-value { margin-top: 8px; margin-bottom: 5px; font-size: 31px; }
.erp-ui.erp-compact .smart-dashboard .dashboard-kpis,
.erp-ui.erp-compact .smart-dashboard .workspace-links { margin-bottom: 18px; }
.erp-ui.erp-compact .smart-dashboard .workspace-link { padding-top: 13px; padding-bottom: 13px; }
.erp-ui.erp-compact .smart-manual-punch > summary { padding-top: 12px; padding-bottom: 12px; }
.erp-ui.erp-compact details.card.smart-manual-punch { padding: 0 19px; }
.erp-ui.erp-compact .form-grid { gap: 12px; }

@media (min-width: 1600px) {
  .erp-ui .smart-hero { padding: 34px; }
  .erp-ui .smart-dashboard .stat-card { padding: 24px; }
  .erp-ui .smart-dashboard .stat-value { font-size: 40px; }
  .erp-ui .smart-dashboard .institution-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .erp-ui .smart-hero { padding: 25px; gap: 19px; }
  .erp-ui .smart-hero > .actions { flex: 1 1 100%; justify-content: flex-start; }
  .erp-ui .smart-dashboard .dashboard-kpis { gap: 12px; }
  .erp-ui .smart-dashboard .stat-card { padding: 20px 16px 17px; }
  .erp-ui .smart-dashboard .stat-card::before { left: 16px; right: 16px; }
  .erp-ui .smart-dashboard .stat-value { font-size: 32px; }
  .erp-ui .smart-dashboard .dashboard-main { grid-template-columns: minmax(0, 1.2fr) minmax(265px, 1fr); gap: 18px; }
  .erp-ui .smart-ring-layout { gap: 18px; }
  .erp-ui .smart-attendance-ring { width: 138px; height: 138px; }
  .erp-ui .smart-dashboard .workspace-link { padding: 15px; }
  .erp-ui .smart-device-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .erp-ui .workspace-controls { gap: 6px; }
}
@media (max-width: 980px) {
  .erp-ui .smart-dashboard .dashboard-main { grid-template-columns: minmax(0, 1fr); }
  .erp-ui .smart-ring-layout { justify-content: flex-start; gap: 30px; }
  .erp-ui .smart-attendance-ring { width: 155px; height: 155px; }
  .erp-ui .smart-dashboard .institution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp-ui .smart-device-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp-ui .smart-status-meta { margin-left: 0; }
}
@media (max-width: 780px) {
  .erp-ui .workspace { padding-top: 23px; }
  .erp-ui .quick-toolbar { align-items: center; }
  .erp-ui .quick-toolbar .workspace-controls { flex-wrap: nowrap; flex: none; padding-left: 8px; border-left: 1px solid #e2e9ef; }
  .erp-ui .workspace-controls { justify-content: flex-start; }
  .erp-ui .workspace-controls button { min-height: 36px; }
  .erp-ui .smart-hero { padding: 23px 21px; border-radius: 14px; gap: 18px; margin-bottom: 18px; }
  .erp-ui .smart-hero h1 { font-size: 27px; }
  .erp-ui .smart-hero p { font-size: 11px; }
  .erp-ui .smart-hero .dashboard-eyebrow { font-size: 8px; letter-spacing: 1.35px; }
  .erp-ui .smart-hero form { gap: 7px; }
  .erp-ui .smart-hero form input,
  .erp-ui .smart-hero form button { min-height: 40px; }
  .erp-ui .smart-hero form.smart-date-form { flex: 1 1 100%; width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .erp-ui .smart-date-form > label,
  .erp-ui .smart-date-form > small { grid-column: 1 / -1; }
  .erp-ui .smart-date-form > small { text-align: left; }
  .erp-ui .smart-date-form .actions { min-width: 0; width: auto; }
  .erp-ui .smart-status { padding: 13px 14px; gap: 9px; margin-bottom: 18px; }
  .erp-ui .smart-status > div:not(.smart-status-meta) { flex-basis: calc(100% - 32px); }
  .erp-ui .smart-status-meta { flex-basis: 100%; margin-left: 28px; }
  .erp-ui .smart-dashboard .dashboard-kpis { gap: 12px; margin-bottom: 19px; }
  .erp-ui .smart-dashboard .stat-card { padding: 18px 16px 16px; }
  .erp-ui .smart-dashboard .stat-value { font-size: 33px; }
  .erp-ui .smart-dashboard .workspace-links { gap: 12px; margin-bottom: 19px; }
  .erp-ui .smart-dashboard .workspace-link { padding: 15px; }
  .erp-ui .smart-dashboard .institution-link { padding: 17px 12px 13px; min-height: 287px; }
  .erp-ui .smart-dashboard .institution-grid { gap: 12px; }
  .erp-ui .smart-manual-punch { padding-left: 17px; padding-right: 17px; }
  .erp-ui .smart-sheet-search { max-width: none; }
  .erp-ui .form-grid.smart-attendance-tools { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .erp-ui .form-grid.smart-attendance-tools .smart-sheet-search { grid-column: auto; }
  .erp-ui details.card.smart-manual-punch { padding-left: 17px; padding-right: 17px; }
}
@media (max-width: 480px) {
  .erp-ui .smart-hero { padding: 22px 18px; }
  .erp-ui .smart-hero h1 { font-size: 25px; }
  .erp-ui .smart-hero .actions { width: 100%; }
  .erp-ui .smart-hero .btn { min-height: 40px; padding: 8px 11px; font-size: 11px; }
  .erp-ui .smart-hero form { width: 100%; }
  .erp-ui .smart-hero form label { flex: 1 1 150px; }
  .erp-ui .smart-hero form input { width: 100%; }
  .erp-ui .smart-hero form button { flex: 0 0 auto; }
  .erp-ui .smart-status { font-size: 10px; }
  .erp-ui .smart-status p,
  .erp-ui .smart-status strong { font-size: 10px; }
  .erp-ui .smart-status-meta { margin-left: 0; font-size: 9px; gap: 6px 12px; }
  .erp-ui .smart-status > div .smart-status-meta { font-size: 9px; }
  .erp-ui .smart-dashboard .stat-card { padding: 17px 13px 14px; }
  .erp-ui .smart-dashboard .stat-card::before { left: 13px; right: 13px; }
  .erp-ui .smart-dashboard .stat-label { font-size: 10px; }
  .erp-ui .smart-dashboard .stat-value { font-size: 31px; }
  .erp-ui .smart-dashboard .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .erp-ui .smart-dashboard .stat-note { font-size: 9px; line-height: 1.6; }
  .erp-ui .smart-dashboard .panel-heading h2 { font-size: 15px; }
  .erp-ui .smart-dashboard .panel-heading p { font-size: 10px; }
  .erp-ui .smart-dashboard .punch-track { background: #edf3f7; }
  .erp-ui .smart-dashboard .punch-fill { border-radius: 4px; }
  .erp-ui .smart-ring-layout { gap: 16px; margin-top: 22px; }
  .erp-ui .smart-attendance-ring { width: 126px; height: 126px; padding: 18px; }
  .erp-ui .smart-attendance-ring::before { inset: 10px; }
  .erp-ui .smart-attendance-ring strong { font-size: 25px; }
  .erp-ui .smart-attendance-ring small { font-size: 8px; margin-top: 4px; }
  .erp-ui .smart-status-breakdown { flex-basis: 115px; }
  .erp-ui .smart-status-breakdown .summary-row { padding: 8px 0; gap: 8px; }
  .erp-ui .smart-status-breakdown .summary-label { font-size: 10px; }
  .erp-ui .smart-status-breakdown .summary-value { font-size: 15px; }
  .erp-ui .smart-dashboard .workspace-link { padding: 15px 13px; }
  .erp-ui .smart-dashboard .workspace-icon { width: 33px; height: 33px; }
  .erp-ui .smart-dashboard .workspace-link strong { font-size: 11px; }
  .erp-ui .smart-dashboard .workspace-link small { font-size: 9px; }
  .erp-ui .smart-device-strip { gap: 9px; }
  .erp-ui .smart-device-strip li { padding: 12px 11px; }
  .erp-ui .smart-device-strip li strong { font-size: 10px; }
  .erp-ui .smart-device-strip li small { font-size: 8px; }
  .erp-ui .smart-branch-tools { gap: 7px; margin-top: 16px; }
  .erp-ui .smart-branch-tools label { max-width: none; flex-basis: 100%; }
  .erp-ui .smart-branch-tools > span,
  .erp-ui .smart-branch-tools > p,
  .erp-ui .smart-branch-tools > small { padding-bottom: 0; }
  .erp-ui .smart-dashboard .institution-link { min-height: 280px; padding: 15px 10px 12px; }
  .erp-ui .smart-dashboard .institution-logo { --logo-height: 82px; margin-bottom: 12px; }
  .erp-ui .smart-dashboard .institution-card h3 { font-size: 11px; line-height: 1.6; }
  .erp-ui .smart-dashboard .institution-card p { font-size: 8px; }
  .erp-ui .smart-branch-counts { gap: 3px; padding-top: 11px; }
  .erp-ui .smart-branch-counts strong { font-size: 15px; }
  .erp-ui .smart-branch-counts small { font-size: 7px; }
  .erp-ui .smart-dashboard .institution-open { gap: 4px; font-size: 9px; margin-top: 10px; }
  .erp-ui .smart-filter-chips { gap: 6px; }
  .erp-ui .smart-filter-chips a,
  .erp-ui .smart-filter-chips button { min-height: 36px; padding: 7px 8px; font-size: 10px; }
  .erp-ui .smart-filter-chips strong { font-size: 8px; }
  .erp-ui .smart-attendance-tools { gap: 13px; }
  .erp-ui .smart-sheet-search { width: 100%; flex-basis: 100%; }
  .erp-ui .smart-manual-punch > summary small { width: 100%; margin-left: 0; padding-left: 26px; }
  .erp-ui .smart-manual-punch > summary > .muted { width: 100%; margin-left: 0; }
  .erp-ui .smart-manual-punch > summary small,
  .erp-ui .smart-manual-punch > summary > .muted { order: 2; }
  .erp-ui .smart-manual-punch > summary::after { order: 1; margin-left: auto; }
  .erp-ui.erp-compact .card:not(.profile-card),
  .erp-ui.erp-compact section.card:not(.profile-card) { padding: 16px; }
  .erp-ui.erp-compact .smart-dashboard .stat-value { font-size: 29px; }
}
@media (max-width: 360px) {
  .erp-ui .smart-dashboard .institution-grid { grid-template-columns: minmax(0, 1fr); }
  .erp-ui .smart-dashboard .institution-link { min-height: 270px; }
  .erp-ui .smart-dashboard .institution-logo { --logo-height: 105px; }
  .erp-ui .smart-ring-layout { flex-direction: column; }
  .erp-ui .smart-status-breakdown { width: 100%; flex-basis: auto; }
  .erp-ui .smart-device-strip { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .erp-ui *, .erp-ui *::before, .erp-ui *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .erp-ui { --shadow: none; --bg: #fff; background: #fff; color: #000; -webkit-font-smoothing: auto; }
  .erp-ui .workspace-controls,
  .erp-ui .erp-favourites,
  .erp-ui .smart-hero .actions,
  .erp-ui .smart-hero form,
  .erp-ui .smart-branch-tools,
  .erp-ui .smart-attendance-tools,
  .erp-ui .smart-filter-chips,
  .erp-ui .smart-manual-punch { display: none !important; }
  .erp-ui .smart-hero { padding: 0 0 14px; background: #fff; color: #000; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .erp-ui .smart-hero::before,
  .erp-ui .smart-hero::after,
  .erp-ui .smart-dashboard .stat-card::before { display: none; }
  .erp-ui .smart-hero h1 { color: #111; font-size: 24px; }
  .erp-ui .smart-hero p,
  .erp-ui .smart-hero .dashboard-eyebrow { color: #444; }
  .erp-ui .smart-status,
  .erp-ui .smart-status.pending,
  .erp-ui .smart-status.warning,
  .erp-ui .smart-status.attention,
  .erp-ui .smart-status.unconfigured,
  .erp-ui .smart-status.stored { color: #222; background: #fff; border-color: #ccc; border-radius: 0; }
  .erp-ui .smart-status strong,
  .erp-ui .smart-status a,
  .erp-ui .smart-status-meta { color: #222; }
  .erp-ui .smart-dashboard .stat-card,
  .erp-ui .card:not(.profile-card),
  .erp-ui section.card:not(.profile-card) { border-color: #ccc; background: #fff; box-shadow: none; border-radius: 0; }
  .erp-ui .smart-dashboard .dashboard-main { display: block; }
  .erp-ui .smart-dashboard .dashboard-main > .card { margin-bottom: 16px !important; }
  .erp-ui .smart-dashboard .stat-value { font-size: 27px; color: #111; }
  .erp-ui .smart-attendance-ring { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .erp-ui .smart-focus-list li > a { color: #222; }
  .erp-ui .smart-focus-list li > a > span:last-child,
  .erp-ui .smart-focus-list li > a > strong:last-child,
  .erp-ui .smart-focus-list li > a > b { background: #fff; color: #222; border-color: #ccc; }
  .erp-ui .smart-focus-empty { color: #222; background: #fff; border-color: #ccc; }
  .erp-ui .smart-device-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .erp-ui .smart-device-strip li { background: #fff; border-color: #ccc; border-radius: 0; break-inside: avoid; }
  .erp-ui .smart-device-strip li strong,
  .erp-ui .smart-device-strip li small { color: #222; }
  .erp-ui.erp-compact .table-wrap:not(.profile-attendance-table) table:not(.form-j-table):not(.muster):not(.report-matrix) th,
  .erp-ui.erp-compact .table-wrap:not(.profile-attendance-table) table:not(.form-j-table):not(.muster):not(.report-matrix) td { padding-top: 5px; padding-bottom: 5px; }
}

/* Employee results share the page finder; labels remain readable on mobile. */
.erp-ui .search-results .search-section-label {
  padding: 9px 10px 4px;
  color: #657b90;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  list-style: none;
}
.erp-ui .search-results .employee-search-result {
  border-left: 3px solid #148675;
  margin: 3px 0;
  padding-left: 10px;
  background: #f5faf7;
}
.erp-ui .search-results .employee-search-result strong {
  color: #21483f;
  overflow-wrap: anywhere;
}
.erp-ui .search-results .employee-search-result small {
  color: #5c756e;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.erp-ui .search-results .search-message {
  padding: 8px 10px;
  margin: 0;
  color: #657b90;
  font-size: 10px;
  line-height: 1.6;
  list-style: none;
}

/* Compact dashboard: a practical header and smaller, inspectable panels. */
.erp-ui .smart-dashboard.dashboard-compact { min-width: 0; }
.erp-ui .dashboard-compact .dashboard-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 13px;
  padding: 0 0 13px;
  border-bottom: 1px solid #dce5ee;
}
.erp-ui .dashboard-compact .dashboard-compact-head > div { min-width: 0; }
.erp-ui .dashboard-compact .dashboard-compact-head h1 { margin: 0 0 3px; color: #213c52; font-size: 23px; line-height: 1.3; letter-spacing: -.5px; }
.erp-ui .dashboard-compact .dashboard-compact-head p { margin: 0; color: #6e8395; font-size: 11px; line-height: 1.5; }
.erp-ui .dashboard-compact .dashboard-compact-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; min-width: 0; }
.erp-ui .dashboard-compact .dashboard-compact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.erp-ui .dashboard-compact .dashboard-compact-actions a,
.erp-ui .dashboard-compact .dashboard-compact-date button,
.erp-ui .dashboard-compact .dashboard-compact-date > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 10px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.erp-ui .dashboard-compact .dashboard-compact-actions .ui-icon { width: 15px; height: 15px; }
.erp-ui .dashboard-compact .dashboard-compact-date { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; margin: 0; }
.erp-ui .dashboard-compact .dashboard-compact-date label { display: inline; color: #647b8f; font-size: 11px; font-weight: 600; }
.erp-ui .dashboard-compact .dashboard-compact-date input { width: 144px; min-width: 0; max-width: 100%; min-height: 36px; margin: 0; padding: 7px 8px; color: #38576e; font-size: 11px; line-height: 1.5; }
.erp-ui .dashboard-compact .dashboard-compact-date > a { color: #177b6d; padding-left: 5px; padding-right: 5px; }
.erp-ui .smart-dashboard.dashboard-compact .card { padding: 15px 16px; margin-bottom: 13px; border-radius: 11px; }
.erp-ui .smart-dashboard.dashboard-compact .panel-heading { gap: 10px; }
.erp-ui .smart-dashboard.dashboard-compact .panel-heading h2 { font-size: 14px; line-height: 1.4; margin: 0 0 3px; letter-spacing: -.15px; }
.erp-ui .smart-dashboard.dashboard-compact .panel-heading p { font-size: 10px; line-height: 1.6; }
.erp-ui .smart-dashboard.dashboard-compact .panel-heading > a { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 34px; font-size: 10px; }
.erp-ui .smart-dashboard.dashboard-compact .panel-heading > a.btn { padding: 6px 9px; }
.erp-ui .smart-dashboard.dashboard-compact .panel-heading > a .ui-icon { width: 12px; height: 12px; }
.erp-ui .smart-dashboard.dashboard-compact .panel-label { padding: 4px 6px; font-size: 9px; }
.erp-ui .dashboard-compact details.smart-status { display: block; padding: 0 13px; margin-bottom: 13px; border-radius: 9px; }
.erp-ui .dashboard-compact .smart-status > summary { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 8px 0; cursor: pointer; list-style: none; }
.erp-ui .dashboard-compact .smart-status > summary::-webkit-details-marker { display: none; }
.erp-ui .dashboard-compact .smart-status > summary > .ui-icon { width: 17px; height: 17px; flex: none; color: currentColor; }
.erp-ui .dashboard-compact .dashboard-sync-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; flex: 1; min-width: 0; }
.erp-ui .dashboard-compact .dashboard-sync-heading strong { font-size: 11px; line-height: 1.5; }
.erp-ui .dashboard-compact .dashboard-sync-heading > small { color: inherit; font-size: 10px; line-height: 1.5; }
.erp-ui .dashboard-compact .dashboard-sync-toggle { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; flex: none; font-size: 10px; font-weight: 600; }
.erp-ui .dashboard-compact .dashboard-sync-toggle .ui-icon { width: 13px; height: 13px; transition: transform .15s ease; }
.erp-ui .dashboard-compact details[open] > summary .dashboard-sync-toggle .ui-icon { transform: rotate(180deg); }
.erp-ui .dashboard-compact .smart-status[open] > summary { border-bottom: 1px solid #7d9c8929; }
.erp-ui .dashboard-compact .dashboard-sync-details { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; min-width: 0; padding: 9px 0 11px; }
.erp-ui .dashboard-compact .dashboard-sync-details > div { flex: 1 1 300px; min-width: 0; }
.erp-ui .dashboard-compact .dashboard-sync-details p { font-size: 10px; line-height: 1.6; }
.erp-ui .dashboard-compact .dashboard-sync-details > p:first-child { flex: 1 1 100%; }
.erp-ui .dashboard-compact .dashboard-sync-details .smart-status-meta { margin: 4px 0 0; font-size: 10px; }
.erp-ui .dashboard-compact .dashboard-sync-details > a { min-height: 34px; padding: 6px 9px; font-size: 10px; text-decoration: none; background: #fff; }
.erp-ui .smart-dashboard.dashboard-compact .dashboard-kpis { gap: 12px; margin-bottom: 13px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-card { padding: 13px 15px 12px; border-radius: 10px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-card::before { left: 15px; right: 15px; height: 2px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-top { gap: 7px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-label { font-size: 11px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-icon { width: 30px; height: 30px; border-radius: 8px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-icon .ui-icon { width: 17px; height: 17px; }
.erp-ui .smart-dashboard.dashboard-compact .stat-value { font-size: 28px; margin: 7px 0 4px; line-height: 1.15; }
.erp-ui .smart-dashboard.dashboard-compact .stat-note { font-size: 10px; line-height: 1.5; }
.erp-ui .smart-dashboard.dashboard-compact .dashboard-main { gap: 12px; margin-bottom: 13px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.erp-ui .dashboard-compact .smart-ring-layout { justify-content: flex-start; gap: 15px; margin: 13px 0 5px; }
.erp-ui .dashboard-compact .smart-attendance-ring { width: 106px; height: 106px; padding: 15px; }
.erp-ui .dashboard-compact .smart-attendance-ring::before { inset: 8px; }
.erp-ui .dashboard-compact .smart-attendance-ring strong { font-size: 23px; }
.erp-ui .dashboard-compact .smart-attendance-ring small { margin-top: 4px; font-size: 9px; }
.erp-ui .dashboard-compact .smart-status-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; flex: 1 1 220px; min-width: 0; }
.erp-ui .dashboard-compact .smart-status-breakdown .summary-row { min-width: 0; gap: 5px; padding: 7px 0; border-bottom: 1px solid #edf2f6; }
.erp-ui .dashboard-compact .smart-status-breakdown .summary-row:nth-last-child(-n+2) { border-bottom: 0; }
.erp-ui .dashboard-compact .smart-status-breakdown .summary-label { gap: 6px; font-size: 10px; }
.erp-ui .dashboard-compact .smart-status-breakdown .summary-dot { width: 6px; height: 6px; flex: none; }
.erp-ui .dashboard-compact .smart-status-breakdown .summary-value { font-size: 14px; }
.erp-ui .smart-dashboard.dashboard-compact .chart-source { margin: 8px 0 0; padding-top: 0; font-size: 10px; line-height: 1.6; }
.erp-ui .dashboard-compact .smart-focus-list { margin-top: 7px; }
.erp-ui .dashboard-compact .smart-focus-list li > a { gap: 8px; padding: 8px 1px; min-height: 42px; }
.erp-ui .dashboard-compact .smart-focus-list .ui-icon { width: 15px; height: 15px; }
.erp-ui .dashboard-compact .smart-focus-list li > a > span strong { font-size: 11px; }
.erp-ui .dashboard-compact .smart-focus-list li > a > span small { margin-top: 2px; font-size: 10px; line-height: 1.4; }
.erp-ui .dashboard-compact .smart-focus-list li > a > b { min-height: 23px; padding: 2px 6px; font-size: 10px; }
.erp-ui .dashboard-compact .smart-focus-empty { margin-top: 10px; padding: 11px; }
.erp-ui .smart-dashboard.dashboard-compact .workspace-links { gap: 12px; margin-bottom: 13px; }
.erp-ui .smart-dashboard.dashboard-compact .workspace-link { gap: 9px; padding: 11px 12px; border-radius: 9px; }
.erp-ui .smart-dashboard.dashboard-compact .workspace-icon { width: 30px; height: 30px; border-radius: 8px; }
.erp-ui .smart-dashboard.dashboard-compact .workspace-icon .ui-icon { width: 16px; height: 16px; }
.erp-ui .smart-dashboard.dashboard-compact .workspace-link strong { font-size: 11px; }
.erp-ui .smart-dashboard.dashboard-compact .workspace-link small { font-size: 10px; }
.erp-ui .dashboard-compact .smart-branch-tools { gap: 8px; margin-top: 11px; }
.erp-ui .dashboard-compact .smart-branch-tools > label { max-width: 310px; min-height: 36px; }
.erp-ui .dashboard-compact .smart-branch-tools input { min-height: 36px; padding-top: 7px; padding-bottom: 7px; font-size: 11px; }
.erp-ui .dashboard-compact .smart-branch-tools > span { padding-bottom: 7px; }
.erp-ui .smart-dashboard.dashboard-compact .institution-grid { gap: 10px; margin-top: 11px; }
.erp-ui .smart-dashboard.dashboard-compact .institution-card { padding: 0; border-radius: 9px; }
.erp-ui .smart-dashboard.dashboard-compact .institution-link { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: minmax(0, auto) auto auto auto; align-items: center; column-gap: 10px; row-gap: 3px; min-height: 180px; padding: 13px 12px 10px; text-align: left; border-radius: 8px; }
.erp-ui .smart-dashboard.dashboard-compact .institution-logo { --logo-height: 60px; grid-column: 1; grid-row: 1 / 3; align-self: center; width: 60px; margin: 0; }
.erp-ui .smart-dashboard.dashboard-compact .institution-logo img { max-width: 60px; }
.erp-ui .smart-dashboard.dashboard-compact .institution-card h3 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; color: #2d495f; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.erp-ui .smart-dashboard.dashboard-compact .institution-card p { grid-column: 2; grid-row: 2; align-self: start; margin: 0; padding: 0; font-size: 9px; line-height: 1.4; }
.erp-ui .dashboard-compact .smart-branch-counts { grid-column: 1 / -1; grid-row: 3; gap: 4px; padding-top: 7px; margin-top: 0; }
.erp-ui .dashboard-compact .smart-branch-counts > * { gap: 3px; padding: 6px 3px; }
.erp-ui .dashboard-compact .smart-branch-counts strong { font-size: 14px; }
.erp-ui .dashboard-compact .smart-branch-counts small { font-size: 9px; }
.erp-ui .smart-dashboard.dashboard-compact .institution-open { grid-column: 1 / -1; grid-row: 4; margin-top: 3px; padding-top: 7px; font-size: 10px; }
.erp-ui .dashboard-compact details.dashboard-receiver-panel.card { padding: 0 16px; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; list-style: none; cursor: pointer; min-height: 50px; padding: 11px 0; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > summary::-webkit-details-marker { display: none; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > summary h2 { margin: 0; font-size: 14px; line-height: 1.4; letter-spacing: -.15px; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > summary > span:not(.dashboard-sync-toggle) { color: #728699; font-size: 10px; line-height: 1.5; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > summary > div { flex: 1; min-width: 0; }
.erp-ui .dashboard-compact .dashboard-receiver-panel[open] > summary { border-bottom: 1px solid #e5edf2; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > .panel-heading { margin-top: 10px; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > p { font-size: 10px; line-height: 1.6; margin: 10px 0; }
.erp-ui .dashboard-compact .dashboard-receiver-panel > .smart-device-strip { gap: 9px; margin: 11px 0 14px; }
.erp-ui .dashboard-compact .smart-device-strip li { gap: 4px; padding: 9px 10px; border-radius: 8px; }
.erp-ui .dashboard-compact .smart-device-strip li strong { font-size: 10px; }
.erp-ui .dashboard-compact .smart-device-strip li small,
.erp-ui .dashboard-compact .smart-device-strip li > time { font-size: 9px; }
.erp-ui .dashboard-compact .dashboard-log-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; align-items: start; }
.erp-ui .smart-dashboard.dashboard-compact .dashboard-log-grid > .card { min-width: 0; margin-bottom: 0; }
.erp-ui .smart-dashboard.dashboard-compact .chart-caption { margin-top: 9px; gap: 5px 9px; font-size: 10px; }
.erp-ui .dashboard-compact .punch-chart { margin: 9px 0 4px; }
.erp-ui .dashboard-compact .punch-bars { gap: 8px; }
.erp-ui .dashboard-compact .punch-value { font-size: 10px; }
.erp-ui .dashboard-compact .punch-date { font-size: 9px; }
.erp-ui .dashboard-compact .punch-day { font-size: 9px; }
.erp-ui .dashboard-compact .chart-data { margin-top: 7px; font-size: 10px; }
.erp-ui .dashboard-compact .chart-data > summary { display: flex; align-items: center; min-height: 34px; font-size: 10px; }
.erp-ui .dashboard-compact .chart-data > summary::before { content: "+"; display: inline-block; width: 18px; color: #598374; font-size: 14px; }
.erp-ui .dashboard-compact .chart-data[open] > summary::before { content: "−"; }
.erp-ui .dashboard-compact .chart-data table { margin-top: 3px; }
.erp-ui .dashboard-compact .chart-data th,
.erp-ui .dashboard-compact .chart-data td { font-size: 10px; }
.erp-ui .dashboard-compact .dashboard-latest-panel .table-wrap { max-height: 250px; margin-top: 11px; overflow: auto; border-radius: 8px; }
.erp-ui .dashboard-compact .dashboard-latest-panel .activity-table { font-size: 11px; }
.erp-ui .smart-dashboard.dashboard-compact .dashboard-latest-panel th,
.erp-ui .smart-dashboard.dashboard-compact .dashboard-latest-panel td { padding: 8px 9px; font-size: 11px; line-height: 1.5; }
.erp-ui .dashboard-compact .dashboard-latest-panel th { position: sticky; top: 0; z-index: 1; font-size: 10px; }
.erp-ui .dashboard-compact .dashboard-latest-panel .badge { font-size: 9px; }
.erp-ui .dashboard-compact .dashboard-section-note { margin: 7px 0 0; color: #708597; font-size: 10px; line-height: 1.6; }
@media (min-width: 481px) {
  .erp-ui .dashboard-compact .punch-bars li { grid-template-rows: 20px 112px 20px 15px; }
  .erp-ui .smart-dashboard.dashboard-compact .punch-track { height: 112px; padding: 0 5px; background: repeating-linear-gradient(to top, transparent 0, transparent 26px, #eaf0f5 27px, transparent 28px); }
  .erp-ui .dashboard-compact .punch-fill { max-width: 32px; }
}
@media (min-width: 1200px) {
  .erp-ui .dashboard-compact .dashboard-log-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
}
@media (max-width: 1100px) {
  .erp-ui .dashboard-compact .dashboard-compact-actions { margin-left: 0; }
  .erp-ui .dashboard-compact .dashboard-compact-date { margin-left: auto; }
}
@media (max-width: 980px) {
  .erp-ui .smart-dashboard.dashboard-compact .dashboard-main { grid-template-columns: minmax(0, 1fr); }
  .erp-ui .dashboard-compact .smart-status-breakdown { flex-basis: 200px; }
}
@media (max-width: 780px) {
  .erp-ui .dashboard-compact .dashboard-compact-head { gap: 10px; }
  .erp-ui .dashboard-compact .dashboard-compact-head > div:first-child { width: 100%; }
  .erp-ui .dashboard-compact .dashboard-compact-tools { justify-content: flex-start; }
  .erp-ui .dashboard-compact .dashboard-compact-date { margin-left: 0; }
  .erp-ui .smart-dashboard.dashboard-compact .card { padding: 14px; }
  .erp-ui .smart-dashboard.dashboard-compact .stat-card { padding: 12px 13px; }
  .erp-ui .smart-dashboard.dashboard-compact .stat-value { font-size: 28px; }
  .erp-ui .dashboard-compact .dashboard-sync-heading { display: block; }
  .erp-ui .dashboard-compact .dashboard-sync-heading > small { display: block; }
  .erp-ui .dashboard-compact .dashboard-sync-details > div { flex-basis: 100%; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-link { min-height: 174px; padding: 11px 10px 9px; column-gap: 8px; }
  .erp-ui .dashboard-compact details.dashboard-receiver-panel.card { padding: 0 14px; }
  .erp-ui .dashboard-compact .dashboard-latest-panel .table-wrap { max-height: 255px; }
  .erp-ui .dashboard-compact .dashboard-compact-actions a,
  .erp-ui .dashboard-compact .dashboard-compact-date button,
  .erp-ui .dashboard-compact .dashboard-compact-date > a,
  .erp-ui .dashboard-compact .chart-data > summary { min-height: 36px; }
}
@media (max-width: 480px) {
  .erp-ui .dashboard-compact .dashboard-compact-head { margin-bottom: 11px; padding-bottom: 11px; }
  .erp-ui .dashboard-compact .dashboard-compact-head h1 { font-size: 21px; }
  .erp-ui .dashboard-compact .dashboard-compact-actions { width: 100%; }
  .erp-ui .dashboard-compact .dashboard-compact-tools { width: 100%; gap: 9px; }
  .erp-ui .dashboard-compact .dashboard-compact-actions a { flex: 1; padding: 7px 8px; }
  .erp-ui .dashboard-compact .dashboard-compact-date { width: 100%; gap: 6px; }
  .erp-ui .dashboard-compact .dashboard-compact-date input { flex: 1 1 128px; width: 128px; font-size: 16px; padding: 6px; }
  .erp-ui .dashboard-compact .dashboard-compact-date button { padding-left: 8px; padding-right: 8px; }
  .erp-ui .dashboard-compact details.smart-status { padding-left: 10px; padding-right: 10px; }
  .erp-ui .dashboard-compact .smart-status > summary { gap: 7px; }
  .erp-ui .dashboard-compact .dashboard-sync-heading strong { font-size: 10px; }
  .erp-ui .dashboard-compact .dashboard-sync-toggle { font-size: 10px; }
  .erp-ui .smart-dashboard.dashboard-compact .dashboard-kpis { gap: 10px; }
  .erp-ui .smart-dashboard.dashboard-compact .stat-card { padding: 11px 12px; }
  .erp-ui .smart-dashboard.dashboard-compact .stat-label { font-size: 10px; }
  .erp-ui .smart-dashboard.dashboard-compact .stat-icon { width: 26px; height: 26px; }
  .erp-ui .smart-dashboard.dashboard-compact .stat-note { font-size: 10px; }
  .erp-ui .dashboard-compact .smart-ring-layout { gap: 10px; margin-top: 11px; }
  .erp-ui .dashboard-compact .smart-status-breakdown { column-gap: 13px; flex-basis: 190px; }
  .erp-ui .smart-dashboard.dashboard-compact .workspace-links { gap: 10px; }
  .erp-ui .smart-dashboard.dashboard-compact .workspace-link { gap: 7px; padding: 10px 11px; }
  .erp-ui .dashboard-compact .smart-branch-tools input { font-size: 16px; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-grid { gap: 9px; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-link { grid-template-columns: minmax(0, 1fr); grid-template-rows: 50px auto auto auto auto; justify-items: center; row-gap: 5px; min-height: 200px; padding: 10px 9px 8px; text-align: center; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-logo { --logo-height: 50px; grid-column: 1; grid-row: 1; width: 50px; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-logo img { max-width: 50px; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-card h3 { grid-column: 1; grid-row: 2; align-self: center; font-size: 11px; line-height: 1.45; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-card p { grid-column: 1; grid-row: 3; font-size: 9px; }
  .erp-ui .dashboard-compact .smart-branch-counts { grid-row: 4; padding-top: 1px; gap: 3px; }
  .erp-ui .dashboard-compact .smart-branch-counts strong { font-size: 14px; }
  .erp-ui .dashboard-compact .smart-branch-counts small { font-size: 9px; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-open { grid-row: 5; gap: 3px; margin: 0; padding-top: 6px; font-size: 9px; }
  .erp-ui .dashboard-compact .punch-bars { gap: 7px; }
  .erp-ui .dashboard-compact .punch-bars li { grid-template-columns: 44px minmax(0, 1fr) 43px; gap: 0 8px; }
  .erp-ui .smart-dashboard.dashboard-compact .punch-track { height: 19px; }
  .erp-ui .dashboard-compact .punch-fill { height: 19px; }
  .erp-ui .dashboard-compact .punch-date,
  .erp-ui .dashboard-compact .punch-value { font-size: 10px; }
  .erp-ui .smart-dashboard.dashboard-compact .dashboard-latest-panel th,
  .erp-ui .smart-dashboard.dashboard-compact .dashboard-latest-panel td { padding: 7px 8px; }
}
@media (max-width: 360px) {
  .erp-ui .dashboard-compact .smart-ring-layout { flex-direction: row; justify-content: center; }
  .erp-ui .dashboard-compact .smart-status-breakdown { width: 100%; flex-basis: 100%; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-link { grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto auto auto auto; min-height: 170px; column-gap: 9px; text-align: left; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-logo { --logo-height: 60px; width: 60px; grid-row: 1 / 3; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-logo img { max-width: 60px; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-card h3 { grid-column: 2; grid-row: 1; align-self: end; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-card p { grid-column: 2; grid-row: 2; }
  .erp-ui .dashboard-compact .smart-branch-counts { grid-row: 3; }
  .erp-ui .smart-dashboard.dashboard-compact .institution-open { grid-row: 4; }
}
@media print {
  .erp-ui .dashboard-compact .dashboard-compact-head { padding-bottom: 8px; margin-bottom: 10px; }
  .erp-ui .dashboard-compact .dashboard-compact-head h1 { color: #111; }
  .erp-ui .dashboard-compact .dashboard-compact-actions,
  .erp-ui .dashboard-compact .dashboard-compact-date,
  .erp-ui .dashboard-compact .dashboard-sync-toggle,
  .erp-ui .dashboard-compact .dashboard-sync-details > a { display: none !important; }
  .erp-ui .dashboard-compact .dashboard-log-grid { display: block; }
  .erp-ui .smart-dashboard.dashboard-compact .dashboard-log-grid > .card { margin-bottom: 12px; break-inside: avoid; }
  .erp-ui .dashboard-compact .dashboard-latest-panel .table-wrap { max-height: none; overflow: visible; }
  .erp-ui .dashboard-compact .dashboard-latest-panel th { position: static; }
  .erp-ui .dashboard-compact .dashboard-sync-details,
  .erp-ui .dashboard-compact .dashboard-receiver-panel > .smart-device-strip { display: flex; }
  .erp-ui .dashboard-compact .dashboard-receiver-panel > .smart-device-strip { flex-wrap: wrap; }
  .erp-ui .dashboard-compact .dashboard-receiver-panel > .smart-device-strip > li { flex: 1 1 160px; }
  .erp-ui .dashboard-compact .chart-data > summary { display: none; }
  .erp-ui .dashboard-compact .chart-data > table { display: table; }
}
