body {
  background-color: #f8f8f8;
}
ul { padding-left: 0; list-style: none; }
#wrapper {
  width: 100%;
}
#page-wrapper {
  padding: 50px 15px 0;
  min-height: 568px;
  background-color: white;
}
.navbar-default {
  background-color: #5046e5;
}
nav.navbar-default .navbar-header .navbar-brand {
    color: #fff;
}
nav.navbar.navbar-default.navbar-static-top {
  position: fixed;
  width: 100%;
}
.navbar { border-bottom: none; }
.navbar-default button {
  color: #fff;
}
.navbar-top-links {
  margin-right: 0;
}
.navbar-top-links li {
  display: inline-block;
}
.navbar-top-links li:last-child {
  margin-right: 15px;
}
.navbar-top-links li a {
  padding: 15px;
  min-height: 50px;
}
.navbar-top-links .dropdown-menu li {
  display: block;
}
.navbar-top-links .dropdown-menu li:last-child {
  margin-right: 0;
}
.navbar-top-links .dropdown-menu li a {
  padding: 3px 20px;
  min-height: 0;
}
.navbar-top-links .dropdown-menu li a div {
  white-space: normal;
}
.navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover { background-color: inherit; }
.navbar-default .navbar-toggle .icon-bar { background-color: #fff; }
.dropdown-toggle i { color: #fff; }
.dropdown-toggle:hover i, .dropdown-toggle:focus i { color: #5046e5; }
.sidebar .sidebar-nav.navbar-collapse {
  padding-left: 0;
  padding-right: 0;
}
.sidebar .sidebar-search {
  padding: 15px;
}
.sidebar ul li {
  border-bottom: 1px solid #e7e7e7;
}
.sidebar ul li a {
  background-color: #f8f8f8;
}
.sidebar ul li a.active {
  background-color: #eeeeee;
}
.sidebar .arrow {
  float: right;
}
.sidebar .fa.arrow:before {
  content: "\f104";
}
.sidebar .active > a > .fa.arrow:before {
  content: "\f107";
}
.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
  border-bottom: none !important;
}
.sidebar .nav-second-level li a {
  padding-left: 37px;
}
.sidebar .nav-third-level li a {
  padding-left: 52px;
}
div.modal { text-align: left !important; }
.modal-content { overflow: hidden; }
.btn-primary, .modal-header {
  color: white;
  background-color: #5046e5;
}

.panel-green {
  border-color: #5cb85c;
}
.panel-green > .panel-heading {
  border-color: #5cb85c;
  color: white;
  background-color: #5cb85c;
}
.panel-green > a {
  color: #5cb85c;
}
.panel-green > a:hover {
  color: #3d8b3d;
}
.panel-red {
  border-color: #d9534f;
}
.panel-red > .panel-heading {
  border-color: #d9534f;
  color: white;
  background-color: #d9534f;
}
.panel-red > a {
  color: #d9534f;
}
.panel-red > a:hover {
  color: #b52b27;
}
.panel-yellow {
  border-color: #f0ad4e;
}
.panel-yellow > .panel-heading {
  border-color: #f0ad4e;
  color: white;
  background-color: #f0ad4e;
}
.panel-yellow > a {
  color: #f0ad4e;
}
.panel-yellow > a:hover {
  color: #df8a13;
}
.login-panel {
    margin-top: 25%;
}
.login-panel.panel-default>.panel-heading {
    color: #fff;
    background-color: #5046e5;
}
/* Custom CSS */
.modal-header .modal-title, .modal-header button { color: #fff;  }
.modal-header button.close { opacity: .8;  }
.col-centered {
    float: none;
    margin: 0 auto;
    text-align: center;
}
.panel {
  box-shadow: 0 2px 3px rgba(0,0,0,.06);
  border-color: #eee;
}
.page-header {
    margin: 20px 0 10px;
    border-bottom: none;
}
.panel-footer {
    border-top: 1px solid transparent;
}
.navbar-toggle-lg,
.nav.navbar-top-links.navbar-right {display: none;}

.table th, .table td {
  vertical-align: middle !important;
}

.table tr .btn {
  padding: 6px 12px;
}
.btn.add-btn {
  margin: 20px 0 15px;
}

table td p {
  font-size: 12px;
  font-weight: bold;
  padding: 0;
  margin: 0;
  margin-bottom: 4px;
}
table td a {
  color: #fff;
}

table td .view-review {
  cursor: pointer;
}

table td button i.fa {font-size: 18px;}

label.error { color: #dd0931; }

table span.label, table a.label { font-size: 14px; }
.authors .author.row {margin-bottom: 15px;}
.authors .author .addAuthor, .authors .author:first-child .removeAuthor {display: none;}
.authors .author:last-child .addAuthor {display: inline-block;}

button .badge.badge-success { background-color: #5bb85b; }
.review-flag {
  font-size: 18px;
}
.review-flag.green { color: #5cb85c; }
.review-flag.red { color: #d9534f;}

.paper-info { margin-bottom: 20px; }
.paper-info i.fa { font-size: 22px; }
.paper-info img.poster { max-height: 300px; }

textarea {resize: vertical;}

textarea {resize: vertical;}
.email-tags p span { cursor: pointer; font-size: 14px; user-select: none; }
.email-tags p {margin: 0; padding: 3px 0;}
.email-tags p span:hover { background-color: #888; }
.email-tags p span:active {
  -moz-box-shadow:    inset 0 0 10px #444;
  -webkit-box-shadow: inset 0 0 10px #444;
  box-shadow:         inset 0 0 10px #444;
}
.email-text {white-space: pre-wrap; min-height: 200px; }
/*.email-tags.sticky {
  position: fixed;
  top: 0;
  width: 100%
}*/
@media(min-width: 768px) {
  #email-settings .panel-body {
    overflow: visible;
  }
  .email-templates-row:before,
  .email-templates-row:after {
    content: none;
  }
  .email-templates-row {
    display: flex;
    flex-wrap: wrap;
  }
  .email-tags.sticky {
    position: sticky;
    top: 64px;
  }
}
@media(min-width: 992px) {
  .deadline-fields-row:before,
  .deadline-fields-row:after,
  .template-files-row:before,
  .template-files-row:after,
  .mail-template-fields-row:before,
  .mail-template-fields-row:after {
    content: none;
  }
  .deadline-fields-row,
  .template-files-row {
    display: flex;
    flex-wrap: wrap;
  }
  .deadline-fields-row > [class*="col-"],
  .template-files-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }
  .deadline-fields-row .form-control {
    margin-top: auto;
  }
  .template-files-row .template-upload-field {
    margin-top: auto;
  }
  .mail-template-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    column-gap: 30px;
  }
  .mail-template-fields-row .email-template,
  .mail-template-fields-row .email-template > .form-group {
    display: contents;
  }
}
.tags-wrapper {
  background: white;
  padding: 8px;
  border-radius: 8px;
}
/* Media Query */
@media(max-width: 480px) {
  .email-tags:before {
    float: right;
    display: block;
    content: "\f292";
    font: normal normal normal 14px/1 FontAwesome;
    padding: 8px;
    margin-top: -30px;
    margin-right: 10px;
    background: #5046e5;
    color: #fff;
    width: 30px;
    text-align: center;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
  }
  .email-tags {
    background-color: #f5f5f5;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 3px rgba(0,0,0,.06);
    transition: max-height 0.3s, bottom .3s;
    width: 100%;
    max-height: 0;
    z-index: 9;
  }
  .tags-wrapper {
    overflow-x: auto;
    min-height: 140px;
    max-height: fit-content;
  }
  .email-tags p {
    margin: 0;
    padding: 3px;
    display: inline-block;
    margin-right: -4px;
  }
  .email-tags p span {
      font-size: 15px;
      margin: 3px 0;
      display: inline-block;
      padding: 5px;
  }
  .email-tags.mobile-open {
    bottom: 0;
    max-height: 200px;
  }
  .mobile-open.email-tags:before {
    content: "\f00d";
  }
}
/* Media Query */
@media(min-width:768px) {
  .navbar-brand {
    width: 250px;
  }
  .navbar-toggle-lg {
    background-color: transparent;
    display: inline-block;
    padding: 5px 10px;
    margin-top: 8px;
    margin-left: 15px;
    outline: none;
  }
  .navbar-toggle-lg:hover i { color: #fff; }

  .nav.navbar-top-links.navbar-right { display: block; }
  #side-menu .user-settings { display: none; }

  .navbar-toggle-lg i {
    color: #fff;
  }
  #page-wrapper {
    padding: 50px 30px 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: margin 0.5s ease;
    position: inherit;
    margin: 0 0 0 250px;
    padding: 50px 30px 0;
    border-left: 1px solid #e7e7e7;
  }
  #wrapper.toggled #page-wrapper {
    margin-left: 0px;
  }
  #sidebar-wrapper {
    z-index: 1000;
    position: fixed;
    left: 250px;
    width: 0;
    height: 100%;
    margin-left: -250px;
    /*overflow-y: auto;*/
    background: #000;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
  }
  #wrapper.toggled #sidebar-wrapper {
    width: 250px;
    left: -250px;
  }

  .sidebar {
    z-index: 1;
    position: absolute;
    width: 250px;
    margin-top: 51px;
  }
  .navbar-top-links .dropdown-messages,
  .navbar-top-links .dropdown-tasks,
  .navbar-top-links .dropdown-alerts {
    margin-left: auto;
  }

  .form-group {
    margin-bottom: 5px !important;
  }
}

.checkbox {
  padding: 3px 5px; }
  .checkbox label {
    display: inline-block;
    position: relative;
    padding-left: 5px; }
    .checkbox label::before {
      content: "";
      display: inline-block;
      position: absolute;
      width: 17px;
      height: 17px;
      left: 0;
      margin-left: -20px;
      border: 1px solid #cccccc;
      border-radius: 3px;
      background-color: #fff;
      -webkit-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
      -o-transition: border 0.15s ease-in-out, color 0.15s ease-in-out;
      transition: border 0.15s ease-in-out, color 0.15s ease-in-out; }
    .checkbox label::after {
      display: inline-block;
      position: absolute;
      width: 16px;
      height: 16px;
      left: 0;
      top: 0;
      margin-left: -20px;
      padding-left: 3px;
      padding-top: 1px;
      font-size: 11px;
      color: #555555; }
  .checkbox input[type="checkbox"] {
    opacity: 0; }
    .checkbox input[type="checkbox"]:focus + label::before {
      outline: thin dotted;
      outline: 5px auto -webkit-focus-ring-color;
      outline-offset: -2px; }
    .checkbox input[type="checkbox"]:checked + label::after {
      font-family: 'FontAwesome';
      content: "\f00c"; }
    .checkbox input[type="checkbox"]:disabled + label {
      opacity: 0.65; }
      .checkbox input[type="checkbox"]:disabled + label::before {
        background-color: #eeeeee;
        cursor: not-allowed; }
  .checkbox.checkbox-circle label::before {
    border-radius: 50%; }
  .checkbox.checkbox-inline {
    margin-top: 0; }

.checkbox-primary input[type="checkbox"]:checked + label::before {
  background-color: #5046e5;
  border-color: #5046e5; }
.checkbox-primary input[type="checkbox"]:checked + label::after {
  color: #fff; }

.radio {
  padding-left: 20px; }
  .radio label {
    display: inline-block;
    position: relative;
    padding-left: 5px; }
    .radio label::before {
      content: "";
      display: inline-block;
      position: absolute;
      width: 17px;
      height: 17px;
      left: 0;
      margin-left: -20px;
      border: 1px solid #cccccc;
      border-radius: 50%;
      background-color: #fff;
      -webkit-transition: border 0.15s ease-in-out;
      -o-transition: border 0.15s ease-in-out;
      transition: border 0.15s ease-in-out; }
    .radio label::after {
      display: inline-block;
      position: absolute;
      content: " ";
      width: 11px;
      height: 11px;
      left: 3px;
      top: 3px;
      margin-left: -20px;
      border-radius: 50%;
      background-color: #555555;
      -webkit-transform: scale(0, 0);
      -ms-transform: scale(0, 0);
      -o-transform: scale(0, 0);
      transform: scale(0, 0);
      -webkit-transition: -webkit-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
      -moz-transition: -moz-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
      -o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
      transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33); }
  .radio input[type="radio"] {
    opacity: 0; }
    .radio input[type="radio"]:focus + label::before {
      outline: thin dotted;
      outline: 5px auto -webkit-focus-ring-color;
      outline-offset: -2px; }
    .radio input[type="radio"]:checked + label::after {
      -webkit-transform: scale(1, 1);
      -ms-transform: scale(1, 1);
      -o-transform: scale(1, 1);
      transform: scale(1, 1); }
    .radio input[type="radio"]:disabled + label {
      opacity: 0.65; }
      .radio input[type="radio"]:disabled + label::before {
        cursor: not-allowed; }
  .radio.radio-inline {
    margin-top: 0; }

.radio-info input[type="radio"] + label::after {
  background-color: #5046e5; }
.radio-info input[type="radio"]:checked + label::before {
  border-color: #5046e5; }
.radio-info input[type="radio"]:checked + label::after {
  background-color: #5046e5; }
.email-tags p span { cursor: pointer; font-size: 14px; }
.email-text {white-space: pre-wrap; min-height: 200px; }

/* =====================================================================
   [button system] semantic variants mapped onto Bootstrap classes,
   modeled on the requested design tokens. Flat surfaces, 4px focus ring,
   text-sm / leading-5 / px-4 py-2.5 / rounded-base / shadow-xs.
   Mapping: primary=Brand, default=Secondary, info=Dark, link=Ghost,
   success/danger/warning as named. Extra utility classes provided too:
   .btn-secondary .btn-tertiary .btn-dark .btn-ghost
   ===================================================================== */
:root {
  --btn-radius: 8px;                 /* rounded-base */
  --btn-ring: 4px;                   /* focus:ring-4 */
  --btn-shadow: 0 1px 2px 0 rgba(0,0,0,.05);   /* shadow-xs */

  --brand: #5046e5;   --brand-strong: #4038c7;   --ring-brand: rgba(80,70,229,.45);
  --success: #16a34a; --success-strong: #15803d; --ring-success: rgba(22,163,74,.40);
  --danger: #dc2626;  --danger-strong: #b91c1c;  --ring-danger: rgba(220,38,38,.40);
  --warning: #f59e0b; --warning-strong: #d97706; --ring-warning: rgba(245,158,11,.40);
  --dark: #1f2937;    --dark-strong: #111827;

  --text-body: #374151;  --text-heading: #111827;  --text-white: #fff;
  --neutral-soft: #f9fafb;        /* tertiary bg */
  --neutral-secondary: #e5e7eb;   /* secondary bg / ghost hover */
  --neutral-tertiary: #d1d5db;    /* secondary hover / border-medium */
  --border-default: #e5e7eb;
  --ring-neutral: rgba(148,163,184,.40);
  --ring-neutral-soft: rgba(209,213,219,.45);
}

/* base: shared shape + sizing for all .btn */
.btn {
  border-radius: var(--btn-radius) !important;
  font-weight: 500;                 /* font-medium */
  font-size: 14px;                  /* text-sm */
  line-height: 1.25rem;             /* leading-5 */
  padding: 10px 16px;               /* py-2.5 px-4 */
  border: 1px solid transparent;    /* box-border border */
  box-shadow: var(--btn-shadow);
  transition: background-color .15s ease, border-color .15s ease,
              box-shadow .15s ease, color .15s ease;
}
.btn:focus, .btn.focus { outline: 0 !important; }   /* focus:outline-none */
.btn:active, .btn.active { box-shadow: none; }       /* kill BS3 inset active shadow */
.btn-lg { border-radius: 10px !important; padding: 12px 20px; }
.btn-sm { border-radius: 6px !important; }
.btn-xs { border-radius: 6px !important; }

/* Default / Brand  <-  .btn-primary */
.btn-primary { color: var(--text-white); background-color: var(--brand); border-color: transparent; }
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus,
.btn-primary:active, .btn-primary:active:hover, .btn-primary:active:focus {
  color: var(--text-white); background-color: var(--brand-strong); border-color: transparent;
}

/* Secondary  <-  .btn-default / .btn-secondary */
.btn-default, .btn-secondary {
  color: var(--text-body); background-color: var(--neutral-secondary); border-color: var(--neutral-tertiary);
}
.btn-default:hover, .btn-default:focus, .btn-default:active,
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
  color: var(--text-heading); background-color: var(--neutral-tertiary); border-color: var(--neutral-tertiary);
}
.btn-default:focus, .btn-secondary:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-neutral); }

/* Tertiary  <-  .btn-tertiary (light, bordered) */
.btn-tertiary {
  color: var(--text-body); background-color: var(--neutral-soft); border-color: var(--border-default);
}
.btn-tertiary:hover, .btn-tertiary:focus, .btn-tertiary:active {
  color: var(--text-heading); background-color: var(--neutral-secondary); border-color: var(--border-default);
}
.btn-tertiary:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-neutral-soft); }

/* Success  <-  .btn-success */
.btn-success { color: var(--text-white); background-color: var(--success); border-color: transparent; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success:active:hover {
  color: var(--text-white); background-color: var(--success-strong); border-color: transparent;
}
.btn-success:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-success); }

/* Danger  <-  .btn-danger */
.btn-danger { color: var(--text-white); background-color: var(--danger); border-color: transparent; }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger:active:hover {
  color: var(--text-white); background-color: var(--danger-strong); border-color: transparent;
}
.btn-danger:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-danger); }

