/* Dux Clouding - classic theme (the look of the old system).
   Colours and sizes are variables: change them here to restyle every page. */
:root {
  --dux-navy:        #0a395f;  /* top bar, login background */
  --dux-navy-dark:   #072843;  /* top bar bottom border, separators */
  --dux-navy-mid:    #082c49;  /* menu bar, search field */
  --dux-menu-line:   #295c86;  /* line under the menu */
  --dux-green:       #76ac28;  /* active menu item, accents */
  --dux-green-light: #87c52d;
  --dux-green-dark:  #5e8920;
  --dux-blue-text:   #5893c3;  /* search text, welcome text */
  --dux-bg:          #f2f3f5;  /* page background */
  --dux-font:        'Lato', sans-serif;

  --bs-body-font-family: var(--dux-font);
  --bs-body-bg: var(--dux-bg);
  --bs-primary: #1e5f94;
  --bs-primary-rgb: 30, 95, 148;
  --bs-link-color: #1e5f94;
  --bs-link-color-rgb: 30, 95, 148;
}

body.dux-body { background: var(--dux-bg); font-family: var(--dux-font); }

/* ---------- header ---------- */
.dux-header { border-bottom: 3px solid #cdced0; }
.dux-header-top {
  display: flex; align-items: center; gap: 0;
  background: var(--dux-navy); border-bottom: 3px solid var(--dux-navy-dark);
  padding: 7px 12px; min-height: 60px;
}
.dux-logo img { height: 34px; display: block; }
.dux-sep { width: 1px; height: 43px; background: #06233b; margin: 0 15px; }

.dux-search {
  display: flex; align-items: center; max-width: 640px; height: 38px;
  background: var(--dux-navy-mid); border-radius: 6px; padding: 0 12px; margin: 0 12px;
}
.dux-search i { color: var(--dux-blue-text); margin-right: 10px; }
.dux-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #dbe7f2; font-size: 16px;
}
.dux-search input::placeholder { color: var(--dux-blue-text); font-style: italic; }

.dux-top-right { display: flex; align-items: center; margin-left: auto; }
.dux-add-new {
  background: var(--dux-green); color: #fff; border: 0; border-radius: 6px;
  padding: 7px 14px; font-size: 15px; font-weight: 700;
}
.dux-add-new:hover, .dux-add-new.show { background: var(--dux-green-dark); color: #fff; }
.dux-add-menu { background: var(--dux-green-dark); border: 0; }
.dux-add-menu .dropdown-item { color: #fff; }
.dux-add-menu .dropdown-item:hover { background: var(--dux-green); color: #fff; }

.dux-user { align-items: center; gap: 10px; }
.dux-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--dux-navy-mid);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-transform: uppercase; border: 2px solid var(--dux-menu-line);
}
.dux-welcome { color: var(--dux-blue-text); font-style: italic; font-weight: 700; font-size: 16px; white-space: nowrap; }
.dux-welcome b { color: #f6f6f6; }
.dux-icon-btn { color: #c9d9e8; font-size: 20px; padding: 4px 8px; display: inline-block; }
.dux-icon-btn:hover { color: #fff; }

.dux-header-bottom { background: var(--dux-navy-mid); padding: 4px 12px 0; overflow-x: auto; }
.dux-menu {
  display: flex; list-style: none; margin: 8px 0 10px; padding: 0;
  border-bottom: 3px solid var(--dux-menu-line); width: max-content; min-width: 100%;
}
.dux-menu li { margin: 0 10px -3px 0; padding: 0 13px 10px; border-bottom: 3px solid transparent; }
.dux-menu li:first-child { padding-left: 2px; }
.dux-menu li:hover, .dux-menu li.active { border-bottom-color: var(--dux-green); }
.dux-menu a { color: #f1f2f4; text-decoration: none; font-size: 14px; white-space: nowrap; }

/* ---------- content ---------- */
.dux-content { padding: 20px 0.8%; }
.dux-card { background: #fff; border: 1px solid #dfe1e5; border-radius: 6px; }
.dux-card-header {
  background: linear-gradient(#fbf9fc, #eff3f6); border-bottom: 1px solid #dfe1e5;
  border-radius: 6px 6px 0 0; padding: 10px 16px; color: #2b6a9b; font-weight: 700;
}
.dux-table thead th {
  background: #eef1f5; color: #44505c; font-weight: 700; font-size: 13px;
  white-space: nowrap; cursor: pointer; user-select: none;
}
.dux-table thead th.sorted-asc::after { content: " \25B2"; font-size: 10px; }
.dux-table thead th.sorted-desc::after { content: " \25BC"; font-size: 10px; }
.dux-table tbody tr { cursor: pointer; }
.dux-table tbody tr:hover td { background: #f5f9fd; }
.btn-dux { background: var(--dux-green); color: #fff; border: 0; }
.btn-dux:hover, .btn-dux:focus { background: var(--dux-green-dark); color: #fff; }
.nav-pills .nav-link.active { background: var(--dux-navy); }
.badge-tag { background: #e8f1dc; color: #3d5c12; border: 1px solid #c9dfa8; font-weight: 700; }

/* the big slide-in customer panel */
.offcanvas.dux-panel { width: min(1100px, 92vw); }
.dux-panel .offcanvas-header { background: var(--dux-navy); color: #fff; }
.dux-panel .offcanvas-header .btn-close { filter: invert(1); }

/* ---------- login (old look: blue page, white box with light header) ---------- */
.dux-login-body {
  min-height: 100vh; margin: 0; font-family: var(--dux-font);
  background: radial-gradient(ellipse at center, #13609a 0%, var(--dux-navy) 70%, #082c49 100%) fixed;
  display: flex; align-items: center; justify-content: center;
}
.dux-login { width: 100%; max-width: 445px; padding: 16px; text-align: center; }
.dux-login-logo { height: 46px; margin-bottom: 30px; }
.dux-login-frame { background: rgba(4, 30, 52, 0.45); border-radius: 8px; padding: 11px; }
.dux-login-box { background: #fff; border-radius: 4px; text-align: left; overflow: hidden; }
.dux-login-header {
  margin: 0; font-size: 18px; font-weight: 700; color: #2b6a9b; text-align: center;
  padding: 14px; background: linear-gradient(#fbf9fc, #eff3f6); border-bottom: 1px solid #c7ccd1;
}
.dux-login-form { padding: 30px 30px 26px; }
.dux-login-field {
  display: flex; align-items: center; height: 42px; margin-bottom: 22px;
  border: 1px solid #c4c8cc; border-radius: 4px; background: linear-gradient(#f4f5f6, #fff);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.dux-login-field:focus-within { border-color: #7cc6ea; box-shadow: 0 0 0 3px rgba(124,198,234,.35); }
.dux-login-field i { color: #a9adb1; width: 34px; text-align: center; border-right: 1px solid #d9dcdf; line-height: 26px; }
.dux-login-field input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 15px; }
.dux-login-field input::placeholder { color: #a9adb1; font-style: italic; }
.dux-login-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.dux-login-langs { font-size: 13px; color: #9aa0a6; }
.dux-login-langs a { color: #7a8a99; text-decoration: none; }
.dux-login-btn {
  border: 1px solid #b7d3df; border-radius: 20px; padding: 8px 26px; font-weight: 700; color: #2b6a9b;
  background: linear-gradient(#f3fafd, #d6eaf3); box-shadow: 0 0 0 4px #eaf3f7;
}
.dux-login-btn:hover { background: linear-gradient(#e8f5fb, #c7e2ee); }

.dux-panel .offcanvas-title { color: #fff; }

/* small screens: search goes on its own line under the logo and buttons */
@media (max-width: 767.98px) {
  .dux-header-top { flex-wrap: wrap; }
  .dux-search { order: 3; flex-basis: 100%; max-width: none; margin: 8px 0 0; }
  .dux-content { padding: 10px 6px; }
}
