/* Sign in, change password, and the little "who am I" corner.
   Deliberately plain: this screen is the first thing a new member of staff
   sees on their first morning, and it should look like nothing to be afraid
   of. */

#authScreen{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:#0f2027;
  background-image:linear-gradient(160deg,#0f2027 0%,#15353f 55%,#1b4551 100%);
  padding:20px; overflow:auto;
}
#authScreen .authbox{
  width:100%; max-width:380px;
  background:#fff; border-radius:14px; padding:32px 30px 26px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:#15303a;
}
#authScreen .authmark{
  width:44px; height:44px; border-radius:10px; margin:0 0 18px;
  background:#f0a020; color:#fff; font-weight:800; font-size:24px;
  display:flex; align-items:center; justify-content:center;
}
#authScreen h1{ margin:0 0 4px; font-size:20px; font-weight:700; letter-spacing:-.01em; }
#authScreen .authsub{ margin:0 0 22px; color:#5d7480; font-size:13px; }
#authScreen label{ display:block; margin:0 0 14px; font-size:12px; font-weight:600; color:#41606c; }
#authScreen input{
  display:block; width:100%; margin-top:5px; padding:10px 12px;
  border:1px solid #cfdbe1; border-radius:8px; font-size:15px; color:#15303a;
  background:#fff; box-sizing:border-box;
}
#authScreen input:focus{ outline:none; border-color:#1f7a8c; box-shadow:0 0 0 3px rgba(31,122,140,.15); }
#authScreen .authbtn{
  width:100%; margin-top:6px; padding:11px 14px; border:0; border-radius:8px;
  background:#1f7a8c; color:#fff; font-size:15px; font-weight:600; cursor:pointer;
}
#authScreen .authbtn:hover{ background:#196877; }
#authScreen .authbtn:disabled{ background:#9bb8c0; cursor:default; }
#authScreen .authlink{
  width:100%; margin-top:8px; padding:9px; border:0; background:none;
  color:#5d7480; font-size:13px; cursor:pointer; text-decoration:underline;
}
#authScreen .autherr{
  background:#fdf0ed; border:1px solid #f3c9bf; color:#8c3520;
  padding:9px 11px; border-radius:8px; font-size:13px; margin:0 0 16px;
}
#authScreen .autherrline{ color:#b4381c; font-size:13px; min-height:18px; margin:2px 0 8px; }
#authScreen .authhint{ color:#5d7480; font-size:12px; margin:-6px 0 12px; }
#authScreen .authfoot{ margin:16px 0 0; color:#88a0aa; font-size:12px; text-align:center; }

/* ---- who is signed in -------------------------------------------------- */
.whobtn{
  display:flex; align-items:center; gap:8px; padding:4px 10px 4px 4px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18);
  border-radius:20px; cursor:pointer; color:#fff; font:inherit;
}
.whobtn:hover{ background:rgba(255,255,255,.18); }
.whoav{
  width:28px; height:28px; border-radius:50%; background:#f0a020; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700; letter-spacing:.02em;
}
.whotxt{ display:flex; flex-direction:column; line-height:1.15; text-align:left; }
.whotxt b{ font-size:12px; font-weight:600; }
.whotxt i{ font-size:10px; font-style:normal; opacity:.72; }

.whomenu{ position:fixed; inset:0; z-index:9000; background:rgba(9,24,30,.18); }
.whomenucard{
  position:absolute; top:58px; right:16px; width:250px;
  background:#fff; border-radius:11px; padding:6px;
  box-shadow:0 14px 44px rgba(0,0,0,.24);
  font:13px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:#15303a;
}
.whohead{ padding:10px 11px 9px; border-bottom:1px solid #eef2f4; margin-bottom:4px; }
.whohead b{ display:block; font-size:13px; }
.whohead span{ display:block; color:#7b939d; font-size:11px; margin-top:1px; }
.whoitem{
  display:block; width:100%; text-align:left; padding:9px 11px; border:0;
  background:none; border-radius:7px; cursor:pointer; font:inherit; color:#15303a;
}
.whoitem:hover{ background:#f2f6f8; }
.whoitem.danger{ color:#b4381c; }
.whoitem.danger:hover{ background:#fdf0ed; }
.whosep{ height:1px; background:#eef2f4; margin:4px 0; }

/* Something this account is not allowed to do. Shown, not hidden, so nobody
   wonders where the button went - and so they know who to ask. */
.notallowed{ opacity:.4 !important; cursor:not-allowed !important; }

/* ---- people who can sign in, and what has been changed ------------------ */
.adminpane{ position:fixed; inset:0; z-index:9100; background:rgba(9,24,30,.45); display:flex; align-items:center; justify-content:center; padding:24px; }
.adminbox{
  background:#fff; border-radius:12px; width:100%; max-width:820px; max-height:88vh;
  display:flex; flex-direction:column; overflow:hidden;
  font:13px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:#15303a;
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}
.adminhead{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #eef2f4; }
.adminhead h2{ margin:0; font-size:17px; }
.adminbody{ padding:18px 20px; overflow:auto; }
.adminfoot{ padding:12px 20px; border-top:1px solid #eef2f4; display:flex; gap:8px; justify-content:flex-end; }
.utable{ width:100%; border-collapse:collapse; }
.utable th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:#7b939d; padding:6px 8px; border-bottom:1px solid #eef2f4; }
.utable td{ padding:9px 8px; border-bottom:1px solid #f4f7f8; vertical-align:middle; }
.utable tr.off td{ opacity:.45; }
.rolepill{ display:inline-block; padding:2px 9px; border-radius:11px; font-size:11px; font-weight:600; }
.rolepill.admin{ background:#fdeede; color:#8a5312; }
.rolepill.manager{ background:#e3f0f3; color:#1f6473; }
.rolepill.warehouse{ background:#eef1f3; color:#4d6570; }
.pwshow{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:15px; background:#f4f8f9; border:1px dashed #b9ccd3; padding:9px 12px; border-radius:8px; display:inline-block; margin:4px 0; }