/* Warning  <-  .btn-warning */
.btn-warning { color: var(--text-white); background-color: var(--warning); border-color: transparent; }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning:active:hover {
  color: var(--text-white); background-color: var(--warning-strong); border-color: transparent;
}
.btn-warning:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-warning); }

/* Dark  <-  .btn-info / .btn-dark */
.btn-info, .btn-dark { color: var(--text-white); background-color: var(--dark); border-color: transparent; }
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info:active:hover,
.btn-dark:hover, .btn-dark:focus, .btn-dark:active {
  color: var(--text-white); background-color: var(--dark-strong); border-color: transparent;
}
.btn-info:focus, .btn-dark:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-neutral); }

/* Ghost  <-  .btn-link / .btn-ghost */
.btn-link, .btn-ghost {
  color: var(--text-heading); background-color: transparent; border-color: transparent;
  box-shadow: none; text-decoration: none; font-weight: 500;
}
.btn-link:hover, .btn-link:focus, .btn-ghost:hover, .btn-ghost:focus {
  color: var(--text-heading); background-color: var(--neutral-secondary); text-decoration: none;
}
.btn-link:focus, .btn-ghost:focus { box-shadow: 0 0 0 var(--btn-ring) var(--ring-neutral); }

.panel-group .panel-heading { position: relative; }
.panel-group .panel-body { display: none; }
.panel-group .panel-heading span.clickable {
    background-color: #5046e5;
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    transition: background-color .15s ease, box-shadow .15s ease;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}
.panel-group .panel-heading span.clickable:hover {
    background-color: #4038c7;
}
.panel-group .panel-heading span.clickable:active {
    box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, .12);
}
.clickable {
	cursor: pointer;
}

