.panel-primary > .panel-heading {
    color: #fff;
    background-color: #7487a5;
    border-color: #7487a5;
}

.btn-link {
    color: #7487a5;
    font-weight: normal;
    border-radius: 0;
}
a {
    color: #7487a5;
    text-decoration: none;
}

menu .r-menu-link {
    display: block;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--text-1);
}



/* ===== Left nav density tweak ===== */

/* Kill default Bootstrap padding on the <a> wrappers */
.r-left .r-menu.nav > li > a,
.r-left .r-menu .nav > li > a {
  padding: 0 !important;
}

/* Main row: reduce vertical padding & spacing */
.r-left .r-menu .r-menu-link {
  padding: 6px 10px !important;   /* was 10px 12px */
  border-radius: 6px;
}
.r-left .r-menu li {
  margin: 2px 0;                   /* compact gaps between items */
}
.r-left .r-menu .r-menu-title {
  line-height: 1.2;                /* tighter type */
}

/* Icon/text spacing */
.r-left .r-menu .menu-icon {
  width: 16px;                     /* consistent column for icons */
  margin-right: 8px;
  text-align: center;
}

/* Submenus */
.r-left .r-menu ul.nav {
  margin: 4px 0 4px 6px;           /* compact indent & stack */
}
.r-left .r-menu ul.nav li {
  margin: 1px 0;
}
.r-left .r-menu ul.nav li > a .r-menu-link {
  padding: 5px 10px !important;    /* slightly tighter for subitems */
}

/* Optional “extra compact” mode:
   add class 'compact-leftnav' to the sidebar container (e.g., <div class="r-left compact-leftnav">)
   for even denser menus on small screens or data-heavy trees. */
.compact-leftnav .r-menu .r-menu-link { padding: 4px 8px !important; }
.compact-leftnav .r-menu li { margin: 1px 0; }

/* ===== Left nav font size -2px ===== */
.r-left .r-menu { 
  font-size: 12px;              /* was ~16px */
  line-height: 1.3; 
}

/* Keep icons in proportion */
.r-left .r-menu .menu-icon {
  font-size: 12px;              /* match text */
  width: 16px;                  /* stable column for icons */
}

/* Optional: tighten badges inside the menu */
.r-left .r-menu .badge {
  font-size: 11px;
  padding: .15em .45em;
}
/* PB 10/22/25 added this */
.btn-primary {
    color: #fff;
    background-color: #7487a5;
    border-color: #7487a5;
}

.panel-primary {
    border-color: #7487a5;
}

.panel-primary > .panel-heading {
    color: #fff;
    background-color: #7487a5;
    border-color: #7487a5;
    font-weight: 400;       
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #0b3652;
    border-color: transparent;
    cursor: default;
}

/***** New code to round corners. */
/* rounded-boxes.css — load AFTER your bootstrap theme */

/* ---- Tokens (tweak here) ---- */
:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ---- Core containers / boxes ---- */
/* BS4/5 cards; BS3 panels, wells, thumbnails; alerts & list items */
.card,
.panel,
.panel-heading,
.panel-footer,
.well,
.thumbnail,
.alert,
.list-group-item,
.badge,
.label,
.toast,
.offcanvas,
.offcanvas-header,
.offcanvas-body {
  border-radius: var(--radius-md) !important;
}

