/* Sign-in screen. Its styles were missing from the build, so the page locked without showing the form. */
html.dg-locked #dgGate { display: flex !important; }
html.dg-locked .app { visibility: hidden; }
#dgGate { position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(circle at 20% 10%, #1f2a37 0, #0f1720 60%); overflow-y: auto; font-family: inherit; }
#dgGate .dg-shell { display: grid; grid-template-columns: 1fr 1fr; width: min(920px, 100%); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px #0007; }
#dgGate .dg-brand { background: linear-gradient(160deg, #E36F1E, #b4500f); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
#dgGate .dg-logo { background: #fff; border-radius: 14px; padding: 12px 16px; width: fit-content; }
#dgGate .dg-logo img { height: 34px; display: block; }
#dgGate .dg-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; opacity: .9; }
#dgGate .dg-brand-title { font-size: 30px; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
#dgGate .dg-brand-sub { font-size: 14px; opacity: .92; line-height: 1.5; }
#dgGate .dg-brand-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.8; opacity: .95; }
#dgGate .dg-brand-foot { margin-top: auto; font-size: 12px; opacity: .8; }
#dgGate .dg-panel { padding: 40px 36px; color: #1f2933; }
#dgGate .dg-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #b4500f; background: #fdf0e6; border: 1px solid #f6d3b8; padding: 4px 10px; border-radius: 99px; }
#dgGate .dg-title { font-size: 24px; margin: 14px 0 6px; letter-spacing: -.02em; }
#dgGate .dg-sub { font-size: 13.5px; color: #5b6770; line-height: 1.55; margin: 0 0 18px; }
#dgGate .dg-field { margin-bottom: 14px; }
#dgGate .dg-label { display: block; font-size: 12.5px; font-weight: 650; margin-bottom: 6px; color: #3d4852; }
#dgGate .dg-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #cfd6dc; border-radius: 10px; }
#dgGate .dg-input:focus { outline: 3px solid #f3b27c; border-color: #E36F1E; }
#dgGate .dg-passwrap { position: relative; }
#dgGate .dg-passwrap .dg-input { padding-right: 64px; }
#dgGate .dg-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #b4500f; font-weight: 650; cursor: pointer; padding: 6px 8px; }
#dgGate .dg-err { min-height: 18px; color: #b3261e; font-size: 13px; margin: 4px 0 8px; }
#dgGate .dg-btn { width: 100%; border: 0; border-radius: 10px; padding: 12px; font: inherit; font-weight: 700; font-size: 15px; color: #fff; background: #E36F1E; cursor: pointer; }
#dgGate .dg-btn:hover { background: #c95e12; }
#dgGate .dg-btn:disabled { opacity: .6; cursor: wait; }
#dgGate .dg-help { font-size: 12.5px; color: #5b6770; margin-top: 16px; line-height: 1.5; }
#dgGate .dg-link { border: 0; background: none; padding: 0; margin-top: 10px; color: #b4500f; text-decoration: underline; font: inherit; font-size: 12.5px; cursor: pointer; }
@media (max-width: 760px) { #dgGate .dg-shell { grid-template-columns: 1fr; } #dgGate .dg-brand { padding: 26px 24px; } #dgGate .dg-brand-list, #dgGate .dg-brand-foot { display: none; } #dgGate .dg-panel { padding: 26px 24px; } }

/* On computers the sidebar is always visible, so the menu button did nothing. Let it hide/show the sidebar. */
@media (min-width: 961px) { .sidebar.open { display: none; } }

/* Change-password button and form */
.pw-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #e6e1d8; border-left: 4px solid #E36F1E; border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.pw-panel h3 { margin: 0 0 3px; font-size: 16px; } .pw-panel p { margin: 0; font-size: 13.5px; color: #5b6770; }
.pw-panel-btn { border: 0; border-radius: 10px; padding: 10px 16px; background: #E36F1E; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.pw-panel-btn:hover { background: #c95e12; }
.pw-overlay { position: fixed; inset: 0; z-index: 9000; background: #0f172099; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pw-overlay[hidden] { display: none; }
.pw-card { background: #fff; color: #1f2933; width: min(420px, 100%); border-radius: 16px; padding: 26px 24px; box-shadow: 0 24px 70px #0006; }
.pw-card h2 { margin: 0 0 6px; font-size: 20px; }
.pw-sub { margin: 0 0 16px; font-size: 13.5px; color: #5b6770; }
.pw-card label { display: block; font-size: 13px; font-weight: 600; color: #3d4852; margin-bottom: 12px; }
.pw-card input[type=password], .pw-card input[type=text] { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 10px 11px; font: inherit; font-size: 15px; border: 1px solid #cfd6dc; border-radius: 9px; }
.pw-card input:focus { outline: 3px solid #f3b27c; border-color: #E36F1E; }
.pw-show { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.pw-msg { min-height: 20px; font-size: 13px; color: #b3261e; margin: 4px 0 10px; }
.pw-msg.ok { color: #2e7d4f; }
.pw-actions { display: flex; justify-content: flex-end; gap: 10px; }
.pw-actions button { border-radius: 9px; padding: 10px 16px; font: inherit; font-weight: 650; cursor: pointer; }
.pw-cancel { border: 1px solid #cfd6dc; background: #fff; color: #1f2933; }
.pw-save { border: 0; background: #E36F1E; color: #fff; }
.pw-save:disabled { opacity: .6; cursor: wait; }