.form-group {
    overflow: hidden;
}
.alert {
	margin-top:30px;
}
.authorr:not(:first-of-type) {
  margin-top:10px;
}
.navbar-brand {
  float: left;
  height: 50px;
  padding: 9px 15px;
  font-size: 18px;
  line-height: 16px;
}

/* =====================================================================
   [modern tables] airier cells, hairline dividers, refined header,
   softer stripes, subtle indigo row-hover. Markup untouched.
   ===================================================================== */
.table > thead > tr > th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
  font-weight: 600;
  color: #8a91a3;                       /* muted header text */
  border-bottom: 2px solid #eef0f4;     /* thin, not heavy */
  padding: 12px 16px;
}
.table > tbody > tr > td {
  padding: 12px 16px;
  border-top: 1px solid #eef0f4;        /* hairline row divider */
}
/* softer zebra stripe */
.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: #f7f8fa;
}
/* subtle indigo hover on every row (light tint of #5046e5) */
.table > tbody > tr:hover > td {
  background-color: #f2f1fd;
}
/* tame the boxy bordered variant to match the hairline look */
.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
  border-color: #eef0f4;
}
/* keep action buttons compact inside rows */
.table tr .btn { padding: 5px 12px; }

/* =====================================================================
   [panels -> cards] rounded, soft shadow, clean white headings.
   Colored panels (green/red/yellow/primary) and the indigo login
   heading keep their fill via higher specificity / non-matching rules.
   ===================================================================== */