/* Tables keep crisp edges, but soften thead cap a bit (optional) */
.table thead th {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

/* ---- Overlays & pop UI ---- */
.modal-content {
  border-radius: var(--radius-lg) !important;
}
.dropdown-menu {
  border-radius: var(--radius-md) !important;
}
.popover,
.popover .popover-header,
.popover .popover-title {
  border-radius: var(--radius-md) !important;
}
.tooltip .tooltip-inner,
.tooltip-inner {
  border-radius: var(--radius-sm) !important;
}

/* ---- Forms & inputs ---- */
.form-control,
.input-group .form-control,
.input-group-addon,
.input-group-text,
.custom-select,
.form-select,
.form-check-input {
  border-radius: var(--radius-md) !important;
}

/* ---- Buttons & nav bits ---- */
.btn,
.btn-group .btn,
.btn-group-vertical .btn {
  border-radius: var(--radius-md) !important;
}
.nav-tabs > li > a,
.nav-pills > li > a,
.nav-link,
.breadcrumb,
.pagination > li > a,
.pagination > li > span {
  border-radius: var(--radius-md) !important;
}

/* ---- Optional utilities ---- */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* If your theme is very aggressive, add a specificity “booster” wrapper:
   Replace .theme-scope with a real parent (e.g., body or #app) */
.theme-scope .card,
.theme-scope .panel,
.theme-scope .modal-content,
.theme-scope .dropdown-menu,
.theme-scope .popover,
.theme-scope .tooltip .tooltip-inner { border-radius: var(--radius-md) !important; }
.theme-scope .modal-content { border-radius: var(--radius-lg) !important; }


/* Panel headers: rounded top, flat bottom */
.panel {
  border-radius: var(--radius-md) !important;
  overflow: hidden; /* ensures clean edges where header meets body */
}
.panel-heading {
  border-top-left-radius: var(--radius-md) !important;
  border-top-right-radius: var(--radius-md) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Optional: if you use .panel-footer, keep its top flat and bottom rounded */
.panel-footer {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: var(--radius-md) !important;
  border-bottom-right-radius: var(--radius-md) !important;
}

/* Bootstrap 4/5 cards: same idea */
.card { 
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.card-header {
  border-top-left-radius: var(--radius-md) !important;
  border-top-right-radius: var(--radius-md) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.card-footer {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: var(--radius-md) !important;
  border-bottom-right-radius: var(--radius-md) !important;
}

/* If a list group follows the header, ensure the first item isn't rounded */
.panel .list-group .list-group-item:first-child,
.card .list-group .list-group-item:first-child {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}



/* === Tabs: rounded container, tabs with rounded TOPS and flat BOTTOMS === */
/* Uses the same tokens as before: --radius-sm/md/lg */

/* --- Shared container --- */
.tab-content {
  border: 1px solid rgba(0,0,0,.1);
  border-top: none; /* lets active tab appear attached */
  /*border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);*/
  padding: 12px; /* tweak to taste */
  background: #fff;
}

/* Slight elevation if desired (optional) */
/* .tab-content { box-shadow: 0 2px 8px rgba(0,0,0,.06); } */

/* ================== Bootstrap 4/5 ================== */
.nav-tabs {
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* Base tabs */
.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: .25rem;
  padding: .5rem .85rem;
  transition: background-color .16s ease, border-color .16s ease;
}

/* Hover state */
.nav-tabs .nav-link:hover {
  background-color: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12) rgba(0,0,0,.12) transparent;
}

/* Active (attached to content) */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: inherit;
  background-color: #fff;
  border-color: rgba(0,0,0,.12) rgba(0,0,0,.12) #fff; /* bottom transparent via #fff */
  border-bottom-color: #fff; /* visually flat bottom */
}

/* First/last tab edge polish (optional) */
.nav-tabs .nav-item:first-child .nav-link { margin-left: 0; }
.nav-tabs .nav-item:last-child  .nav-link { margin-right: 0; }

/* ================== Bootstrap 3 ================== */
.nav-tabs > li > a {
  border: 1px solid transparent;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: .25rem;
  padding: 8px 14px;
  transition: background-color .16s ease, border-color .16s ease;
}

.nav-tabs > li > a:hover {
  background-color: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12) rgba(0,0,0,.12) transparent;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: inherit;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-bottom-color: #fff; /* flat bottom to merge with content */
}

/* Tabs container line */
.nav-tabs {
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* ================== Optional variants ================== */

/* Pills style (rounded pills) while keeping flat bottom (top tabs only) */
.nav-pills .nav-link,
.nav-pills > li > a {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Tabs positioned below content (rare): flip radii */
.tabs-below .nav-tabs {
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: 0;
  margin-top: .75rem;
}
.tabs-below .nav-tabs .nav-link,
.tabs-below .nav-tabs > li > a {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.tabs-below .tab-content {
  border-top: 1px solid rgba(0,0,0,.12);
  border-bottom: none;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

/* Compact vertical tabs (if you use .nav-stacked) */
.nav-stacked > li > a {
  border-radius: var(--radius-md) !important;
  margin-bottom: .25rem;
}


.nav-tabs > li > a {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-color: #fff; /* visually attach to .tab-content */
}

.rnr-dbselectedrow.rnr-dbselectedrow.rnr-dbselectedrow.rnr-dbselectedrow.rnr-dbselectedrow.rnr-dbselectedrow {
    background-color: whitesmoke;
   /* color: #222222;*/
   color: black;
}

.navbar-default .dropdown-menu > li > a, .navbar-default .dropdown-menu > li > a:focus {
    color: #7487a5;
}


body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
   /* color: #222222;*/
   color: black;
    background-color: #fff;
}

.panel-info > .panel-heading {
    color: #fff;
    background-color: #7487a5;
    border-color: #7487a5;
}

.panel-info {
    border-color: #7487a5;
}


label, .control-label, .help-block, .checkbox, .radio {
    font-size: 12px;
    font-weight: bold;
}

.panel-info > .panel-heading .btn.btn-info:not(:hover) {
    background-color:#7487a5;
    border-color: :#7487a5;    
}
.btn-info {
    color: #fff;
    background-color:#7487a5;
    border-color: :#7487a5;
}

.alert-warning {
    background-color:#7487a5;
    border-color:#7487a5;
    color: #fff;
}