/* App styles that were inline in the templates (moved out so the CSP needs no inline <style>, phase 5). */
html, body, header, .view { min-height: 100%; }
body { font-family: "Sarabun", sans-serif; background-color: #fff; }
.lang-switch { position: absolute; top: .75rem; right: 1rem; z-index: 10; }
/* Logged in, the switch sits in the navbar: next to the toggler below 1200px, after Logout from 1200px. */
.navbar .lang-switch { position: static; margin-left: auto; padding: 0 .5rem; color: #fff; }
.navbar .lang-switch a { color: rgba(255, 255, 255, .75); }
.navbar .lang-switch a:hover, .navbar .lang-switch a:focus { color: #fff; }
@media (min-width: 1200px) { .navbar .lang-switch { order: 1; margin-left: .5rem; } }
/* The Logout button (a POST form) looks like the other nav links, not like an MDB .btn. */
.navbar .nav-item .btn.nav-link { padding-top: .5rem; padding-bottom: .5rem; font-size: 1rem; font-weight: 300; line-height: 1.5; text-transform: none; }
.consent-card { max-width: 792px; }
/* Flash / withdraw-confirmation modal (partials/flash.html): MDB pins the frame to the bottom only from 992px;
   below that it fell back to the top of the screen. Centre it vertically there (Bootstrap's modal-dialog-centered). */
@media (max-width: 991.98px) {
  .modal-dialog.modal-frame { display: flex; align-items: center; min-height: calc(100% - 1rem); }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .modal-dialog.modal-frame { min-height: calc(100% - 3.5rem); }
}
/* Balance cards (old views/dashboard/index_v.php inline styles). */
.balance-total { font-size: 3em; color: #06038D; }
.balance-total-label { font-size: 2em; color: #a3abad; }
.balance-source { font-size: 3em; color: #005eb8; }
.balance-source-label { font-size: 1.5em; color: #a3abad; }
/* Old look: the MDB Pro-only styles our pages used, rebuilt on MDB Free 4.20.0 (plan §12n). Values
   from the old public/mdbpro4191/css/mdb.css (navy-blue-skin, btn-rounded, md-tabs, tabs-grey). */
.navy-blue-skin .btn-primary { color: #fff; background-color: #40c6c6 !important; }
.navy-blue-skin .btn-primary:not([disabled]):not(.disabled):active,
.navy-blue-skin .btn-primary:not([disabled]):not(.disabled).active { background-color: #257b7b !important; }
.navy-blue-skin .btn-secondary { color: #fff; background-color: #7e51b4 !important; }
.navy-blue-skin input[type="text"]:focus:not([readonly]),
.navy-blue-skin input[type="email"]:focus:not([readonly]),
.navy-blue-skin input[type="password"]:focus:not([readonly]) { border-color: #40c6c6; box-shadow: 0 1px 0 0 #40c6c6; }
.navy-blue-skin input[type="text"]:focus:not([readonly]) + label,
.navy-blue-skin input[type="email"]:focus:not([readonly]) + label,
.navy-blue-skin input[type="password"]:focus:not([readonly]) + label,
.navy-blue-skin .md-form .prefix.active { color: #40c6c6; }
.btn-rounded { border-radius: 10em; }
.md-tabs {
  position: relative; z-index: 1; padding: .7rem; margin: 0 1rem -20px; border: 0; border-radius: .25rem;
  background-color: #2bbbad; box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
}
.md-tabs .nav-item + .nav-item { margin-left: 0; }
.md-tabs .nav-link { color: #fff; border: 0; transition: all .4s; }
.md-tabs .nav-link.active { color: #fff; background-color: rgba(0, 0, 0, .2); border-radius: .25rem; transition: all 1s; }
.md-tabs + .tab-content { padding: 1rem; }
.tabs-grey { background-color: #616161 !important; }
/* Admin Dashboard Pack addition in the old mdb.css: table cells darker and regular weight. */
.table td { font-weight: 400; color: #4f4f4f; }
/* MDB Free sets strong to 500; the old Pro CSS kept Bootstrap's relative "bolder". */
strong { font-weight: bolder; }
/* MDB Free cuts long floating labels with an ellipsis; the old CSS wrapped them, so the whole hint shows
   (e.g. the TH new-password label at 375px). */
.md-form > label { white-space: normal; overflow: visible; }
