/* Engine-only controls. Original project/result selectors are owned by project.css. */
.alpha-note{padding:12px 20px;background:#fff2cc;color:#392700;border-bottom:1px solid #d7b759;text-align:center}
.account-navigation{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:1rem;padding-top:.5rem}
.account-navigation a{display:inline-flex;align-items:center;min-height:44px}
.screening-error{border-left:4px solid #b51e32;padding:18px;background:#fff;color:#8b1525}
.page-nav{display:flex;gap:20px;flex-wrap:wrap;margin:24px 0}
.account-navigation a:focus-visible,.page-nav a:focus-visible{outline:3px solid #ab1835;outline-offset:3px}

/* Source sanctions.class.php emitted styles, kept verbatim in a site resource. */
.letters-wrap {display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;gap:10px}
.letter-box a {display:inline-flex;min-width:44px;height:44px;padding:0 10px;box-sizing:border-box;align-items:center;justify-content:center;border:1px solid #d0d0d0;border-radius:6px;text-decoration:none;color:inherit;user-select:none;white-space:nowrap}
.letter-box a:hover {border-color:#888}
.sanctions-list {margin-top:12px}
.sanction-row {padding:6px 0;border-bottom:1px solid #eee}
/* Source login.class.php language markup + footer.twig style attributes. */
footer .lngcontainer,footer .lngcontainer a {white-space:nowrap;padding:10px;width:250px}
footer .sources-row img[hidden]{display:none}
.sources-caption{color:#999;font-size:12px;text-align:center}
.footer-language-wide{margin-top:50px;padding-left:30px}
.footer-language-mobile{margin-top:50px}
.footer-summary{color:#999;font-size:12px;margin-top:50px}
.footer-country-attribution{font-size:12px;color:#999}

/* Source bootpopup uses Bootstrap modal DOM, not an always-visible control panel. */
#api-key-dialog.api-key-modal-open{display:block}
#api-key-dialog .modal-body{overflow-wrap:anywhere}
body #login-account-layout .maincontainer{padding:0 20px}
@media(max-width:720px){body #login-account-layout .maincontainer{padding-left:16px;padding-right:16px}}

/* Original auth.tpl layout. Runtime state/controller remains shared. */
.lngcontainer,.lngcontainer a{white-space:nowrap;padding:10px;width:250px}
#login-auth-layout .login-source-languages a{display:inline;min-height:0}
#login-auth-layout #login-runtime:has(#login-form:not([hidden])){padding:0}
#login-auth-layout #login-runtime:has(#login-form:not([hidden]))>#login-status[data-error=false]{display:none}
#login-auth-layout #login-runtime:has(#login-form:not([hidden]))>#login-status[data-error=true]{margin:10px 20px;text-align:center}
#login-auth-layout #login-runtime .scan-source-credentials .loginlinks>div{margin-top:10px}
#login-auth-layout #login-runtime .scan-source-auth-actions{white-space:nowrap;width:100%;padding:0 30px 30px}
.scan-source-agreement{white-space:normal;text-align:left;font-size:10px}
#login-auth-layout #login-runtime .loginbuttons{display:block;text-align:right;white-space:nowrap;margin:0}
#login-auth-layout #login-runtime .btn,#login-auth-layout #regform .btn{min-height:0;font-size:14px;line-height:1.42857143}
#login-auth-layout #login-runtime .form-control{font-size:18px;height:42px;min-height:0}
#login-auth-layout #login-google-start{min-height:0;padding:0;border:0;vertical-align:middle;width:25%;height:auto}
#login-auth-layout #login-google-start .exticons{height:auto;max-height:35px;max-width:100%;margin-right:3px}
#login-auth-layout #login-google-row{display:inline}
.scan-source-oauth{margin-top:-15px;padding:0 30px 30px;text-align:left}
.scan-source-ssl{max-height:25px;margin:0 10px 0 0;float:left}
#login-auth-layout #regform .input-group{display:table;width:100%}
#login-auth-layout #regform .input-group-addon{display:table-cell;flex:initial;max-width:none;width:1%;white-space:nowrap;font-size:14px;text-align:center;border-radius:4px 0 0 4px}
#login-auth-layout #regform .input-group .form-control{display:table-cell;flex:initial;width:100%;height:42px;min-height:0;font-size:18px;border-radius:0 4px 4px 0}
#login-auth-layout #regform .loginlinks{display:none;text-align:right}
#login-auth-layout #regform .loginlinks a{display:inline;min-height:0}
#login-auth-layout #regform .registration-password-tools{display:block;margin:0;text-align:left}
#login-auth-layout #regform .registration-password-tools label{display:inline;min-height:0}
#login-auth-layout #regform .registration-password-tools input{margin-bottom:10px}
#login-auth-layout #regform #generatepasswordlf{padding:0;border:0;font-size:17px;line-height:25px;vertical-align:baseline}
#login-auth-layout #regform #registration-policy{padding:5px;text-align:left;font-size:17px;line-height:25px}
#login-auth-layout #regform #registration-policy small{font-size:85%}
#login-auth-layout #regform .registration-agreement{margin:20px 10px 0;font-size:10px;text-align:left}
#login-auth-layout #regform .loginbuttons{display:block;white-space:nowrap;text-align:right;margin:0 10px 10px}
@media(max-width:600px){#login-auth-layout #regform .loginlinks{display:block}#login-auth-layout #login-runtime .loginbuttons>.btn{flex:initial}}
/* Source auth.tpl keeps only its first tab indented and its own heading/flags. */
#login-auth-layout .nav-tabs>li{margin-left:0}
#login-auth-layout .nav-tabs>li:first-child{margin-left:20px}
#login-auth-layout .login-source-heading{line-height:18px;margin:0 0 10px;text-align:right;color:#333}
#login-auth-layout .login-source-languages{margin:20px 0 0;text-align:center;width:100%;overflow:hidden}
/* Match source Bootstrap/main focus on real controls, rather than adding a ring. */
#login-auth-layout #login-runtime input:focus-visible,#login-auth-layout #regform input:focus-visible{outline:0}
#login-auth-layout #login-runtime .btn:focus-visible,#login-auth-layout #regform .btn:focus-visible{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
#login-auth-layout #login-runtime a:not(.btn):focus-visible,#login-auth-layout #regform a:not(.btn):focus-visible{outline:0}

/* Source auth.tpl normal-state dimensions; fallback remains available on errors. */
#login-auth-layout #login-runtime:has(#login-form:not([hidden]))>.existing{display:none}
#login-auth-layout #login-runtime:has(#login-status[data-error=true])>.existing{display:block}
#login-auth-layout #login-runtime .scan-source-credentials{padding-bottom:30px}
#login-auth-layout .scan-source-agreement label{display:inline;font-weight:normal}
#login-auth-layout .scan-source-oauth{margin-top:-15px}

/* Original auth.tpl reset-password request tab, sharing its one state controller. */
body.scan-recovery-request #scan-recovery-request-frame{height:100vh;width:100%}
#scan-recovery-request-frame #recovery-runtime{padding:0;overflow-wrap:normal}
#scan-recovery-request-frame .recovery-source-heading{display:none}
#scan-recovery-request-frame #recovery-status[data-source-quiet=true]{display:none}
#scan-recovery-request-frame #recovery-status{margin:10px 20px;text-align:center}
#scan-recovery-request-frame #recovery-request-form{max-width:none}
#scan-recovery-request-frame .scan-source-credentials{padding-bottom:30px}
#scan-recovery-request-frame .scan-source-auth-actions{white-space:nowrap;width:100%;padding:0 30px 30px}
#scan-recovery-request-frame .scan-source-agreement label{display:inline;font-weight:normal}
#scan-recovery-request-frame .loginbuttons{text-align:right;white-space:nowrap}
#scan-recovery-request-frame .loginlinks>div{margin-top:10px}
#scan-recovery-request-frame .form-control{font-size:18px;height:42px}
#scan-recovery-request-frame .input-group .form-control{width:100%}
#scan-recovery-request-frame .nav-tabs>li:first-child{margin-left:20px}
#scan-recovery-request-frame .login-source-heading{margin:0 0 10px;text-align:right;line-height:18px;color:#333}
#scan-recovery-request-frame .login-source-languages{margin:20px 0 0;text-align:center;width:100%;overflow:hidden}
#scan-recovery-request-frame .recovery-actions:has(>button:not([hidden])){padding:10px 30px}
#scan-recovery-request-frame .recovery-actions:not(:has(>button:not([hidden]))){display:none}
/* Source common actions are outside the Bootstrap pane's 10px inner padding. */
#login-auth-layout #signin{padding-bottom:0}
#login-auth-layout #login-runtime .scan-source-auth-actions{margin-left:-10px;width:calc(100% + 20px)}
#login-auth-layout .scan-source-agreement label{display:inline-block}

#scan-recovery-request-frame #scan-recovery-request-slot{padding-bottom:0}
#scan-recovery-request-frame .scan-source-auth-actions{margin-left:-10px;width:calc(100% + 20px)}
#scan-recovery-request-frame .scan-source-agreement label{display:inline-block}

/* auth.tpl remains the layout owner when the common signup controller selects it. */
#login-auth-layout.registration-source-layout{height:100vh;min-height:0;display:block}
#login-auth-layout .registration-source-section{height:100%;min-height:0;display:block}
#login-auth-layout .registration-source-section::before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}
#login-auth-layout .registration-source-section>.tabs{margin:0;overflow:hidden}
#login-auth-layout #regform #registration-policy{line-height:normal}
#login-auth-layout #regform .registration-agreement{margin:20px 0 0}
#login-auth-layout #regform .loginbuttons{margin:0 0 10px}
#login-auth-layout #regform #messagereg[data-source-quiet=true]{display:none}
@media(max-width:1000px){#login-auth-layout .registration-source-section::before{display:block;height:0;margin-right:0}}
@media(max-width:420px){#login-auth-layout #regform .input-group{flex-direction:row}#login-auth-layout #regform .input-group .form-control{float:left;border-radius:0 4px 4px 0}#login-auth-layout #regform .input-group-addon{width:1%;border-radius:4px 0 0 4px}#login-auth-layout #regform .loginbuttons>.btn{flex:initial}}

.source-language-icon{margin-top:6px;color:#fff}

#scan-agreement-dialog.scan-agreement-modal-open{display:block}
#login-auth-layout #signup{padding-bottom:0}
#login-auth-layout #regform .registration-agreement{margin-top:30px}

/* Existing code-entry controls keep source Bootstrap sizing and focus. */
#login-email-layout #login-runtime .btn,#login-account-layout #login-runtime .btn{min-height:0;font-size:14px;line-height:1.42857143}
#login-email-layout #login-runtime input:focus-visible,#login-account-layout #login-runtime input:focus-visible{outline:0}
#login-email-layout #login-runtime .btn:focus-visible,#login-account-layout #login-runtime .btn:focus-visible{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
.scan-source-support{margin-top:10px}

/* Original font bytes; CSS moved into a project mount, so bind its new URLs. */
@font-face{font-family:'Glyphicons Regular';font-display:block;font-style:normal;font-weight:normal;src:url('/projects/scansanctions.com/fonts/glyphicons-regular.woff2') format('woff2')}
@font-face{font-family:'Glyphicons Halflings';src:url('/projects/scansanctions.com/fonts/glyphicons-halflings-regular.woff2') format('woff2')}
#scan-recovery-proof-frame .recovery-language-links select{max-width:100%;min-width:0}
#scan-recovery-request-frame .btn{font-size:14px;line-height:1.42857143}

/* Source templates/_preloader.tpl: unchanged navigation indicator styles. */
#qsne-page-loader {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  animation: qsne-fadeIn 0.3s ease-in-out;
}

.qsne-loader-content {
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.qsne-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #ccc;
  border-top: 5px solid #0078D7;
  border-radius: 50%;
  animation: qsne-spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes qsne-spin {
  to { transform: rotate(360deg); }
}

@keyframes qsne-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
