@import url("./typography.css?v=1.5.25");

/* Shared footer/navigation shell - Split the Check v1.4.28 */
.site-footer,
.production-footer.site-footer{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  margin-top:18px!important;
  padding:28px 12px 8px!important;
  color:#8a9099!important;
  text-align:center!important;
  font-size:12px!important;
  line-height:1.45!important;
  box-sizing:border-box!important;
}
.site-footer-links{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin-bottom:3px!important;
}
.site-footer-links a{
  color:#5f6b7a!important;
  text-decoration:none!important;
  font-weight:650!important;
}
.site-footer-links a:hover{
  color:#007aff!important;
  text-decoration:underline!important;
}
.site-footer-links span{color:#b4bac2!important}
.site-footer-version,
.production-version{font-weight:700!important;letter-spacing:.01em!important}
.site-footer-copyright,
.production-copyright{font-weight:500!important}

/* Shared simple content pages. */
.site-info-page .app{width:min(760px,100%)}
.site-info-card p{color:#6e6e73;line-height:1.6}
.site-info-list{display:grid;gap:12px;margin-top:14px}
.site-info-row{padding:14px;border:1px solid #e8e8ed;border-radius:14px;background:#fff}
.site-info-row strong{display:block;margin-bottom:4px}
.site-info-row span{color:#6e6e73;font-size:14px}


/* v1.4.22 shared utility controls */
.profile-avatar.has-photo{
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  color:transparent!important;
}
.site-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.site-action-grid.single{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.site-action-grid.single .site-action-button{grid-column:1}
.site-action-button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 16px;
  border:1px solid #d9dde4;
  border-radius:12px;
  background:#f2f2f5;
  color:#1d1d1f;
  text-decoration:none;
  font-weight:750;
  text-align:center;
}
.site-action-button:hover{background:#e8e8ed}
.site-action-button.primary-action{
  border-color:#007aff;
  background:#007aff;
  color:#fff;
}
.site-action-button.primary-action:hover{background:#006ee6}
.auth-guard-pending main{visibility:hidden}
@media(max-width:560px){
  .site-action-grid,.site-action-grid.single{grid-template-columns:1fr}
  .site-action-grid.single .site-action-button{grid-column:auto}
}

/* v1.4.23 alignment + clickable debug tile */
.checks-page .app{
  width:min(760px,100%)!important;
}
.app-header .app-brand-link{
  margin-left:-12px;
}
.check-page .production-header .production-brand{
  margin-left:-12px;
}
.site-tool-card{
  display:flex;
  flex-direction:column;
  gap:7px;
  width:100%;
  margin-top:16px;
  padding:18px 20px;
  border:1px solid #d7e8ff;
  border-radius:15px;
  background:#eef6ff;
  color:#1d1d1f;
  text-decoration:none;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,background .12s ease;
}
.site-tool-card strong{
  color:#006edb;
  font-size:16px;
}
.site-tool-card span{
  color:#5f6875;
  font-size:14px;
  line-height:1.5;
}
.site-tool-card .site-tool-open{
  margin-top:3px;
  color:#006edb;
  font-size:12px;
  font-weight:800;
}
.site-tool-card:hover{
  transform:translateY(-1px);
  border-color:#89bfff;
  background:#e5f1ff;
  box-shadow:0 7px 18px rgba(0,122,255,.10);
}
@media(max-width:560px){
  .app-header .app-brand-link,.check-page .production-header .production-brand{margin-left:-8px}
}

/* v1.4.25 public auth, support states, shared modal */
.public-auth-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  margin-top:4px;
}
.public-auth-actions button{
  min-height:40px;
  padding:0 13px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#006edb;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.public-auth-actions .public-login-button{
  background:#0a84ff;
  color:#fff;
}
.public-auth-actions .public-signup-button:hover{background:#eef6ff}
.public-auth-actions .public-login-button:hover{background:#0074e8}

.global-auth-modal[hidden]{display:none!important}
.global-auth-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:20px;
}
.global-auth-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(4px);
}
.global-auth-card{
  position:relative;
  z-index:1;
  width:min(430px,100%);
  padding:24px;
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.24);
}
.global-auth-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:#f2f3f5;
  color:#5f6875;
  font-size:22px;
  cursor:pointer;
}
.global-auth-logo{display:block;width:190px;max-width:70%;height:auto;margin:0 0 18px}
.global-auth-card h2{margin:0 0 5px}
.global-auth-card > p{margin:0 0 18px;color:#6e6e73;font-size:13px}
.global-auth-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  padding:5px;
  margin-bottom:18px;
  border-radius:12px;
  background:#f0f1f3;
}
.global-auth-switch button{
  min-height:38px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#6e6e73;
  font-weight:800;
}
.global-auth-switch button.active{background:#fff;color:#111827;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.global-auth-card form{display:grid;gap:13px}
.global-auth-card form[hidden]{display:none!important}
.global-auth-card form label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:750}
.global-auth-card form input{height:48px;border:1px solid #d7dee7;border-radius:12px;padding:0 12px;background:#fff}
.global-auth-message{min-height:18px;margin-top:12px;color:#b42318;font-size:12px}

.site-login-help{
  display:block;
  width:100%;
  margin-top:14px;
  padding:16px;
  border:1px solid #d7e8ff;
  border-radius:14px;
  background:#f5f9ff;
  color:#1d1d1f;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.site-login-help strong{display:block;margin-bottom:4px;color:#006edb}
.site-login-help span{color:#64748b;font-size:13px;line-height:1.5}
.site-login-help:hover{background:#edf5ff;border-color:#9ec8ff}

.site-under-construction{
  position:relative;
  opacity:.56;
  filter:saturate(.55);
  background:#f7f7f8!important;
}
.site-under-construction .construction-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-bottom:8px;
  padding:4px 8px;
  border-radius:999px;
  background:#fff3cd;
  color:#7a5a00;
  font-size:10px;
  font-weight:850;
}

.site-page-back-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:0 0 14px;
}
.site-page-back{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 13px;
  border:1px solid #d9dde4;
  border-radius:10px;
  background:#fff;
  color:#1d1d1f;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.site-page-back:hover{background:#f6f7f8}

@media(max-width:560px){
  .public-auth-actions{gap:4px}
  .public-auth-actions button{padding:0 10px;font-size:12px}
  .global-auth-card{padding:20px}
}

/* =========================================================
   v1.4.26 shared shell polish
   ========================================================= */
.site-action-grid.single{
  grid-template-columns:1fr!important;
}
.site-action-grid.single .site-action-button{
  grid-column:1!important;
  width:100%!important;
}
.profile-dropdown-name{
  color:#0673e8!important;
}
.profile-dropdown-profile-label{
  display:none!important;
}
.profile-help-link{
  color:#1d1d1f!important;
}


/* v1.4.27: profile bubbles remain hidden until authenticated profile data is hydrated. */
.profile-menu[hidden]{display:none!important}


/* v1.4.28 Support auth-state actions */
.site-support-login-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  width:100%;
  margin-top:16px;
  padding:16px 18px;
  border:1px solid #d7e8ff;
  border-radius:14px;
  background:#eef6ff;
  color:#1d1d1f;
  text-align:left;
  cursor:pointer;
}
.site-support-login-card strong{color:#0673e8;font-size:15px}
.site-support-login-card span{color:#5f6875;font-size:13px;line-height:1.45}
.site-support-login-card:hover{background:#e6f1ff;border-color:#a9d1ff}
.site-support-login-card[hidden]{display:none!important}
.support-create-check{grid-template-columns:1fr!important}
.support-create-check .site-action-button{width:100%!important}


/* =========================================================
   v1.4.29 shared auth/support polish
   ========================================================= */
[data-auth-show][hidden]{display:none!important}

/* Public login modal: align brand + close control and go straight to the toggle. */
.global-auth-card{
  padding:24px!important;
}
.global-auth-logo{
  display:block!important;
  width:210px!important;
  max-width:72%!important;
  height:auto!important;
  margin:0 0 18px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
.global-auth-close{
  top:24px!important;
  right:24px!important;
  width:36px!important;
  height:36px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  line-height:1!important;
}
.global-auth-card h2,
.global-auth-card > p{
  display:none!important;
}
.global-auth-switch{margin-top:0!important}

/* Support bottom-state guarantees. */
.site-support-login-card[hidden],
.support-create-check[hidden],
.site-action-grid[hidden]{display:none!important}
.support-create-check{
  grid-template-columns:1fr!important;
  width:100%!important;
}
.support-create-check .site-action-button{width:100%!important}

@media(max-width:560px){
  .global-auth-logo{width:195px!important;max-width:72%!important}
  .global-auth-close{top:20px!important;right:20px!important}
}

/* =========================================================
   v1.4.43 shared rails + boxed Sign Up
   ========================================================= */
.app-header .app-brand-link,
.check-page .production-header .production-brand{
  margin-left:0!important;
  padding-left:0!important;
}
.app-header,
.check-page .production-header{
  width:100%!important;
  box-sizing:border-box!important;
  padding-left:0!important;
  padding-right:0!important;
}
.app-header .profile-menu,
.check-page .production-header .profile-menu,
.check-page .check-header-account-stack{
  margin-right:0!important;
}
.public-auth-actions .public-signup-button{
  border:1px solid #d2d2d7!important;
  background:#fff!important;
  color:#1d1d1f!important;
  box-shadow:0 1px 2px rgba(0,0,0,.03)!important;
}
.public-auth-actions .public-signup-button:hover{
  border-color:#bfc3c9!important;
  background:#f7f7f9!important;
}
#globalShowSignUp{
  border:1px solid #d9dde4!important;
}

/* db40-working: Results + People refinements */
#resultsCard .results-override-remaining td{
  border-top:1px solid #d9dde4!important;
  color:#c62828!important;
}
#resultsCard .results-override-remaining td:first-child{
  color:#c62828!important;
  font-weight:700!important;
}
#resultsCard .grand-total > span{
  flex:1 1 auto!important;
}
#resultsCard .grand-total > strong{
  flex:0 0 13.5%!important;
  width:13.5%!important;
  margin:0!important;
  text-align:center!important;
}
#peopleCard .people-search-input{
  height:38px!important;
  min-height:38px!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}