/* ============================================================
   TJOS Editorial Manager — em.css
   Faithful recreation of the Editorial Manager® UI aesthetic
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --em-blue-dk:  #1a3a5c;
  --em-blue:     #1f5276;
  --em-blue-md:  #2e6da4;
  --em-blue-lt:  #4a90c4;
  --em-blue-bg:  #e8f1f8;
  --em-navy:     #0d2a42;
  --em-accent:   #c0392b;
  --em-gold:     #d4a017;
  --em-panel-bg: #2e5f8a;
  --em-border:   #c8d8e8;
  --em-text:     #1a1a2e;
  --em-text-lt:  #4a5568;
  --em-link:     #1a5276;
  --em-link-hov: #c0392b;
  --em-bg:       #f2f6fa;
  --em-white:    #ffffff;
  --ff-sans:     'Source Sans 3', 'Arial', sans-serif;
  --ff-serif:    'Source Serif 4', 'Georgia', serif;
  --radius:      3px;
  --shadow:      0 2px 8px rgba(0,0,0,.12);
}

html { font-size: 14px; }
body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--em-text);
  background: var(--em-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--em-link); text-decoration: none; }
a:hover { color: var(--em-link-hov); text-decoration: underline; }

/* ── Top bar ──────────────────────────────────────────────── */
.em-topbar {
  background: var(--em-navy);
  color: #fff;
  font-size: .85rem;
}
.em-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.em-topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
}
.em-logo-icon {
  background: var(--em-blue-md);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: .02em;
}
.em-logo-text { color: #dde8f5; }
.em-topbar-links { display: flex; align-items: center; gap: 0; }
.em-topbar-links a { color: #b8cfe6; font-size: .82rem; }
.em-topbar-links a:hover { color: #fff; text-decoration: none; }
.em-sep { color: #4a6e8a; margin: 0 8px; }

/* ── Nav bar ──────────────────────────────────────────────── */
.em-nav {
  background: var(--em-blue-bg);
  border-bottom: 1px solid var(--em-border);
}
.em-nav ul {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  list-style: none;
  gap: 0;
}
.em-nav ul li { position: relative; }
.em-nav ul li a {
  display: block;
  padding: 9px 14px;
  color: var(--em-blue-dk);
  font-size: .88rem;
  font-weight: 400;
  border-right: 1px solid var(--em-border);
}
.em-nav ul li:first-child a { border-left: 1px solid var(--em-border); }
.em-nav ul li a:hover,
.em-nav ul li a.active {
  background: var(--em-blue-md);
  color: #fff;
  text-decoration: none;
}
.nav-caret { font-size: .7rem; }

/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--em-border);
  box-shadow: var(--shadow);
  z-index: 100;
  min-width: 180px;
  flex-direction: column;
}
.has-dropdown.open .dropdown { display: flex; }
.has-dropdown .dropdown li a {
  padding: 8px 14px;
  color: var(--em-link);
  border: none;
  font-size: .86rem;
  white-space: nowrap;
}
.has-dropdown .dropdown li a:hover { background: var(--em-blue-bg); }

/* ── Main ─────────────────────────────────────────────────── */
.em-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  flex: 1;
  width: 100%;
}

/* ── Welcome block ────────────────────────────────────────── */
.em-welcome-block {
  background: var(--em-blue-dk);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.em-welcome-block h2 {
  font-size: .95rem;
  font-weight: 400;
  color: #b8d0e8;
  margin-bottom: 4px;
}
.em-welcome-block h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ── Flash messages ───────────────────────────────────────── */
.em-flash {
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .9rem;
}
.em-flash--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.em-flash--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.em-flash--info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Login area ───────────────────────────────────────────── */
.em-login-area {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 24px;
}
.em-cover-col { flex: 0 0 auto; }
.em-cover {
  width: 110px;
  border: 1px solid var(--em-border);
  box-shadow: var(--shadow);
  display: block;
}
.em-login-box { flex: 0 0 auto; min-width: 420px; max-width: 520px; }

/* Fieldset */
.em-fieldset {
  border: 1px solid #8fa8c4;
  border-radius: var(--radius);
  padding: 0;
  background: #fff;
}
.em-fieldset legend {
  font-size: .9rem;
  font-weight: 600;
  color: var(--em-blue-dk);
  padding: 0 8px;
  margin-left: 10px;
}
.em-login-box-inner { padding: 16px 20px; }
.em-insert-special { text-align: right; font-size: .8rem; margin-bottom: 12px; }
.em-error-msg {
  background: #fde8e8;
  color: var(--em-accent);
  border: 1px solid #f5b0b0;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: .85rem;
  margin-bottom: 12px;
}

/* Form rows */
.em-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.em-form-row label {
  width: 90px;
  text-align: right;
  font-size: .88rem;
  color: var(--em-text);
  flex-shrink: 0;
}
.em-form-row input[type="text"],
.em-form-row input[type="email"],
.em-form-row input[type="password"] {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #b0c4d8;
  border-radius: 2px;
  font-size: .88rem;
  font-family: var(--ff-sans);
  color: var(--em-text);
  background: #fff;
  outline: none;
}
.em-form-row input:focus { border-color: var(--em-blue-md); box-shadow: 0 0 0 2px rgba(46,109,164,.15); }

/* Login buttons */
.em-login-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 8px;
}
.em-btn {
  padding: 5px 14px;
  font-size: .82rem;
  font-family: var(--ff-sans);
  border: 1px solid;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  transition: all .15s;
}
.em-btn--primary {
  background: linear-gradient(to bottom, #e8f2fa, #c8ddef);
  border-color: #8aa8c8;
  color: var(--em-blue-dk);
}
.em-btn--primary:hover {
  background: linear-gradient(to bottom, #d4e8f8, #a8c8e8);
}
.em-btn--action {
  background: linear-gradient(to bottom, #2e6da4, #1a4f7a);
  border-color: #1a3a5c;
  color: #fff;
}
.em-btn--action:hover { background: linear-gradient(to bottom, #3a7dba, #1f5f8a); }
.em-btn--danger {
  background: #c0392b;
  border-color: #922b21;
  color: #fff;
}

/* Extra links */
.em-extra-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 10px 0;
  font-size: .82rem;
}
.em-extra-links a { color: var(--em-link); }

/* Divider */
.em-divider-red {
  border: none;
  border-top: 2px solid var(--em-accent);
  margin: 10px 0;
  opacity: .6;
}

.em-powered {
  text-align: center;
  font-size: .78rem;
  color: var(--em-text-lt);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.em-sciendo-logo { height: 18px; vertical-align: middle; }
.em-copyright {
  font-size: .73rem;
  color: var(--em-text-lt);
  text-align: center;
  padding: 10px;
  border-top: 1px solid var(--em-border);
}
.em-copyright a { color: var(--em-link); }

/* ── Bottom panels ────────────────────────────────────────── */
.em-panels {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
}
.em-panel {
  flex: 1;
  background: var(--em-panel-bg);
  color: #fff;
  text-align: center;
  padding: 16px 12px;
  text-decoration: none;
  transition: background .2s;
}
.em-panel:hover { background: var(--em-blue-md); color: #fff; text-decoration: none; }
.em-panel-title { font-size: .88rem; font-weight: 600; line-height: 1.4; }

/* ── Help section ─────────────────────────────────────────── */
.em-help-section {
  font-size: .82rem;
  color: var(--em-text);
  line-height: 1.6;
}
.em-help-section p { margin-bottom: 10px; }
.em-help-section strong { color: var(--em-blue-dk); }
.em-help-section a { color: var(--em-link); }

/* ── Footer ───────────────────────────────────────────────── */
.em-footer {
  background: var(--em-navy);
  color: #8aa8c8;
  text-align: center;
  padding: 12px 16px;
  font-size: .78rem;
  margin-top: auto;
}
.em-footer p { margin-bottom: 4px; }
.em-footer a { color: #8aa8c8; }
.em-footer a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════════ */
.em-dashboard-body {
  background: #f0f4f8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Dashboard top bar ────────────────────────────────────── */
.em-db-topbar {
  background: var(--em-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 42px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.em-db-topbar-left { display: flex; align-items: center; gap: 12px; }
.em-db-logo { display: flex; align-items: center; gap: 8px; }
.em-db-journal-name { font-size: .95rem; font-weight: 600; color: #dde8f5; }
.em-db-topbar-right { display: flex; align-items: center; gap: 12px; font-size: .82rem; }
.em-db-user-link { color: #b0c8e0; }
.em-db-user-link:hover { color: #fff; }
.em-db-sep { color: #3a5a7a; }
.em-db-logout { color: #b0c8e0; font-size: .82rem; }
.em-db-logout:hover { color: #fff; }

/* ── Dashboard nav ────────────────────────────────────────── */
.em-db-nav {
  background: var(--em-blue-bg);
  border-bottom: 1px solid var(--em-border);
}
.em-db-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.em-db-nav-items { display: flex; list-style: none; }
.em-db-nav-items li { position: relative; }
.em-db-nav-items li a {
  display: block;
  padding: 8px 14px;
  color: var(--em-blue-dk);
  font-size: .86rem;
  border-right: 1px solid var(--em-border);
}
.em-db-nav-items li:first-child a { border-left: 1px solid var(--em-border); }
.em-db-nav-items li a:hover,
.em-db-nav-items li a.active {
  background: var(--em-blue-md);
  color: #fff;
  text-decoration: none;
}
.em-db-search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.em-db-search input {
  padding: 4px 8px;
  border: 1px solid var(--em-border);
  border-radius: 2px;
  font-size: .82rem;
  width: 200px;
}
.em-db-search button {
  background: var(--em-blue-md);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-size: .82rem;
}

/* ── Dashboard body ───────────────────────────────────────── */
.em-db-body {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  gap: 16px;
  width: 100%;
  flex: 1;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.em-db-sidebar {
  width: 220px;
  flex-shrink: 0;
}
.em-db-sidebar-section { margin-bottom: 16px; }
.em-db-sidebar-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--em-text-lt);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 0;
  border-bottom: 1px solid var(--em-border);
  margin-bottom: 6px;
}
.em-db-sidebar-link {
  display: block;
  font-size: .84rem;
  color: var(--em-link);
  padding: 3px 0;
  line-height: 1.4;
}
.em-db-sidebar-link:hover { color: var(--em-link-hov); text-decoration: underline; }

/* ── Content area ─────────────────────────────────────────── */
.em-db-content { flex: 1; min-width: 0; }
.em-db-content-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--em-blue-dk);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--em-blue-md);
}

/* ── Cards / sections ─────────────────────────────────────── */
.em-card {
  background: #fff;
  border: 1px solid var(--em-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.em-card-header {
  background: var(--em-blue-dk);
  color: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.em-card-header h3 { font-size: .9rem; font-weight: 600; }
.em-card-toggle { font-size: .75rem; color: #9ab8d0; }
.em-card-body { padding: 0; }

/* ── To-Do list items ─────────────────────────────────────── */
.em-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: .86rem;
}
.em-todo-item:last-child { border-bottom: none; }
.em-todo-item:hover { background: var(--em-blue-bg); }
.em-todo-link { color: var(--em-link); flex: 1; }
.em-todo-link:hover { color: var(--em-link-hov); text-decoration: underline; }
.em-todo-count {
  font-size: .8rem;
  color: var(--em-text-lt);
  background: #edf2f7;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
}
.em-todo-count.has-items {
  background: var(--em-blue-md);
  color: #fff;
}
.em-todo-indent { padding-left: 28px; background: #fafcff; }

/* ── Author main menu ─────────────────────────────────────── */
.em-author-section { margin-bottom: 20px; }
.em-author-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--em-blue-dk);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--em-border);
}
.em-author-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .88rem;
  border-bottom: 1px dotted #dde8f5;
}
.em-author-item:last-child { border-bottom: none; }
.em-author-link { color: var(--em-link); }
.em-author-link:hover { color: var(--em-link-hov); text-decoration: underline; }

/* ── Progress stepper ─────────────────────────────────────── */
.em-stepper {
  display: flex;
  align-items: flex-start;
  padding: 16px 0;
  overflow-x: auto;
}
.em-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  position: relative;
}
.em-step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  background: #c8d8e8;
}
.em-step:first-child::before { display: none; }
.em-step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #c8d8e8;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #8aa8c8;
  z-index: 1;
  position: relative;
}
.em-step.done .em-step-circle {
  background: var(--em-blue-md);
  border-color: var(--em-blue-md);
  color: #fff;
}
.em-step.active .em-step-circle {
  background: var(--em-blue-dk);
  border-color: var(--em-blue-dk);
  color: #fff;
}
.em-step-label { font-size: .7rem; text-align: center; margin-top: 4px; color: var(--em-text-lt); line-height: 1.3; }
.em-step.active .em-step-label { color: var(--em-blue-dk); font-weight: 600; }

/* ── Tables ───────────────────────────────────────────────── */
.em-table-wrap { overflow-x: auto; }
.em-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.em-table thead tr { background: var(--em-blue-dk); color: #fff; }
.em-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.em-table th a { color: #b8d0e8; }
.em-table td { padding: 7px 10px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
.em-table tbody tr:nth-child(even) { background: #f8fbff; }
.em-table tbody tr:hover { background: #eef4fb; }
.em-table .actions { white-space: nowrap; }
.em-table .action-link {
  display: block;
  font-size: .77rem;
  color: var(--em-link);
  line-height: 1.6;
}
.em-table .action-link:hover { color: var(--em-link-hov); text-decoration: underline; }
.em-table .badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 600;
}
.badge-submitted    { background: #dbeafe; color: #1e40af; }
.badge-under_review { background: #fef3c7; color: #92400e; }
.badge-accepted     { background: #d1fae5; color: #065f46; }
.badge-rejected     { background: #fee2e2; color: #991b1b; }
.badge-revision_required { background: #ede9fe; color: #5b21b6; }
.badge-published    { background: #d1fae5; color: #065f46; }

/* ── Upload / form area ───────────────────────────────────── */
.em-upload-area {
  border: 2px dashed var(--em-border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  background: #f8fbff;
}
.em-upload-area.dragover { border-color: var(--em-blue-md); background: #e8f1f8; }
.em-upload-icon { font-size: 2.5rem; color: #8aa8c8; margin-bottom: 8px; }
.em-browse-btn {
  display: inline-block;
  padding: 6px 18px;
  background: var(--em-blue-md);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .86rem;
  font-family: var(--ff-sans);
  margin-right: 10px;
}
.em-upload-or { font-size: .85rem; color: var(--em-text-lt); margin: 0 8px; }
.em-upload-drop { font-size: .8rem; color: var(--em-text-lt); }

/* ── Form elements general ────────────────────────────────── */
.em-label { display: block; font-size: .84rem; font-weight: 600; color: var(--em-text); margin-bottom: 4px; }
.em-input, .em-select, .em-textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #b0c4d8;
  border-radius: 2px;
  font-size: .88rem;
  font-family: var(--ff-sans);
  color: var(--em-text);
  background: #fff;
}
.em-input:focus, .em-select:focus, .em-textarea:focus {
  outline: none;
  border-color: var(--em-blue-md);
  box-shadow: 0 0 0 2px rgba(46,109,164,.12);
}
.em-textarea { min-height: 100px; resize: vertical; }
.em-form-group { margin-bottom: 14px; }
.em-btn-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; }

/* ── Pagination ───────────────────────────────────────────── */
.em-pagination {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 12px 0;
  justify-content: center;
}
.em-page-link {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--em-border);
  border-radius: 2px;
  font-size: .82rem;
  color: var(--em-link);
  background: #fff;
}
.em-page-link:hover { background: var(--em-blue-bg); text-decoration: none; }
.em-page-link.current { background: var(--em-blue-md); color: #fff; border-color: var(--em-blue-md); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.em-breadcrumb {
  font-size: .8rem;
  color: var(--em-text-lt);
  margin-bottom: 12px;
}
.em-breadcrumb a { color: var(--em-link); }
.em-breadcrumb span { margin: 0 5px; }

/* ── Stats row ────────────────────────────────────────────── */
.em-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.em-stat {
  background: #fff;
  border: 1px solid var(--em-border);
  border-top: 3px solid var(--em-blue-md);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}
.em-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--em-blue-dk); }
.em-stat-label { font-size: .76rem; color: var(--em-text-lt); margin-top: 2px; }

/* ── Alert / info box ─────────────────────────────────────── */
.em-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .86rem;
  margin-bottom: 14px;
  border-left: 4px solid;
}
.em-alert--info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.em-alert--success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.em-alert--warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.em-alert--danger  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .em-login-area { flex-direction: column; align-items: center; }
  .em-login-box { min-width: 0; width: 100%; }
  .em-cover { width: 80px; }
  .em-panels { flex-direction: column; }
  .em-db-body { flex-direction: column; }
  .em-db-sidebar { width: 100%; }
  .em-db-nav-items { display: none; }
  .em-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Browser autofill override ────────────────────────────── */
/* Prevents Chrome/Edge autofill yellow background hiding text */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--em-text) !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Role switcher dropdown (topbar) ────────────────────── */
.role-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.role-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #3a5a78;
  border-radius: 3px;
  color: #b8cfe6;
  font-size: .78rem;
  font-family: var(--ff-sans);
  padding: 3px 8px 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
  line-height: 1.4;
}
.role-switcher-btn:hover {
  border-color: #5a9fd4;
  color: #fff;
}
.role-switcher-btn .rs-caret {
  font-size: .6rem;
  opacity: .7;
  margin-left: 2px;
}
.role-switcher-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #c8d8e8;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 999;
  overflow: hidden;
}
.role-switcher.open .role-switcher-dropdown {
  display: block;
}
.role-switcher-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 8px 14px;
  font-size: .84rem;
  font-family: var(--ff-sans);
  color: #1e3a52;
  cursor: pointer;
  transition: background .1s;
}
.role-switcher-dropdown button:hover {
  background: #f0f6ff;
}
.role-switcher-dropdown button.rs-active {
  background: #1e5a9a;
  color: #fff;
  font-weight: 600;
  cursor: default;
}
