/* Shared footer: company identity, navigation, then centered platform copyright. */
footer.property-footer.property-footer {
  padding: 22px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--scheme-border-color, #dfe8e3);
  background: var(--scheme-card-background-color, #fff);
  color: var(--scheme-muted-text-color, #65776e);
}
.property-footer.property-footer .property-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  text-align: center;
}
.property-footer.property-footer .property-footer-company {
  order: 1;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--scheme-text-color, #294238);
  overflow-wrap: anywhere;
}
.property-footer.property-footer .property-footer-desktop {
  order: 2;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  width: 100%;
}
.property-footer.property-footer .property-footer-desktop > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  line-height: 1.5;
}
.property-footer.property-footer .property-footer-brand {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  gap: 8px 12px;
  padding-top: 16px;
  border-top: 1px solid var(--scheme-border-color, #e7eee9);
  color: var(--scheme-muted-text-color, #65776e);
  text-align: center;
  text-decoration: none;
}
.property-footer.property-footer .property-footer-copyright-full {
  display: inline;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.property-footer.property-footer .property-footer-copyright-short { display: none; }
.property-footer.property-footer a:focus-visible,
.property-footer.property-footer summary:focus-visible {
  outline: 2px solid var(--scheme-link-color, #138451);
  outline-offset: 3px;
}
#doiteasy-hr-assistant {
  bottom: var(--chrome-assistant-bottom, 18px) !important;
}
@media screen and (max-width: 780px) {
  footer.property-footer.property-footer {
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .property-footer.property-footer .property-footer-inner { gap: 10px; }
  .property-footer.property-footer .property-footer-desktop { display: none; }
  .property-footer.property-footer .property-footer-mobile {
    order: 2;
    display: block;
    width: 100%;
    max-width: 480px;
  }
  .property-footer.property-footer .property-footer-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-top: 0;
  }
  .property-footer.property-footer .property-footer-primary > a,
  .property-footer.property-footer .property-footer-more > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    border-radius: 8px;
    line-height: 1.5;
    color: var(--scheme-link-color, #466359);
    text-decoration: none;
  }
  .property-footer.property-footer .property-footer-more > summary {
    width: fit-content;
    max-width: 100%;
    min-width: 120px;
    margin: 2px auto 0;
    gap: 6px;
    cursor: pointer;
  }
  .property-footer.property-footer .property-footer-extra-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 0 4px;
  }
  .property-footer.property-footer .property-footer-extra-links > a {
    min-height: 44px;
    border: 1px solid var(--scheme-border-color, #e6ede8);
    border-radius: 8px;
    background: var(--scheme-background-color, #f4f7f5);
    color: var(--scheme-link-color, #466359);
  }
  .property-footer.property-footer .property-footer-brand {
    gap: 8px;
    padding-top: 14px;
  }
  .property-footer.property-footer .property-footer-brand img {
    width: 86px;
    height: 24px;
  }
  .property-footer.property-footer .property-footer-copyright-full {
    flex-basis: 100%;
    font-size: 11.5px;
  }
}
/* Keep the account container intact so its popovers remain anchored to the button. */
@media screen and (max-width: 1023px) {
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px 114px !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-header-branding {
    grid-row: 1 !important;
    grid-column: 1 / 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-header-branding > img {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: 30px !important;
    max-height: 30px !important;
    max-width: 72px !important;
    margin: 0 !important;
    object-fit: contain;
    flex-shrink: 0;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-topbar-title {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-header-controls {
    display: contents !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-control {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-menu-trigger {
    width: 44px !important;
    min-width: 44px !important;
    padding: 10px !important;
    flex-shrink: 0;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .language-selector-trigger {
    grid-row: 1 !important;
    grid-column: 3 !important;
    justify-self: end !important;
    width: 72px !important;
    min-width: 72px !important;
    padding: 6px !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .language-selector-trigger > svg:first-child { width: 17px; }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .language-selector-chevron { width: 12px; }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-workspace-control {
    grid-row: 2 !important;
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 8px !important;
    font-size: 16px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar:not(:has(.portal-company-link)) .portal-workspace-control { grid-column: 1 / 3 !important; }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-company-link {
    grid-row: 2 !important;
    grid-column: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 10px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-company-link-label { display: none !important; }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-header-controls .portal-account-controls {
    grid-row: 2 !important;
    grid-column: 3 !important;
    display: flex !important;
    position: relative !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 114px !important;
    min-width: 0 !important;
    gap: 6px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-notification-trigger {
    width: 44px !important;
    min-width: 44px !important;
    padding: 10px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-account-trigger {
    width: 64px !important;
    min-width: 64px !important;
    padding: 5px !important;
    gap: 4px !important;
    justify-content: center !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .account-avatar {
    width: 30px !important;
    height: 30px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-account-name { display: none !important; }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-clock {
    grid-row: 3 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 5px 8px !important;
    box-shadow: none !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-clock-inline {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-clock-inline time,
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-clock-zone {
    font-size: 10.5px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar:not(:has(.portal-workspace-control)) .portal-clock {
    grid-row: 2 !important;
    grid-column: 1 !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar:not(:has(.portal-workspace-control)) .portal-clock-inline { flex-wrap: wrap !important; gap: 1px 5px !important; }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar:not(:has(.portal-workspace-control)):not(:has(.portal-company-link)) .portal-clock { grid-column: 1 / 3 !important; }
  .portal-shell .portal-account-popover,
  .portal-shell .portal-notifications-popover {
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
  }
}
@media screen and (min-width: 640px) and (max-width: 1023px) {
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar {
    grid-template-columns: minmax(0, 1fr) 44px 260px !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .language-selector-trigger {
    justify-self: start !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-header-controls .portal-account-controls {
    grid-row: 1 !important;
    justify-self: end !important;
  }
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar .portal-clock,
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar:not(:has(.portal-workspace-control)) .portal-clock,
  .portal-shell:not(:has(.attendance-report-screen)) .portal-topbar.portal-topbar:not(:has(.portal-workspace-control)):not(:has(.portal-company-link)) .portal-clock {
    grid-row: 2 !important;
    grid-column: 3 !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}
@media print {
  #doiteasy-hr-assistant { display: none !important; }
}
