html, body, body.vesta-app-body { height: 100%; }
body.vesta-app-body { overflow: hidden; }
.vesta-app-shell { display: block; height: 100vh; height: 100dvh; overflow: hidden; position: relative; }
.vesta-app-shell__main { min-width: 0; height: 100vh; height: 100dvh; margin-left: var(--vesta-sidebar-w); display: flex; flex-direction: column; overflow: hidden; transition: margin-left .22s ease; }
.vesta-app-shell.is-sidebar-collapsed .vesta-app-shell__main { margin-left: var(--vesta-sidebar-w-collapsed); }
.vesta-page-shell { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 14px; }
.vesta-page-header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.vesta-page-header__content { display:flex; gap:12px; align-items:center; min-width:0; }
.vesta-page-header__icon { width:44px; height:44px; border-radius:12px; background:var(--vesta-surface); border:1px solid var(--vesta-border); display:grid; place-items:center; flex:0 0 auto; }
.vesta-page-header h1 { margin:0 0 2px; font-size:16px; line-height:1.2; }
.vesta-page-header p { margin:0; color:var(--vesta-text-2); font-size:11.5px; }
.vesta-section { margin-bottom:12px; }
.vesta-section__title-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.vesta-section__title-row h3 { margin:0; font-size:14px; }
.vesta-dashboard-grid { display:grid; grid-template-columns: minmax(0, 1fr); gap:12px; }
.vesta-dashboard-grid--split { grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); }
.vesta-dashboard-grid__main { display:grid; gap:12px; min-width:0; }
.vesta-utility-rail { display:grid; gap:8px; align-content:start; }
 .vesta-dashboard-banner { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; background:linear-gradient(135deg,#ffffff 0%,#faf7f1 100%); border:1px solid var(--vesta-border); border-radius:var(--vesta-radius-lg); margin-bottom:12px; }
.vesta-dashboard-banner h2 { margin:4px 0 6px; font-size:16px; }
.vesta-dashboard-banner p, .vesta-eyebrow { margin:0; color:var(--vesta-text-2); }
.vesta-eyebrow { display:inline-block; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--vesta-accent); }
@media (max-width: 1023px) {
  body.vesta-app-body { overflow: hidden; }
  .vesta-app-shell__main { margin-left: 0; }
  .vesta-page-shell { padding: 16px; }
  .vesta-dashboard-grid, .vesta-dashboard-grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .vesta-page-shell { padding: 12px; }
  .vesta-page-header { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .vesta-page-header__content { gap: 12px; }
  .vesta-page-header__icon { width: 42px; height: 42px; border-radius: 12px; }
  .vesta-page-header h1 { font-size: 18px; }
  .vesta-dashboard-banner { flex-direction: column; align-items: stretch; padding: 18px; margin-bottom: 16px; }
  .vesta-dashboard-banner h2 { font-size: 18px; }
}


.vesta-mobile-quick-actions { display:none; }

@media (max-width: 767px) {
  .vesta-mobile-quick-actions { display:block; margin-bottom:16px; }
  .vesta-utility-rail .vesta-utility-rail__quick-actions { display:none; }
  .vesta-dashboard-grid__main { order: 2; }
  .vesta-utility-rail { order: 3; }
}

@media (max-width: 767px) {
  :root {
    --vesta-mobile-safe-top: max(18px, env(safe-area-inset-top, 0px));
    --vesta-topbar-mobile-row-h: 60px;
    --vesta-topbar-mobile-extra: 12px;
    --vesta-topbar-mobile-total: calc(var(--vesta-mobile-safe-top) + var(--vesta-topbar-mobile-row-h) + var(--vesta-topbar-mobile-extra));
  }
  .vesta-app-shell, .vesta-app-shell__main {
    height: 100vh;
    height: 100dvh;
  }
  .vesta-app-shell__main {
    padding-top: var(--vesta-topbar-mobile-total);
  }
  .vesta-page-shell {
    padding-top: 12px;
  }
}

.vesta-page-shell--full .vesta-dashboard-grid,.vesta-page-shell--full .vesta-dashboard-grid--split{grid-template-columns:1fr;}
.vesta-page-shell--full .vesta-utility-rail{display:none;}
.vesta-page-actions-right,.vesta-page-header__actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin:0;}
@media print{body.vesta-app-body{overflow:visible!important;background:#fff;} .vesta-sidebar,.vesta-topbar,.vesta-page-header,.vesta-page-actions-right,.vesta-utility-rail,.vesta-inline-alert,.vesta-form-actions .vesta-button--secondary,.vesta-qr-actions .vesta-button--secondary{display:none!important;} .vesta-app-shell__main{margin-left:0!important;padding-top:0!important;} .vesta-page-shell{padding:0!important;overflow:visible!important;} .vesta-print-only-qr{display:block!important;border:none!important;box-shadow:none!important;} .vesta-print-only-qr .vesta-card__header,.vesta-print-only-qr .vesta-help-text{display:none!important;} .vesta-print-qr-wrap{display:flex!important;justify-content:center;align-items:center;min-height:100vh;} }

.vesta-page-shell .vesta-card{border-radius:16px}.vesta-page-shell .vesta-card__body{padding:12px}.vesta-page-shell .vesta-card__header{padding:10px 12px 0}.vesta-page-shell .vesta-kpi-card{padding:12px}.vesta-page-shell .vesta-kpi-card__value{font-size:22px}@media (max-width:900px){.vesta-page-shell .vesta-page-grid--three{grid-template-columns:1fr;}}

.vesta-card__body p{margin:0 0 8px;}
.vesta-card__body p:last-child{margin-bottom:0;}


.vesta-my-attendance-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch;margin-bottom:12px;}
.vesta-my-attendance-summary-grid > .vesta-card{width:100%;min-width:0;height:100%;}
.vesta-my-attendance-summary-grid .vesta-card__body{height:100%;display:flex;flex-direction:column;justify-content:flex-start;}
@media (max-width: 900px){.vesta-my-attendance-summary-grid{grid-template-columns:1fr;}}

.vesta-page-shell > .vesta-section:last-child{margin-bottom:0;}
.vesta-page-shell .vesta-card + .vesta-card{margin-top:0;}
.vesta-page-shell .vesta-page-grid{gap:12px;}
.vesta-page-shell .vesta-kpi-strip{gap:8px;}

.vesta-page-shell > * + *{margin-top:0;}
.vesta-page-header__actions .vesta-button,.vesta-page-actions-right .vesta-button{margin:0;}
.vesta-card + .vesta-card{margin-top:0;}
.vesta-table-wrap{margin-top:4px;}
.vesta-dashboard-banner + .vesta-section{margin-top:0;}
@media (max-width:900px){.vesta-page-shell{padding:14px 14px 12px}.vesta-page-header{gap:8px;margin-bottom:10px}.vesta-dashboard-banner{padding:12px;margin-bottom:10px}.vesta-section{margin-bottom:10px}.vesta-my-attendance-summary-grid{gap:10px;margin-bottom:10px}}
@media (max-width:640px){.vesta-page-shell{padding:12px 12px 10px}.vesta-page-header{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:10px}.vesta-page-header__content{gap:10px;align-items:center}.vesta-page-header__actions,.vesta-page-actions-right{justify-content:stretch}.vesta-page-header__actions .vesta-button,.vesta-page-actions-right .vesta-button{width:100%}.vesta-section{margin-bottom:10px}}

.vesta-dashboard-banner--staff{align-items:center;}
.vesta-staff-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"greeting time" "name status";column-gap:18px;row-gap:8px;align-items:center;width:100%;}
.vesta-staff-hero-greeting{grid-area:greeting;font-size:14px;font-weight:700;color:var(--vesta-text);}
.vesta-staff-hero-time{grid-area:time;font-size:34px;font-weight:800;line-height:1;color:var(--vesta-text);text-align:right;white-space:nowrap;}
.vesta-staff-hero-name{grid-area:name;font-size:16px;font-weight:600;color:var(--vesta-text);}
.vesta-staff-status-pill{grid-area:status;justify-self:end;display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2ff;color:#374151;white-space:nowrap;}
.vesta-staff-status-pill--early,.vesta-staff-status-pill--on_time{background:#ecfdf5;color:#065f46;}
.vesta-staff-status-pill--late{background:#fef2f2;color:#b91c1c;}
.vesta-staff-status-pill--neutral{background:#f3f4f6;color:#374151;}
.vesta-scan-inline-card{margin-bottom:12px;}
@media (max-width:900px){.vesta-staff-hero-grid{grid-template-columns:1fr;grid-template-areas:"greeting" "name" "time" "status";row-gap:10px}.vesta-staff-hero-time{text-align:left;font-size:28px}.vesta-staff-status-pill{justify-self:start;}}


.vesta-scan-region{width:100%;max-width:420px;min-height:320px;background:#0f172a;border-radius:14px;overflow:hidden;position:relative;}
.vesta-scan-region video{width:100% !important;height:320px !important;object-fit:cover !important;display:block !important;border-radius:14px;}
.vesta-scan-region > div{border-radius:14px;overflow:hidden;}


.vesta-scan-overlay{position:fixed;inset:0;background:rgba(15,23,42,.82);z-index:10020;align-items:center;justify-content:center;padding:20px;}
.vesta-scan-overlay__dialog{width:min(100%,520px);background:#fff;border-radius:18px;padding:16px;display:grid;gap:12px;box-shadow:0 24px 64px rgba(0,0,0,.3);}
.vesta-scan-overlay__top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.vesta-scan-region--overlay{max-width:none;min-height:380px;height:60vh;}
body.vesta-scan-overlay-open{overflow:hidden;}
@media (max-width:640px){.vesta-scan-overlay{padding:12px}.vesta-scan-overlay__dialog{padding:12px;border-radius:16px}.vesta-scan-region--overlay{height:68vh;min-height:420px;}}