.panel {
  border: 1px solid #eef0f4;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .06);
}
/* round the heading/footer to match the card corners */
.panel > .panel-heading {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 14px 18px;
}
.panel > .panel-footer {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
/* plain cards: white heading with a bold title + hairline divider
   (replaces Bootstrap's flat grey heading fill) */
.panel-default > .panel-heading {
  background-color: #fff;
  border-bottom: 1px solid #eef0f4;
  color: #2b2f38;
  font-weight: 600;
}
.panel-body { padding: 18px; overflow: hidden; }
.panel-title { font-size: 15px; font-weight: 600; }
/* align the lone panel-primary to the brand indigo */
.panel-primary { border-color: #5046e5; }
.panel-primary > .panel-heading {
  background-color: #5046e5;
  border-color: #5046e5;
}

/* =====================================================================
   [modern pagination] separated rounded pills matching the button
   system: brand-indigo active page, hairline pills, gaps, focus ring.
   Bootstrap 3 markup untouched (ul.pagination > li > a|span).
   ===================================================================== */
.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 0;
  margin: 18px 0;
  border-radius: 0;
}
.pagination > li { display: inline-flex; }
.pagination > li > a,
.pagination > li > span {
  float: none;
  margin-left: 0;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default, #e5e7eb);
  border-radius: 8px !important;
  background-color: #fff;
  color: var(--text-body, #374151);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease,
              color .15s ease, box-shadow .15s ease;
}
.pagination > li > a:hover,
.pagination > li > a:focus {
  background-color: var(--neutral-secondary, #e5e7eb);
  border-color: var(--neutral-tertiary, #d1d5db);
  color: var(--text-heading, #111827);
  outline: 0;
  z-index: 2;
}
.pagination > li > a:focus {
  box-shadow: 0 0 0 4px var(--ring-neutral, rgba(148,163,184,.40));
}
/* current page = brand */
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
  background-color: var(--brand, #5046e5);
  border-color: var(--brand, #5046e5);
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
/* ends (« ») and the "…" separator when inactive */
.pagination > .disabled > span,
.pagination > .disabled > a {
  background-color: #fff;
  border-color: var(--border-default, #e5e7eb);
  color: #c2c7d0;
  cursor: not-allowed;
}

/* =====================================================================
   [modern sidebar] light surface, rounded pill items, muted icons,
   light-indigo hover, brand-indigo active pill. Markup untouched.
   ===================================================================== */
/* light surface (was a black wrapper leaking below the item list) */
#sidebar-wrapper { background: #fff; }
.navbar-default.sidebar { background: #fff; border-right: 1px solid #eef0f4; }
#page-wrapper { border-left: none; }      /* single divider via sidebar border */

/* drop the row separators + grey fills */
.sidebar ul li { border-bottom: none; }
#side-menu { padding: 10px 8px; }
.sidebar ul li a {
  background-color: transparent;
  color: #4b5563;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar ul li a .fa-fw {
  color: #9aa1ad;
  margin-right: 4px;
  transition: color .15s ease;
}
.sidebar ul li a:hover,
.sidebar ul li a:focus {
  background-color: #f2f1fd;              /* light indigo tint */
  color: #111827;
}
.sidebar ul li a:hover .fa-fw,
.sidebar ul li a:focus .fa-fw { color: #5046e5; }

/* active = brand pill (current page and/or metisMenu-open item) */
.sidebar ul li a.active,
.sidebar ul li.active > a {
  background-color: #5046e5;
  color: #fff;
}
.sidebar ul li a.active:hover,
.sidebar ul li.active > a:hover {
  background-color: #4038c7;
  color: #fff;
}
.sidebar ul li a.active .fa-fw,
.sidebar ul li.active > a .fa-fw { color: #fff; }

/* submenus: indented + quieter */
.sidebar .nav-second-level li a { padding-left: 40px; font-size: 13px; }
.sidebar .nav-third-level li a  { padding-left: 56px; font-size: 13px; }
.sidebar .nav-second-level li a.active,
.sidebar .nav-second-level li.active > a {
  background-color: #ecebfb;              /* soft indigo, not full brand */
  color: #5046e5;
}
.sidebar .nav-second-level li a.active .fa-fw { color: #5046e5; }

/* =====================================================================
   [base typography] modern system font stack, smoothing, refined
   headings, brand links. No layout changes.
   ===================================================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 15px;
  line-height: 1.55;
  color: #374151;                     /* body text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  color: #111827;                     /* heading */
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1 small, h2 small, h3 small,
.h1 small, .h2 small, .h3 small { color: #8a91a3; font-weight: 400; }
p { margin: 0 0 12px; }
a { color: #5046e5; transition: color .15s ease; }
a:hover, a:focus { color: #4038c7; }
.text-muted { color: #8a91a3 !important; }
strong, b { font-weight: 600; }
label { font-weight: 500; color: #374151; }
code {
  color: #5046e5;
  background-color: #f2f1fd;
  border-radius: 4px;
}

/* =====================================================================
   [inputs / forms] softer bordered fields, no inset shadow, brand focus
   ring; custom checkbox/radio aligned to the brand. Markup untouched.
   ===================================================================== */
.form-control {
  height: 42px;
  padding: 8px 12px;
  font-size: 15px;
  color: #374151;
  background-color: #fff;
  border: 1px solid var(--border-default, #d1d5db);
  border-radius: 8px;
  box-shadow: none;                       /* kill BS3 inset shadow */
  transition: border-color .15s ease, box-shadow .15s ease;
}
select.form-control { height: 42px; }
textarea.form-control { height: auto; min-height: 96px; }
.form-control::-webkit-input-placeholder { color: #9aa1ad; }
.form-control::-moz-placeholder { color: #9aa1ad; }
.form-control:-ms-input-placeholder { color: #9aa1ad; }
.form-control::placeholder { color: #9aa1ad; }
.form-control:focus {
  border-color: #5046e5;
  outline: 0;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  background-color: #f9fafb;
  color: #8a91a3;
  cursor: not-allowed;
}

/* validation states */
.has-error .form-control { border-color: #dc2626; }
.has-error .form-control:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.has-error .control-label,
.has-error .help-block,
label.error { color: #dc2626; }
.has-success .form-control { border-color: #16a34a; }
.has-success .form-control:focus { box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.help-block { color: #8a91a3; font-size: 13px; }

/* custom checkbox / radio -> brand accent + soft focus ring */
.checkbox label::before,
.radio label::before { border-color: #cbd0d8; }
.checkbox input[type="checkbox"]:checked + label::before {
  background-color: #5046e5;
  border-color: #5046e5;
}
.checkbox input[type="checkbox"]:checked + label::after { color: #fff; }
.radio input[type="radio"]:checked + label::before { border-color: #5046e5; }
.radio input[type="radio"]:checked + label::after { background-color: #5046e5; }
.checkbox input[type="checkbox"]:focus + label::before,
.radio input[type="radio"]:focus + label::before {
  outline: 0;
  border-color: #5046e5;
  box-shadow: 0 0 0 4px rgba(80, 70, 229, .20);
}

/* =====================================================================
   [navbar / top bar] indigo app bar with depth, refined brand + links,
   modern dropdown menu. Markup untouched.
   ===================================================================== */
.navbar-default.navbar-static-top {
  box-shadow: 0 1px 3px rgba(17, 24, 39, .12);
  border: 0;
}
/* brand: white, a touch bolder, stays white on hover */
nav.navbar-default .navbar-header .navbar-brand {
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
}
nav.navbar-default .navbar-header .navbar-brand:hover,
nav.navbar-default .navbar-header .navbar-brand:focus { color: #fff; }

/* top-right links: subtle translucent hover/open pill */
.navbar-top-links > li > a {
  color: #fff;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.navbar-top-links > li > a:hover,
.navbar-top-links > li > a:focus,
.navbar-top-links > li.open > a {
  background-color: rgba(255, 255, 255, .14);
  color: #fff;
}
/* fix: user icon no longer turns indigo (invisible) on hover */
.navbar-top-links .dropdown-toggle i { color: #fff; }
.dropdown-toggle:hover i,
.dropdown-toggle:focus i { color: rgba(255, 255, 255, .85); }

/* modern dropdown menu (user menu + any dropdown) */
.dropdown-menu {
  border: 1px solid #eef0f4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .12);
  padding: 6px;
  margin-top: 6px;
  min-width: 200px;
}
.dropdown-menu > li > a,
.navbar-top-links .dropdown-menu li a {
  color: #374151;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.navbar-top-links .dropdown-menu li a:hover,
.navbar-top-links .dropdown-menu li a:focus {
  background-color: #f2f1fd;
  color: #5046e5;
}
.dropdown-menu > li > a i.fa { color: #9aa1ad; margin-right: 6px; }
.dropdown-menu > li > a:hover i.fa { color: #5046e5; }
.dropdown-menu .divider { background-color: #eef0f4; margin: 6px 0; }

/* =====================================================================
   [alerts & labels/badges] flat, rounded, soft-tinted — matched to brand.
   Markup untouched.
   ===================================================================== */
/* alerts: soft tint + left accent bar (keeps the existing margin-top) */
.alert {
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.alert-success { background-color: #ecfdf5; border-color: #a7f3d0; border-left-color: #16a34a; color: #166534; }
.alert-info    { background-color: #eef2ff; border-color: #c7d2fe; border-left-color: #5046e5; color: #3730a3; }
.alert-warning { background-color: #fffbeb; border-color: #fde68a; border-left-color: #f59e0b; color: #92400e; }
.alert-danger  { background-color: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; color: #991b1b; }
.alert a, .alert .alert-link { font-weight: 600; color: inherit; text-decoration: underline; }
.alert .close { color: inherit; opacity: .5; }

/* labels -> modern soft badges */
.label {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .01em;
  padding: .28em .62em;
  border-radius: 6px;
}
.label-default { background-color: #eceef1; color: #4b5563; }
.label-primary { background-color: #f2f1fd; color: #5046e5; }
.label-success { background-color: #ecfdf5; color: #15803d; }
.label-info    { background-color: #e0f2fe; color: #0369a1; }
.label-warning { background-color: #fffbeb; color: #b45309; }
.label-danger  { background-color: #fef2f2; color: #dc2626; }
a.label:hover, a.label:focus { color: inherit; opacity: .85; }

/* badges: clean pills */
.badge {
  font-weight: 600;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: #8a91a3;
}
.badge-success, button .badge.badge-success { background-color: #16a34a; color: #fff; }
.badge-danger  { background-color: #dc2626; color: #fff; }
.badge-warning { background-color: #f59e0b; color: #fff; }
.badge-info    { background-color: #5046e5; color: #fff; }

/* ---------------------------------------------------------------- */
/* [tooltips]                                                        */
/* ---------------------------------------------------------------- */
.tooltip { font-size: 12px; }
.tooltip.in { opacity: 1; }
.tooltip-inner {
  background-color: #111827;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 240px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, .18);
}
.tooltip.top .tooltip-arrow,
.tooltip.top-left .tooltip-arrow,
.tooltip.top-right .tooltip-arrow    { border-top-color: #111827; }
.tooltip.right .tooltip-arrow        { border-right-color: #111827; }
.tooltip.bottom .tooltip-arrow,
.tooltip.bottom-left .tooltip-arrow,
.tooltip.bottom-right .tooltip-arrow { border-bottom-color: #111827; }
.tooltip.left .tooltip-arrow         { border-left-color: #111827; }

/* icon-only action buttons in tables sit square */
.table .action-tip { padding: 5px 10px; }
.table .action-tip .fa { font-size: 14px; }

/* ---------------------------------------------------------------- */
/* [table action cells]                                              */
/* ---------------------------------------------------------------- */
/* Any cell holding buttons keeps them on a single line. Matched by
   content, so it covers every table without touching the markup.
   Text-only cells (status, format) are untouched and still wrap. */
.table td:has(> .btn),
.table th:has(> .btn) {
  white-space: nowrap;
}
.table td:has(> .btn) > .btn,
.table th:has(> .btn) > .btn {
  vertical-align: middle;
  margin-bottom: 0;
}
/* trailing <br> after the last action button adds an empty line */
.table td:has(> .btn) > br,
.table th:has(> .btn) > br {
  display: none;
}

/* ---------------------------------------------------------------- */
/* [paper title + authors cell]                                      */
/* ---------------------------------------------------------------- */
.paper-title {
  font-weight: 500;
  color: var(--text-heading, #111827);
  line-height: 1.4;
  text-transform: uppercase;
}
.paper-authors {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}
/* give the title column the bulk of the free width */
.table th.col-title,
.table td.col-title {
  width: 38%;
  min-width: 400px;
}

/* ---------------------------------------------------------------- */
/* [split panel heading: title left, status right]                   */
/* ---------------------------------------------------------------- */
.panel-heading.panel-heading-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-heading.panel-heading-split .label {
  flex: none;
}