/* Base layout */

.navbar {
    margin-bottom: 0;
}

.main-container {
    box-sizing: border-box;
    max-width: 1240px;
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 92px;
}

.navbar-brand{
    height: auto;
    padding: 0 15px;
}

.row{
    margin-left: 0px;
    margin-right: 0px;
}

    .row small {
        overflow-wrap: break-word;
    }

div.preloader-spinner-image {
    animation: app-spinner-rotate .65s linear infinite;
    border: 1.5px solid rgba(35, 55, 48, .16);
    border-radius: 50%;
    border-top-color: #42534b;
    box-sizing: border-box;
    height: 22px;
    width: 22px;
}


.waiting-dialog__content {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(35, 55, 48, .10);
    border-radius: 999px;
    display: inline-flex;
    gap: 8px;
    padding: 7px 11px 7px 8px;
}

.waiting-dialog__label {
    color: #53615b;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
}

.waiting-dialog.in {
    align-items: center;
    display: flex !important;
    justify-content: center;
}

@keyframes app-spinner-rotate {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    div.preloader-spinner-image {
        animation-duration: 1.4s;
    }
}

.text-align-right{
    text-align: right;
}

.text-align-center{
    text-align: center;
}

.pointer-cursor{
    cursor: pointer;
}

.modal-footer .alert {
    text-align: start;
    margin-bottom: 0;
    margin-top: 15px;
}

.radio p {
    color: #333;
}

.centered-by-content {
    margin: auto;
    display: table;
}

.table thead > tr > th {
    font-size: 1.28em;
    font-weight: 600;
}

.table-header th {
    color: #FFB828;
}

.nav > li > a:hover,
.nav > li > a:focus {
    background-color: #f9f9f9;
}

.nav-tabs {
    border-bottom-color: #ebeef2;
}

    .nav-tabs > li {
        margin-bottom: 0;
    }

        .nav-tabs > li > a {
            padding-left: 15px;
            padding-right: 15px;
            margin-bottom: -1px;
            font-weight: 500;
            color: #454e59;
        }

            .nav-tabs > li > a:hover {
                border-color: #ebeef2;
            }

        .nav-tabs > li.active > a,
        .nav-tabs > li.active > a:hover,
        .nav-tabs > li.active > a:focus {
            color: #454e59;
            /*border-color: #ebeef2;*/ /*  This line commented makes tabs more visible  */
            border-bottom-color: transparent;
        }
        
        
.navbar-header {
    height: 80px;
}
 
.table thead > tr > th,
.table thead > tr > td,
.table tfoot > tr > th,
.table tfoot > tr > td {
    padding-top: 15px;
    padding-bottom: 15px;
}

#remaining-balance-a { padding: 0; }

.invoice-img {
    max-width: 100%;
}

.header-user-name {
    line-height: 48px;
    font-weight: 600;
}

.color-text-header{
    color: #FFB828;
}

.user-header-dropdown {
    display: flex !important;
}

.nav li.user-header-dropdown > a {
    min-width: 50px;
    padding: 15px 7px;
    line-height: 18px !important;
    color: #454e59;
    position: relative;
}
    
/* Block */
.block {
    margin: 0 0 10px;
    padding: 20px 15px 1px;
    background-color: #ffffff;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    -webkit-box-shadow: 0 2px 0 rgba(218, 224, 232, .5);
    box-shadow: 0 2px 0 rgba(218, 224, 232, .5);
}

/* Sidebar */

#main-wrapper {
    padding-left: 250px;
    transition: all 0.4s ease 0s;
    height: 100%;
}

#sidebar-wrapper {
    margin-left: -250px;
    left: 250px;
    width: 250px;
    background: #333;
    position: fixed;
     height: 100%;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.4s ease 0s;
}

#main-wrapper.active {
    padding-left: 0;
}

#main-wrapper.sidebarless {
    padding-left: 0;
}

#main-wrapper.sidebarless #page-content-wrapper .navbar-fixed-top {
    left: 0;
}

#main-wrapper.active #sidebar-wrapper {
    left: 0 !important;
}

#page-content-wrapper {
    display: flex;
    flex-direction: column;
    width: fit-content;
    min-width: 100%;
    min-height: 100vh;
    height: auto !important;
}

#page-content-wrapper > .main-container {
    box-sizing: border-box;
    flex: 1 0 auto;
    margin-bottom: 0;
    width: 100%;
}

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 250px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.sidebar-nav li {
    line-height: 40px;
    text-indent: 20px;
}

.sidebar-nav li a {
    color: #999999;
    display: block;
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    height: 83px;
    line-height: 60px;
    font-size: 18px;  
}

.sidebar-nav > .sidebar-brand a {
    color: #999999;
    height: inherit;
    display: table;
    width: 100%;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: #fff;
    background: none;
}

.sidebar-nav li a:hover, .sidebar-nav li a:focus, .sidebar-nav li a.active, .sidebar-nav li a.open, .sidebar-nav li.active > a {
    color: white;
    background: rgba(0, 0, 0, .5);
    text-decoration: none;
}

#menu-toggle {
    text-decoration: none;
}

.navbar-toggle.custom-sidebar-toggle{
    float: left;
    display: block;
}

.navbar-toggle.custom-sidebar-toggle:focus{
    background-color: transparent;
}
.navbar-toggle.custom-sidebar-toggle:hover{
    background-color: #ddd;
}

#primary-index-img {
    width: 100%;    
}

#main-wrapper.active #page-content-wrapper .navbar-fixed-top {
    left: 0px;
}

#page-content-wrapper .navbar-fixed-top {
    transition: all 0.4s ease 0s;
    left: 250px;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #411409;
}

@media (max-width:767px) {
    #main-wrapper {
        padding-left: 0;
    }

    #main-wrapper.active {
        position: relative;
        left: 0;
    }
    
    #sidebar-wrapper{
        left: 0;
    }

    #main-wrapper.active #sidebar-wrapper {
        left: 250px !important;
        width: 250px !important;
        transition: all 0.4s ease 0s;
    }
    
    #menu-toggle {
        display: inline-block;
    }
    
    .navbar-default {
        padding-left: 0px;
        transition: all 0.4s ease 0s;
    }
    
    #main-wrapper.active .navbar-default {
        padding-left: 0px;
        transition: all 0.4s ease 0s;
    }
    
    #main-wrapper.active #page-content-wrapper .navbar-fixed-top {
        left: 250px;
    }

    #page-content-wrapper .navbar-fixed-top {
        transition: all 0.4s ease 0s;
        left: 0px;
    }
    
    .navbar-right {
        margin: 0px;
        float: right !important;
    }
}


@media (min-width: 768px){
    .container {
        width: 85%;
    }
}
@media (min-width: 992px){
    .container {
        width: 95%;
    }
}
@media (min-width: 1200px){
    .container {
        width: 95%;
    }
}

.validate_cus {
  color: #a94442;
  font-size: small;
}

label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 700;
}

input,
textarea {
  font-size: 18px;
  display: block;
  padding: 5px 10px;
  background: none;
  background-image: none;
  border: 1px solid #a0b3b0;
  color: #545f58;
  border-radius: 6px;
  -webkit-transition: border-color .25s ease, box-shadow .25s ease;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.contributor-console {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(35, 55, 48, .10);
  overflow: hidden;
}

.contributor-page {
  max-width: 1180px;
}

.contributor-tabs.nav-tabs {
  border-bottom: 1px solid #dfe4e1;
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
}

.contributor-tabs.nav-tabs > li { float: none; margin: 0 0 -1px; }

.contributor-tabs.nav-tabs > li > a {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #747f79;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  margin: 0;
  min-height: 42px;
  padding: 10px 15px;
}

.contributor-tabs.nav-tabs > li > a:hover,
.contributor-tabs.nav-tabs > li > a:focus {
  background: #f2f3f2;
  border-color: transparent;
  color: #3f4944;
}

.contributor-tabs.nav-tabs > li.active > a,
.contributor-tabs.nav-tabs > li.active > a:hover,
.contributor-tabs.nav-tabs > li.active > a:focus {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ui-brand);
  color: var(--ui-brand);
}

.contributor-tabs__content > .tab-pane { outline: 0; }
.contributor-tabs__content .contributor-area-heading { border-top: 0; margin-top: 0; padding-top: 4px; }

.contributor-tab-context {
  align-items: center;
  background: var(--ui-canvas);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  color: var(--ui-text-muted);
  display: flex;
  font-size: 13px;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 13px;
}

.contributor-tab-context i { color: var(--brand-wine); }
.contributor-search--balance { margin-bottom: 12px; }
.contributor-actions--balance { justify-content: flex-end; }

.contributor-console__header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e8eeeb;
  display: flex;
  justify-content: space-between;
  padding: 24px 28px 20px;
}

.contributor-console__header h3 {
  color: #263b34;
  font-size: 22px;
  margin: 3px 0 5px;
}

.contributor-console__header p {
  color: #718079;
  margin: 0;
}

.contributor-console__eyebrow,
.contributor-label {
  color: #73817b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contributor-status {
  align-items: center;
  background: #f4f8f6;
  border-radius: 20px;
  display: flex;
  gap: 10px;
  padding: 8px 14px;
}

.contributor-status label {
  color: #40534b;
  font-size: 12px;
  margin: 0;
}

.contributor-status input {
  margin: 0;
}

.contributor-console__body {
  padding: 24px 28px 28px;
}

.contributor-search {
  margin: 7px 0 22px;
  position: relative;
}

.contributor-search i {
  color: #83928b;
  left: 14px;
  position: absolute;
  top: 13px;
  z-index: 2;
}

.contributor-search input {
  background: #fff;
  border: 1px solid #d7e0dc;
  box-shadow: none;
  font-size: 14px;
  height: 42px;
  padding-left: 40px;
}

.contributor-search input:focus {
  border-color: #5a9b7b;
  box-shadow: 0 0 0 3px rgba(90, 155, 123, .12);
}

.contributor-details,
.balance-summary {
  border-top: 1px solid #e8eeeb;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  padding-top: 22px;
}

.contributor-details {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.contributor-detail {
  border-bottom: 1px solid #edf1ef;
  min-height: 88px;
  padding: 12px 4px;
}

.contributor-detail span,
.balance-card span {
  color: #7a8982;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.contributor-detail strong {
  color: #2b3d36;
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contributor-detail small,
.balance-card small {
  color: #97a29d;
  display: block;
  margin-top: 4px;
}

.balance-card {
  background: #f7f9f8;
  border: 1px solid #e5ebe8;
  border-radius: 9px;
  padding: 18px;
}

.balance-card strong {
  color: #30443b;
  display: block;
  font-size: 23px;
  font-weight: 600;
}

.balance-card--pending {
  background: #fffaf1;
  border-color: #f0dfbd;
}

.balance-card--primary {
  background: #edf7f2;
  border-color: #cce5d8;
}

.balance-card--primary strong {
  color: #24724e;
}

.balance-card--negative {
  background: #fff2f2;
  border-color: #efcaca;
}

.balance-card--negative strong {
  color: #b33b3b;
}

.contributor-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.contributor-secondary-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  margin-top: 20px;
}

.contributor-secondary-grid--users { grid-template-columns: 1fr; }

.contributor-area-heading {
  border-top: 1px solid #dfe4e1;
  margin-top: 32px;
  padding: 26px 4px 13px;
}

.contributor-area-heading h3 {
  color: #263b34;
  font-size: 20px;
  margin: 3px 0 5px;
}

.contributor-area-heading p {
  color: #718079;
  font-size: 12px;
  margin: 0;
}

.contributor-section--data-tools .chatbot-tools {
  align-items: start;
  grid-template-columns: minmax(260px, .8fr) minmax(380px, 1.2fr);
}

.contributor-section {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(35, 55, 48, .08);
  margin: 0;
  overflow: hidden;
}

.contributor-section__header {
  align-items: center;
  border-bottom: 1px solid #e8eeeb;
  display: flex;
  gap: 13px;
  padding: 18px 20px;
}

.contributor-section__header h4 {
  color: #2d4038;
  font-size: 16px;
  margin: 0 0 3px;
}

.contributor-section__header p {
  color: #829089;
  font-size: 12px;
  margin: 0;
}

.contributor-section__icon {
  align-items: center;
  background: #edf7f2;
  border-radius: 9px;
  color: #438262;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.contributor-section__icon--data {
  background: #eef3fa;
  color: #4b6f9e;
}

.contributor-section__body {
  padding: 18px 20px 20px;
}

.authorized-email-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.authorized-email-list li {
  align-items: center;
  border-bottom: 1px solid #edf1ef;
  color: #43564e;
  display: flex;
  gap: 10px;
  overflow-wrap: anywhere;
  padding: 11px 4px;
}

.authorized-email-list li:last-child {
  border-bottom: 0;
}

.authorized-email-list i {
  color: #7b9186;
}

.authorized-email-list .authorized-email-empty {
  color: #919d98;
  font-size: 12px;
  font-style: italic;
}

.chatbot-tools {
  display: grid;
  gap: 14px;
}

.chatbot-action {
  align-items: center;
  background: #f8faf9;
  border: 1px solid #e3eae6;
  border-radius: 9px;
  color: #354a40;
  display: flex;
  gap: 12px;
  padding: 14px;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
}

.chatbot-action:hover {
  background: #f1f7f4;
  border-color: #bdd9cb;
}

.chatbot-action__icon {
  align-items: center;
  background: #e7f3ed;
  border-radius: 8px;
  color: #337b57;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.chatbot-action strong,
.chatbot-import strong {
  display: block;
  font-size: 13px;
}

.chatbot-action small,
.chatbot-import small {
  color: #85928c;
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

.chatbot-action__end {
  color: #799087;
  margin-left: auto;
}

.chatbot-import {
  border: 1px solid #e3eae6;
  border-radius: 9px;
  padding: 14px;
}

.chatbot-import__copy {
  margin-bottom: 10px;
}

.phone-import-preview {
  list-style: none;
  margin: 10px 0 0;
  max-height: 190px;
  overflow: auto;
  padding: 0;
}

.phone-import-preview li {
  background: #f8faf9;
  border-left: 3px solid #7aaa91;
  color: #53635c;
  font-size: 12px;
  margin-bottom: 5px;
  padding: 8px 10px;
}

.modern-file-control {
  align-items: stretch;
  display: flex;
  gap: 8px;
}

.modern-file-control input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.modern-file-picker {
  align-items: center;
  background: #f8faf9;
  border: 1px dashed #b9c9c1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex: 1;
  gap: 10px;
  margin: 0;
  min-width: 0;
  padding: 9px 11px;
  transition: background .2s ease, border-color .2s ease;
}

.modern-file-picker:hover {
  background: #f0f7f3;
  border-color: #6d9c83;
}

.modern-file-picker__icon {
  color: #4d8467;
  font-size: 20px;
}

.modern-file-picker__copy {
  min-width: 0;
}

.modern-file-picker__copy strong {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modern-file-picker__button {
  background: #fff;
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  color: #52675d;
  font-size: 11px;
  margin-left: auto;
  padding: 6px 9px;
}

@media (max-width: 767px) {
  .contributor-console__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .contributor-details,
  .balance-summary {
    grid-template-columns: 1fr;
  }

  .contributor-secondary-grid {
    grid-template-columns: 1fr;
  }

  .contributor-actions {
    flex-direction: column-reverse;
  }
  .contributor-area-heading { margin-top: 24px; padding: 22px 2px 12px; }
  .contributor-section--data-tools .chatbot-tools { grid-template-columns: 1fr; }
  .contributor-tabs.nav-tabs { gap: 0; }
  .contributor-tabs.nav-tabs > li { flex: 1 1 33.333%; }
  .contributor-tabs.nav-tabs > li > a { justify-content: center; padding-left: 8px; padding-right: 8px; text-align: center; white-space: normal; }
  .contributor-tabs__content .contributor-area-heading { margin-top: 0; padding-top: 2px; }
}

/* Shared visual system */
:root {
  --ui-brand: #411409;
  --ui-brand-soft: #6b2a1b;
  --ui-accent: #ffb828;
  --ui-positive: #3d7559;
  --ui-positive-dark: #315f49;
  --ui-warning: #b67819;
  --ui-danger: #b33b3b;
  --ui-ink: #3f4743;
  --ui-muted: #747d78;
  --ui-line: #dfe2e1;
  --ui-surface: #fff;
  --ui-surface-muted: #f4f5f5;
  --ui-canvas: #f7f8f8;
  --ui-radius: 12px;
  --ui-radius-sm: 7px;
  --ui-shadow: 0 8px 28px rgba(35, 42, 39, .08);
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.table,
.modal { font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; }
body { background: var(--ui-canvas); color: var(--ui-ink); }
.custom-background { background: #f7f8f8; }
.panel { background-color: var(--ui-surface); background-image: none; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); margin-bottom: 20px; }
.panel > .panel-heading { background: var(--ui-surface); border-color: var(--ui-line); border-radius: var(--ui-radius) var(--ui-radius) 0 0; color: var(--ui-ink); padding: 20px 24px; }
.panel > .panel-heading h4 { color: var(--ui-ink); font-size: 20px; font-weight: 600; margin: 2px 0; }
.panel > .panel-body { background-color: var(--ui-surface); padding: 24px; }
.panel > .panel-footer { background: var(--ui-surface-muted); border-color: var(--ui-line); border-radius: 0 0 var(--ui-radius) var(--ui-radius); padding: 14px 24px; }
.panel > .panel-heading,
.panel > .panel-footer,
.dropdown-menu,
.well,
.form-control,
.input-group-addon { background-image: none; }
.dropdown-menu { background-color: var(--ui-surface); border-color: var(--ui-line); }
.form-control { background-color: var(--ui-surface); border-color: #d7dcda; border-radius: var(--ui-radius-sm); box-shadow: none; color: var(--ui-ink); min-height: 38px; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { border-color: #9ca6a1; box-shadow: 0 0 0 3px rgba(63, 71, 67, .10); }
.table > thead > tr > th { background: var(--ui-surface-muted); border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12px; letter-spacing: .035em; padding: 13px 12px; text-transform: uppercase; }
.table > tbody > tr > td { border-color: #eceeed; padding: 14px 12px; vertical-align: middle; }
.table-hover > tbody > tr:hover { background: #f8f9f9; }
.responsive-table-shell { overflow-x: auto; }
.app-navbar { backdrop-filter: blur(10px); min-height: 66px; }
.app-navbar.navbar-default {
    background-color: #fff !important;
    background-image: none !important;
    --header-contact-icon: #7c8580;
    --header-contact-label: #858d89;
    --header-contact-value: var(--ui-brand);
    --header-contact-hover: var(--ui-brand-soft);
    --header-control: #59635e;
    --header-control-hover: #eef1ef;
    --header-balance-bg: #eef6f1;
    --header-balance-border: #c7dbce;
    --header-balance-text: #37644b;
}
.app-navbar.navbar-default-dev {
    background-color: var(--ui-brand) !important;
    background-image: none !important;
    --header-contact-icon: rgba(255, 255, 255, .72);
    --header-contact-label: rgba(255, 255, 255, .62);
    --header-contact-value: #f4e9e5;
    --header-contact-hover: #ffc65a;
    --header-control: rgba(255, 255, 255, .84);
    --header-control-hover: rgba(255, 255, 255, .10);
    --header-balance-bg: rgba(255, 255, 255, .12);
    --header-balance-border: rgba(255, 255, 255, .20);
    --header-balance-text: #f4e9e5;
}
.app-navbar .container { width: 100%; }
.app-navbar .navbar-header { padding-top: 9px; }
.app-navbar .app-navbar__invoice-contact { align-items: center; display: flex; height: 65px; justify-content: center; padding-top: 0; width: 100%; }
.app-navbar__invoice-email { align-items: center; color: inherit; display: inline-flex; gap: 10px; max-width: 100%; text-decoration: none; }
.app-navbar__invoice-email > .fa { color: var(--header-contact-icon); flex: 0 0 auto; font-size: 14px; }
.app-navbar__invoice-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; text-align: left; }
.app-navbar__invoice-copy small { color: var(--header-contact-label); font-size: 9px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.app-navbar__invoice-copy strong { color: var(--header-contact-value); font-size: 11px; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-navbar__invoice-email:hover,
.app-navbar__invoice-email:focus { text-decoration: none; }
.app-navbar__invoice-email:hover > .fa,
.app-navbar__invoice-email:focus > .fa,
.app-navbar__invoice-email:hover .app-navbar__invoice-copy strong,
.app-navbar__invoice-email:focus .app-navbar__invoice-copy strong { color: var(--header-contact-hover); }
.app-navbar .app-navbar__menu-control { height: 65px; padding-top: 9px; }
.app-navbar .custom-sidebar-toggle { align-items: center; border: 0; border-radius: 7px; display: flex; flex-direction: column; gap: 3px; height: 36px; justify-content: center; margin: 6px 0 0 15px; padding: 0; transition: background-color .16s ease; width: 36px; }
.app-navbar .custom-sidebar-toggle .icon-bar { background: var(--header-control) !important; border-radius: 2px; height: 2px; margin: 0; width: 17px; }
.app-navbar .custom-sidebar-toggle:hover,
.app-navbar .custom-sidebar-toggle:focus { background: var(--header-control-hover); outline: 0; }
.app-navbar .user-header-dropdown { align-items: center; height: 65px; }
.app-navbar #remaining-balance-a { align-items: center; display: flex; margin-right: 7px; }
.app-navbar .header-success-badge { background: var(--header-balance-bg) !important; border: 1px solid var(--header-balance-border); border-radius: 12px; box-shadow: none; color: var(--header-balance-text); font-size: 10px; font-weight: 700; line-height: 1.2; min-width: 34px; padding: 4px 8px; }
.app-navbar .app-navbar__user-menu { align-items: center; display: flex; gap: 8px; min-height: 42px; padding: 4px 7px !important; }
.app-navbar .app-navbar__user-menu:hover,
.app-navbar .app-navbar__user-menu:focus { background: var(--header-control-hover) !important; border-radius: 8px; }
.app-navbar .user-header-dropdown.open > .app-navbar__user-menu { background: var(--header-control-hover) !important; border-radius: 8px; }
.app-navbar.navbar-inverse .navbar-nav > li > a,
.app-navbar.navbar-inverse .navbar-nav > .open > a,
.app-navbar.navbar-inverse .navbar-nav > .open > a:hover,
.app-navbar.navbar-inverse .navbar-nav > .open > a:focus {
  background-color: transparent;
  background-image: none;
  color: inherit;
}
.app-navbar .header-user-name { color: var(--header-control); font-size: 12px; font-weight: 600; line-height: 1.3; }
.app-navbar__avatar { background-color: #fff; background-position: center; background-size: cover; border: 1px solid var(--header-balance-border); border-radius: 50%; display: block; flex: 0 0 34px; height: 34px; width: 34px; }
.app-navbar__user-chevron { color: var(--header-control); font-size: 11px; transition: transform .16s ease; }
.user-header-dropdown.open .app-navbar__user-chevron { transform: rotate(180deg); }
.app-navbar .app-navbar__account-menu { background: #fff; border: 1px solid #dfe3e1; border-radius: 10px; box-shadow: 0 12px 30px rgba(35, 42, 39, .16); left: auto; margin: 7px 0 0; min-width: 250px; overflow: hidden; padding: 8px; right: 0; }
.app-navbar__account-summary { align-items: center; display: flex; gap: 11px; min-width: 0; padding: 10px 9px 11px; }
.app-navbar__account-summary > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.app-navbar__account-summary small { color: #89918d; font-size: 9px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.app-navbar__account-summary strong { color: #3f4944; font-size: 11px; font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }
.app-navbar__account-icon { align-items: center; background: #f1f3f2; border-radius: 50%; color: #68726d; display: flex; flex: 0 0 32px; height: 22px; justify-content: center; width: 32px; }
.app-navbar .app-navbar__account-menu > .divider { background: #e7eae8; margin: 2px 5px 7px; }
.app-navbar .app-navbar__account-menu > li > .app-navbar__logout { align-items: center; border-radius: 7px; color: #5f6964; display: flex; font-size: 11px; font-weight: 600; gap: 9px; padding: 9px 10px; }
.app-navbar .app-navbar__account-menu > li > .app-navbar__logout:hover,
.app-navbar .app-navbar__account-menu > li > .app-navbar__logout:focus { background: #f6f1f0; color: var(--ui-brand); }
.app-navbar__logout .fa { font-size: 13px; width: 15px; }
.page-eyebrow { color: var(--ui-muted); display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-subtitle { color: var(--ui-muted); font-size: 12px; margin: 5px 0 0; }
.label-success, .progress-bar-success { background-color: var(--ui-positive); }
.label-warning, .progress-bar-warning { background-color: var(--ui-warning); }
.label-danger, .progress-bar-danger { background-color: var(--ui-danger); }
.alert-success { background: #f2f8f4; border-color: #bdd8c6; color: var(--ui-positive-dark); }
.alert-warning { background: #fff9ee; border-color: #ead2a5; color: #7d5a17; }
.alert-danger { background: #fff3f3; border-color: #dfb8b8; color: #8e3030; }
.history-console, .pdf-test-console { border: 0; overflow: hidden; }
.history-console > .panel-heading { padding-bottom: 0; }
.history-console > .panel-heading > .row:first-child { align-items: center; display: flex; }
.history-console #txt-filter { border-radius: 8px 0 0 8px; }
.history-filters { border: 1px solid var(--ui-line); box-shadow: none; margin: 22px 0 0; }
.history-filters .panel-body { padding: 16px 20px; }
.history-table p { margin-bottom: 0; }
.history-console .pagination { margin: 0; }
.history-console .panel-footer { text-align: center; }
.history-toolbar { align-items: center; display: flex; gap: 9px; justify-content: flex-end; width: 100%; }
.history-search-group { flex: 1 1 190px; min-width: 160px; }
.history-action { align-items: center; display: inline-flex; justify-content: center; min-height: 38px; white-space: nowrap; }
.history-action--search { border-left: 0; min-width: 40px; padding: 8px 12px; }
.history-action--search .glyphicon { margin: 0; }
.history-action--recharge { color: var(--ui-brand); flex: 0 0 auto; }
.history-action--recharge .fa { color: var(--ui-brand-soft); transition: color .15s, transform .15s; }
.history-action--recharge:hover,
.history-action--recharge:focus { background: #f8f1ef; border-color: #b9948b; color: var(--ui-brand); }
.history-action--recharge:hover .fa,
.history-action--recharge:focus .fa { color: var(--ui-brand); transform: scale(1.08); }
.history-action--transaction-type { justify-content: flex-start; min-width: 190px; padding-left: 13px; padding-right: 11px; }
.history-action--transaction-type .history-action__chevron { margin-left: auto; margin-right: 0; opacity: .55; }
.history-filter-label { color: #59615d; display: block; font-size: 11px; font-weight: 700; letter-spacing: .035em; margin: 0 0 7px; text-transform: uppercase; }
.history-filters #invoice-list { align-items: flex-end; display: flex; }
.history-date-field,
.history-report-field { display: flex; flex-direction: column; }
.history-type-control,
.history-report-control { align-items: center; display: flex; min-height: 38px; }
.history-date-control { border-radius: var(--ui-radius-sm); box-shadow: 0 1px 2px rgba(35, 42, 39, .03); transition: box-shadow .15s; width: 100%; }
.history-date-control .form-control { background: var(--ui-surface); border-right: 0; cursor: pointer; }
.history-date-control .form-control::placeholder { color: #9aa19d; }
.history-date-control .input-group-addon { background: var(--ui-surface-muted); border-color: #d7dcda; border-left: 0; color: #68736d; cursor: pointer; min-width: 42px; padding-left: 12px; padding-right: 12px; transition: background-color .15s, color .15s; }
.history-date-control:hover .input-group-addon { background: #ecefee; color: var(--ui-brand); }
.history-date-control:focus-within { box-shadow: 0 0 0 3px rgba(63, 71, 67, .10); }
.history-date-control:focus-within .form-control,
.history-date-control:focus-within .input-group-addon { border-color: #9ca6a1; }

/* Contextual actions: purchase, export, download and delivery (not save/filter controls) */
.btn-context-action { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-context-action .fa { transition: color .15s, transform .15s; }
.btn-context-action:hover .fa,
.btn-context-action:focus .fa { transform: scale(1.08); }
.btn-context-action--purchase:hover,
.btn-context-action--purchase:focus { box-shadow: 0 3px 10px rgba(65, 20, 9, .10); }
.btn-context-action--excel:hover,
.btn-context-action--excel:focus { box-shadow: 0 3px 10px rgba(49, 95, 73, .12); }
.btn-context-action--document:hover,
.btn-context-action--document:focus { box-shadow: 0 3px 10px rgba(64, 95, 108, .11); }
.btn-context-action--pdf:hover,
.btn-context-action--pdf:focus { box-shadow: 0 3px 10px rgba(135, 59, 52, .11); }
.btn-context-action--email:hover,
.btn-context-action--email:focus { box-shadow: 0 3px 10px rgba(64, 95, 130, .12); }

.history-action--export { color: #52605a; min-width: 142px; }
.history-action--export .fa { color: var(--ui-positive); }
.history-action--export:hover,
.history-action--export:focus { background: #eff7f2; border-color: #9fbea9; color: var(--ui-positive-dark); }
.history-action--export:hover .fa,
.history-action--export:focus .fa { color: var(--ui-positive-dark); }
.transaction-action { border-color: #d8ddda; color: #5b6660; }
.transaction-action:hover,
.transaction-action:focus { background: #f1f3f2; border-color: #b9c2bd; color: var(--ui-brand); }
.transaction-actions-voucher .fa { color: #607680; }
.transaction-actions-voucher:hover,
.transaction-actions-voucher:focus { background: #f1f5f7; border-color: #aabcc4; color: #405f6c; }
.transaction-actions-download-pdf .fa { color: #9b4a42; }
.transaction-actions-download-pdf:hover,
.transaction-actions-download-pdf:focus { background: #fff3f2; border-color: #d4aaa5; color: #873b34; }
.transaction-actions-resend .fa { color: #65756d; }
.transaction-actions-resend:hover,
.transaction-actions-resend:focus { background: #f1f5fa; border-color: #a9bad0; color: #405f82; }
.transaction-actions-resend:hover .fa,
.transaction-actions-resend:focus .fa { color: #405f82; }
.pdf-upload-picker { margin: 12px 0 16px; }
.pdf-upload-picker input[type="file"] { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
#pdfPreview { border: 1px solid var(--ui-line); border-radius: 10px; max-height: 760px; overflow: auto; }
#progress { border-radius: 20px; height: 8px; overflow: hidden; }
@media (max-width: 767px) {
  .main-container { padding-left: 14px; padding-right: 14px; padding-top: 82px; }
  .panel > .panel-heading, .panel > .panel-body, .panel > .panel-footer { padding-left: 16px; padding-right: 16px; }
  .app-navbar .navbar-header { text-align: center; }
  .app-navbar__invoice-copy { display: none; }
  .app-navbar__invoice-email { height: 36px; justify-content: center; width: 36px; }
  .app-navbar__invoice-email > .fa { font-size: 15px; }
  .history-toolbar { align-items: stretch; flex-direction: column; }
  .history-search-group,
  .history-action--recharge,
  .history-action--transaction-type { width: 100%; }
  .history-search-group { flex-basis: auto; }
  .history-filters #invoice-list { display: block; }
  .history-type-field { margin-bottom: 15px; }
  .history-date-field { margin-bottom: 15px; }
  .history-report-field { width: 100%; }
}

/* Minimal action system, matching activeUser.jsp */
.btn { background-image: none; border-radius: 7px; box-shadow: none; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 8px 14px; }
.btn-default { background: #fff; border: 1px solid #d8e1dc; color: #52675d; }
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open .btn-default.dropdown-toggle { background: #f6f8f7; border-color: #b9c9c1; color: #354a40; box-shadow: none; }
.btn-primary { background-color: #fff !important; border: 1px solid #d8e1dc; color: #52675d; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .btn-primary.dropdown-toggle { background-color: #f6f8f7 !important; border-color: #b9c9c1; color: #354a40; box-shadow: none; }
.btn-success { background: #3d7559; border: 1px solid #3d7559; color: #fff; }
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .btn-success.dropdown-toggle { background: #315f49; border-color: #315f49; color: #fff; box-shadow: 0 4px 12px rgba(49, 95, 73, .18); }
.btn-info { background: #fff; border: 1px solid #cbd8d1; color: #4d7561; }
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active,
.open .btn-info.dropdown-toggle { background: #f1f7f4; border-color: #9db9aa; color: #315f49; }
.btn-warning { background: #fff; border: 1px solid #ddc99f; color: #8a641c; }
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open .btn-warning.dropdown-toggle { background: #fffaf1; border-color: #c9ad73; color: #70500f; }
.btn-danger { background: #fff; border: 1px solid #dfb8b8; color: #a34242; }
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.open .btn-danger.dropdown-toggle { background: #fff3f3; border-color: #ca9292; color: #8e3030; }
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn { background-image: none !important; box-shadow: none; cursor: not-allowed; opacity: .55; }
.btn-default.disabled,
.btn-default[disabled],
.btn-primary.disabled,
.btn-primary[disabled] { background-color: #fff !important; border-color: #d8e1dc; color: #52675d; }
.btn-success.disabled,
.btn-success[disabled] { background-color: #3d7559 !important; border-color: #3d7559; color: #fff; }
.btn-info.disabled,
.btn-info[disabled] { background-color: #fff !important; border-color: #cbd8d1; color: #4d7561; }
.btn-warning.disabled,
.btn-warning[disabled] { background-color: #fff !important; border-color: #ddc99f; color: #8a641c; }
.btn-danger.disabled,
.btn-danger[disabled] { background-color: #fff !important; border-color: #dfb8b8; color: #a34242; }
.btn .fa,
.btn .glyphicon { margin-right: 5px; }
.btn-icon,
.history-table .btn { align-items: center; display: inline-flex; justify-content: center; min-height: 34px; min-width: 34px; padding: 7px 9px; }
.history-table .btn .fa,
.history-table .btn .glyphicon { margin-right: 0; }

/* Explicit page adoption of the contributor workspace design */
.app-page { max-width: 1180px; }
.app-console { border: 0; overflow: hidden; }
.page-intro { background: #fff; border: 1px solid #e7dfdb; border-radius: 12px; box-shadow: 0 8px 28px rgba(65, 20, 9, .07); margin-bottom: 20px; padding: 23px 27px; }
.page-intro h3 { color: #411409; font-size: 22px; margin: 3px 0 5px; }
.page-intro p { color: #786f6b; margin: 0; }
.app-console > .panel-heading { min-height: 84px; }

.payments-page { max-width: 920px; }
.payments-page .panel-body { padding: 8px 24px 18px; }
.payments-page .payment-method-td { border: 1px solid #e8e1de; border-radius: 9px; display: block; margin-top: 12px; padding: 17px 19px; }
.payments-page .payment-method-td:hover { background: #faf8f7; border-color: #d7c5bc; }
.payments-page .payment-method-td p { color: #493b36; font-size: 14px; margin: 0; }
.payments-page .payment-method-td .fa-credit-card { color: #9a650f; margin-right: 10px; }
.payments-page .delete-payment-method-btn { color: #a22f2f; }
.payments-page .panel-footer { text-align: right; }

.profile-intro { margin-bottom: 18px; }
.profile-card { box-shadow: 0 7px 24px rgba(35, 42, 39, .06); margin-bottom: 18px; overflow: hidden; }
.profile-card__header { align-items: center; background: #fff; border-bottom: 1px solid var(--ui-line); display: flex; gap: 13px; padding: 19px 22px; }
.profile-card__icon { align-items: center; background: #f2eeee; border-radius: 9px; color: var(--ui-brand); display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.profile-card__header h4 { color: var(--ui-ink); font-size: 17px; font-weight: 600; margin: 0 0 3px; }
.profile-card__header p { color: var(--ui-muted); font-size: 12px; margin: 0; }
.profile-card__body { padding: 21px 22px; }
.profile-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-data-item { border-bottom: 1px solid var(--ui-line); border-right: 1px solid var(--ui-line); min-height: 88px; padding: 20px 22px; }
.profile-data-item:nth-child(3n) { border-right: 0; }
.profile-data-item:nth-child(n+4) { border-bottom: 0; }
.profile-data-item > span { color: var(--ui-muted); display: block; font-size: 11px; font-weight: 600; letter-spacing: .035em; margin-bottom: 7px; text-transform: uppercase; }
.profile-data-item > strong { color: var(--ui-ink); display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.profile-data-item__heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 7px; }
.profile-data-item__heading > span { color: var(--ui-muted); font-size: 11px; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }
.profile-inline-action { background: transparent; border: 0; color: var(--ui-brand); font-size: 11px; padding: 2px 0 2px 8px; }
.profile-inline-action:hover, .profile-inline-action:focus { color: #6f2c20; outline: 0; text-decoration: underline; }
.profile-phone-values { display: grid; gap: 4px; }
.profile-phone-values > span { align-items: baseline; display: flex; gap: 7px; min-width: 0; }
.profile-phone-values small { color: var(--ui-muted); flex: 0 0 76px; font-size: 10px; text-transform: uppercase; }
.profile-phone-values strong { color: var(--ui-ink); font-size: 13px; overflow-wrap: anywhere; }
.profile-phone-editor[hidden] { display: none; }
.profile-phone-editor { border-top: 1px solid var(--ui-line); margin-top: 10px; padding-top: 10px; }
.profile-phone-editor > label { color: var(--ui-muted); display: block; font-size: 10px; font-weight: 600; margin: 8px 0 4px; text-transform: uppercase; }
.profile-phone-editor > label:first-child { margin-top: 0; }
.profile-phone-editor__actions { display: flex; gap: 7px; justify-content: flex-end; margin-top: 8px; }
.profile-phone-editor .help-block { color: #a22f2f; font-size: 11px; margin: 7px 0 0; }
.profile-data-item--wide { border-bottom: 0; border-right: 0; border-top: 1px solid var(--ui-line); grid-column: 1 / -1; }
.profile-api-key { align-items: center; background: var(--ui-canvas); border: 1px solid var(--ui-line); border-radius: 7px; display: flex; gap: 8px; padding: 7px 8px 7px 11px; }
.profile-api-key i { color: var(--ui-brand); }
.profile-api-key code { background: transparent; color: var(--ui-ink); flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 0; }
.profile-api-key button { align-items: center; background: #fff; border: 1px solid #d5dad7; border-radius: 6px; color: var(--ui-brand); display: inline-flex; flex: 0 0 auto; font-family: "Lato", sans-serif; font-size: 11px; gap: 5px; padding: 6px 9px; }
.profile-api-key button:hover, .profile-api-key button:focus { background: #f7f3f2; border-color: #bda59f; outline: 0; }
.profile-api-key button.is-copied { background: #f2f8f4; border-color: #b9d2c1; color: #3f7153; }
.profile-settings-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-settings-grid .profile-card { margin-bottom: 0; }
.profile-input-group { position: relative; }
.profile-input-group > i { color: #858e89; left: 13px; position: absolute; top: 12px; z-index: 2; }
.profile-input-group .form-control { padding-left: 37px; }
.profile-field-label { color: #59635e; display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.profile-field-help { color: var(--ui-muted); font-size: 11px; margin: -7px 0 14px; }
.profile-email-list { margin: 0; }
.profile-email-list .list-group-item { align-items: center; border-color: var(--ui-line); display: flex; justify-content: space-between; padding: 11px 12px; }
.profile-email-list .list-group-item > span { align-items: center; color: var(--ui-ink); display: flex; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.profile-email-list .list-group-item > span i { color: #8a938e; flex: 0 0 auto; }
.profile-email-remove { align-items: center; background: transparent; border: 0; border-radius: 50%; color: #8b7670; display: flex; flex: 0 0 30px; height: 30px; justify-content: center; margin-left: 8px; padding: 0; }
.profile-email-remove:hover, .profile-email-remove:focus { background: #fbefef; color: #a22f2f; outline: 0; }
.profile-email-empty { align-items: center; background: var(--ui-canvas); border: 1px dashed #ccd1ce; border-radius: 8px; color: var(--ui-muted); display: flex; flex-direction: column; gap: 7px; padding: 20px; text-align: center; }
.profile-email-empty i { font-size: 20px; }
.profile-notification-toggle { align-items: center; background: var(--ui-canvas); border: 1px solid var(--ui-line); border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; margin: 17px 0 0; padding: 13px; }
.profile-notification-toggle strong { color: var(--ui-ink); display: block; font-size: 13px; }
.profile-notification-toggle small { color: var(--ui-muted); display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.profile-switch { flex: 0 0 40px; margin-left: 12px; position: relative; }
.profile-switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.profile-switch > span { background: #c7cdca; border-radius: 20px; display: block; height: 22px; position: relative; transition: background .2s; width: 40px; }
.profile-switch > span::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.18); content: ""; height: 18px; left: 2px; position: absolute; top: 2px; transition: transform .2s; width: 18px; }
.profile-switch input:checked + span { background: #537861; }
.profile-switch input:checked + span::after { transform: translateX(18px); }
.profile-switch input:focus + span { box-shadow: 0 0 0 3px rgba(65, 20, 9, .10); }
.profile-card__actions { border-top: 1px solid var(--ui-line); display: flex; justify-content: flex-end; margin-top: 19px; padding-top: 17px; }
.profile-card__actions .btn { color: var(--ui-brand); }

.landing-page {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex: 1 0 auto;
    margin-bottom: 0;
    min-height: 0;
}
.landing-shell { margin: auto; max-width: 620px; width: 100%; }
.landing-page .login-card,
.landing-page .welcome-card { margin: 0; max-width: none; width: 100%; }
.landing-page--authenticated { padding-top: 72px; }
.landing-login { margin-left: auto !important; margin-right: auto !important; max-width: 560px !important; }
.landing-login__header { align-items: center; gap: 15px; justify-content: flex-start; }
.landing-login__header > div { flex: 1; min-width: 0; }
.landing-institution { color: #616b66; display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.35; margin: 2px 0 5px; }
.landing-login__context { align-items: center; display: flex; justify-content: flex-end; margin: 3px 0 5px; }
.landing-environment { align-items: center; background: #f1f3f2; border: 1px solid #d9dddb; border-radius: 12px; color: #68716c; display: inline-flex; font-size: 9px; font-weight: 600; gap: 5px; letter-spacing: .025em; line-height: 1; padding: 4px 7px; text-transform: uppercase; }
.landing-environment > i { background: #8a938e; border-radius: 50%; display: block; height: 5px; width: 5px; }
.landing-login__logo { flex: 0 0 60px; height: 60px; object-fit: contain; width: 60px; }
.landing-login__body { padding-bottom: 22px; }
.landing-field { margin-bottom: 16px; }
.landing-field > label { color: #59635e; display: block; font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.landing-field__control { position: relative; }
.landing-field__control > .fa:first-child { color: #858e89; left: 13px; position: absolute; top: 13px; z-index: 2; }
.landing-field__control .form-control { padding-left: 38px; }
.landing-field__control--password .form-control { padding-right: 42px; }
.landing-password-toggle { align-items: center; background: transparent; border: 0; color: #78817c; display: flex; height: 36px; justify-content: center; padding: 0; position: absolute; right: 2px; top: 1px; width: 38px; z-index: 2; }
.landing-password-toggle:hover,
.landing-password-toggle:focus { color: var(--ui-brand); outline: 0; }
.landing-security-option { align-items: center; color: #68716d; cursor: pointer; display: inline-flex; font-size: 11px; font-weight: 500; gap: 8px; margin: 0 0 18px; }
.landing-security-option input { margin: 0; }
.landing-login .alert { border-radius: 7px; font-size: 11px; margin-bottom: 13px; padding: 10px 12px; }
.landing-login__submit { color: var(--ui-brand); min-height: 40px; width: 100%; }
.landing-login__submit:hover,
.landing-login__submit:focus { background: #f8f1ef; border-color: #b9948b; color: var(--ui-brand); }
.landing-login__footer { align-items: center; background: var(--ui-surface-muted); border-top: 1px solid var(--ui-line); display: flex; gap: 13px; justify-content: center; padding: 14px 20px; }
.landing-login__footer a { color: var(--ui-brand-soft); font-size: 11px; font-weight: 600; }
.landing-login__footer > span { background: #cfd4d1; height: 14px; width: 1px; }
.landing-welcome { max-width: 620px !important; }
.landing-welcome__header { justify-content: flex-start; }
.landing-welcome__header p { color: #89918d; font-size: 11px; }
.landing-welcome__body { align-items: center; display: flex; flex-direction: column; gap: 11px; justify-content: center; padding: 22px 24px 24px; text-align: center; }
.landing-welcome #primary-index-img { display: block; height: 140px; margin: 0 auto; max-width: 160px; object-fit: contain; object-position: center; width: 160px; }
.landing-welcome__copy { margin: 0 auto; max-width: 390px; }
.landing-welcome__copy strong { color: var(--ui-ink); display: block; font-size: 14px; margin-bottom: 4px; }
.landing-welcome__copy span { color: #89918d; display: block; font-size: 11px; font-weight: 400; line-height: 1.5; }
.landing-welcome__action { align-items: center; color: var(--ui-brand); display: inline-flex; justify-content: center; min-width: 178px; white-space: nowrap; }
.landing-welcome__action:hover,
.landing-welcome__action:focus { background: #f8f1ef; border-color: #b9948b; color: var(--ui-brand); }

.registration-page { max-width: 1040px; }
.registration-page .registration-card { border: 0; border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); overflow: hidden; }
.registration-page .registration-card > .panel-body + .panel-body { border-top: 1px solid #e8e1de; }
.registration-page .registration-card .block { background: transparent; border-radius: 0; box-shadow: none; margin: 0; padding: 0; }
.registration-page .block-title { background: transparent; border-bottom: 1px solid var(--ui-line); border-radius: 0; margin: 0 0 18px; padding: 0 0 11px; }
.registration-page .block-title h4 { color: #411409; display: block; font-size: 17px; line-height: 1.4; margin: 0; padding: 0; text-transform: none; }
.registration-page .block-title p { color: var(--ui-muted); font-size: 11px; margin: 3px 0 0; }
.registration-page label { color: #5e4d46; font-size: 12px; font-weight: 600; }
.registration-page .form-group { margin-left: 0; margin-right: 0; }
.registration-page .block > .row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.registration-page .block > .row:last-child { margin-bottom: 0; }
.registration-page .block > .row > .form-group { flex: 1 1 0; float: none; margin-bottom: 0; padding: 0; width: auto; }
.registration-page .block > .row > .col-xs-12.form-group,
.registration-page .block > .row > .search-div { flex-basis: 100%; }
.registration-page .search-div > .col-md-12,
.registration-page .search-div > .col-md-8 { padding-left: 0; }
.registration-page .form-control[disabled] { background: #f2f3f3; color: #707773; cursor: not-allowed; }
.registration-date-control { position: relative; }
.registration-date-control > .fa { color: #7e8883; left: 13px; pointer-events: none; position: absolute; top: 12px; z-index: 2; }
.registration-date-control .form-control { background: var(--ui-surface); cursor: pointer; padding-left: 38px; }
.registration-date-control .form-control:hover { border-color: #b8c0bc; }
.registration-date-control .form-control:focus { border-color: #9ca6a1; box-shadow: 0 0 0 3px rgba(63, 71, 67, .10); }
.registration-date-control:focus-within > .fa { color: var(--ui-brand); }
.registration-date-control input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .62; }
.registration-date-control input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.registration-page textarea.form-control { min-height: 86px; resize: vertical; }
.registration-page .req { color: #a22f2f; }
.registration-notice { background: #f4f6f5; border: 1px solid var(--ui-line); border-radius: 7px; color: #5d6862; font-size: 11px; margin: 0 0 18px; padding: 10px 12px; }
.registration-notice .fa { color: #73817a; margin-right: 5px; }
.registration-password-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-password-grid .form-group { margin-bottom: 0; }
.registration-password-control { position: relative; }
.registration-password-control .form-control { padding-right: 72px; }
.registration-password-control .form-control-feedback { pointer-events: none; right: 36px; }
.registration-password-toggle { align-items: center; background: transparent; border: 0; color: #78817c; display: flex; height: 36px; justify-content: center; padding: 0; position: absolute; right: 1px; top: 1px; width: 38px; z-index: 3; }
.registration-password-toggle:hover,
.registration-password-toggle:focus { color: var(--ui-brand); outline: 0; }
.registration-actions { align-items: center; border-top: 1px solid var(--ui-line); display: flex; flex-wrap: wrap; justify-content: flex-end; margin-top: 20px; padding-top: 18px; }
.registration-actions > .btn { color: var(--ui-brand); min-width: 132px; }
.registration-actions > .btn:hover,
.registration-actions > .btn:focus { background: #f8f1ef; border-color: #b9948b; color: var(--ui-brand); }
.registration-actions .alert { flex: 0 0 100%; margin: 12px 0 0; order: 2; }
.registration-page #successful-register-container { background: #f2f8f4; border: 1px solid #bdd8c6; border-radius: 12px; color: #315f47; padding: 30px 22px; text-align: center; }
.registration-page #successful-register-container > .fa { font-size: 34px; margin-bottom: 8px; }
.registration-page #successful-register-container h3 { color: #315f47; font-size: 19px; margin: 0 0 5px; }
.registration-page #successful-register-container p { margin: 0; }

.verification-page { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 130px); }
.verification-card { background: #fff; border: 1px solid #e7dfdb; border-radius: 14px; box-shadow: 0 12px 38px rgba(65, 20, 9, .10); max-width: 600px; padding: 42px 28px; text-align: center; width: 100%; }
.verification-card__icon { font-size: 44px; margin-bottom: 12px; }
.verification-card h3 { color: #493b36; font-size: 21px; margin: 5px 0 22px; }
.verification-card--success .verification-card__icon { color: #4f8a69; }
.verification-card--error .verification-card__icon { color: #b33b3b; }

@media (max-width: 767px) {
  .page-intro { padding: 19px; }
  .profile-data-grid, .profile-settings-grid { grid-template-columns: 1fr; }
  .profile-data-item { border-right: 0; }
  .profile-data-item:nth-child(n+4) { border-bottom: 1px solid var(--ui-line); }
  .profile-data-item:last-child { border-bottom: 0; }
  .landing-page { display: block; min-height: 0; padding-left: 14px; padding-right: 14px; }
  .landing-login__header { align-items: center; gap: 10px; text-align: center; }
  .landing-login__header > div { width: 100%; }
  .landing-login__logo { flex-basis: 50px; height: 50px; width: 50px; }
  .landing-welcome__header { align-items: flex-start; }
  .landing-welcome__body { grid-template-columns: 1fr; text-align: center; }
  .landing-welcome #primary-index-img { height: 120px; margin: auto; max-width: 140px; width: 140px; }
  .landing-welcome__action { width: 100%; }
  .landing-login__footer { align-items: stretch; flex-direction: column; gap: 8px; text-align: center; }
  .landing-login__footer > span { display: none; }
  .registration-page .col-xs-6 { width: 100%; }
  .registration-page .block > .row { display: block; margin-bottom: 0; }
  .registration-page .block > .row > .form-group { margin-bottom: 15px; }
  .registration-password-grid { grid-template-columns: 1fr; }
  .registration-actions > .btn { width: 100%; }
  .verification-page { display: block; min-height: 0; }
}

/* Shared executive workspace, matching activeUser.jsp */
.workspace-console { background: #fff; border: 0; border-radius: 12px; box-shadow: 0 8px 28px rgba(35, 55, 48, .10); overflow: hidden; }
.workspace-console__header { background: #fff; border-bottom: 1px solid #e8eeeb; padding: 24px 28px 20px; }
.workspace-console__header > .row:first-child { align-items: center; display: flex; }
.workspace-console__title h3,
.workspace-console__title h4 { color: #263b34; font-size: 22px; margin: 3px 0 5px; }
.workspace-console__title .page-eyebrow { color: #73817b; }
.workspace-console__title .page-subtitle { color: #718079; }
.workspace-console__actions .input-group { width: 100%; }
.workspace-console__body { background: #fff; padding: 24px 28px 28px; }
.workspace-console__filters-row { float: none; padding: 0; width: 100%; }
.workspace-console .history-filters { background: #f4f5f5; border: 1px solid #dfe2e1; border-radius: 9px; margin: 22px 0 0; }
.workspace-console .history-filters .panel-body { background: transparent; color: #46504b; }
.workspace-console .history-filters .panel-body { padding: 18px; }
.workspace-console .history-table { border: 1px solid #e5ebe8; border-radius: 9px; margin: 0; overflow: hidden; }
.workspace-console .history-table > thead > tr > th { background: #f7f9f8; color: #65756d; }
.workspace-console .history-table > tbody > tr:hover { background: #f8fbf9; }
.workspace-console .panel-footer { background: #f8faf9; border-color: #e8eeeb; }

.pdf-test-console .pdf-workspace-grid { align-items: flex-start; display: flex; gap: 0; overflow: visible; }
.pdf-test-console .contributor-console__body { background: var(--ui-surface); }
.pdf-test-console .contributor-section { background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 0; overflow: visible; }
.pdf-test-console .pdf-settings-card { border-right: 1px solid var(--ui-line); flex: 0 0 42%; min-width: 0; padding: 0 24px 0 0; width: 42%; }
.pdf-test-console .pdf-preview-card { flex: 1 1 58%; min-width: 0; padding: 0 0 0 24px; width: 58%; }
.pdf-test-console #pdfPreview { display: block; height: auto; max-height: none; max-width: 100%; object-fit: contain; width: auto; }
.pdf-test-console .modern-file-picker { max-width: 100%; overflow: visible; width: 100%; }
.pdf-test-console .modern-file-picker__copy { min-width: 0; overflow: hidden; }
.pdf-test-console .modern-file-picker__copy strong,
.pdf-test-console .modern-file-picker__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-test-console .pdf-settings-card h5,
.pdf-test-console .pdf-preview-card h5 { color: var(--ui-ink); font-size: 12px; font-weight: 600; letter-spacing: .035em; margin: 0 0 12px; text-transform: uppercase; }
.pdf-test-console .pdf-settings-card label { color: #65756d; }
.pdf-test-console .pdf-settings-card #frmTestPdf > .form-group { float: none; margin: 0; padding: 0; width: 100%; }
.pdf-test-console .pdf-settings-card #frmTestPdf > .form-group > .form-group { margin: 0; }
.pdf-test-console .modern-file-picker { background: #f8faf9; border-color: #b9c9c1; }
.pdf-test-console .modern-file-picker:hover { background: #f1f7f4; border-color: #6d9c83; }
.pdf-test-console .modern-file-picker__icon { color: #4d8467; }
.coordinate-editor { background: transparent; border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; clear: both; margin: 16px 0 0; min-width: 0; overflow: visible; padding-top: 15px; width: 100%; }
.coordinate-editor__header { background: transparent; border: 0; padding: 0 0 12px; }
.coordinate-editor__header strong { color: var(--ui-ink); display: block; font-size: 12px; font-weight: 600; }
.coordinate-editor__header small { color: var(--ui-muted); display: block; font-size: 10px; margin-top: 2px; }
.coordinate-editor__grid { display: grid; gap: 10px; grid-template-columns: 1fr; padding: 0; }
.coordinate-field { margin: 0; min-width: 0; }
.coordinate-field--full { grid-column: auto; }
.pdf-test-console .coordinate-field > label { align-items: center; color: #59635e; display: flex; font-size: 11px; font-weight: 600; justify-content: space-between; margin-bottom: 6px; }
.coordinate-field > label span { background: #e9ecea; border-radius: 5px; color: #69736e; font-size: 9px; font-weight: 700; min-width: 21px; padding: 2px 5px; text-align: center; }
.coordinate-field .form-control { background: var(--ui-surface); font-variant-numeric: tabular-nums; text-align: right; }
.coordinate-field.has-error .form-control { border-color: #c98e89; box-shadow: 0 0 0 3px rgba(148, 69, 63, .08); }
.coordinate-field .help-block { color: #94453f; font-size: 10px; margin: 4px 0 0; }
.coordinate-editor__footer { align-items: center; background: transparent; border: 0; display: flex; justify-content: flex-end; padding: 14px 0 0; }
.coordinate-editor__footer #btnSave { color: var(--ui-brand); flex: 0 0 auto; width: auto; }
.coordinate-editor__footer #btnSave:hover,
.coordinate-editor__footer #btnSave:focus { background: #f8f1ef; border-color: #b9948b; color: var(--ui-brand); }

@media (max-width: 767px) {
  .workspace-console__header { padding: 20px; }
  .workspace-console__header > .row:first-child { display: block; }
  .workspace-console__actions { margin-top: 16px; }
  .workspace-console__body { padding: 18px; }
  .pdf-test-console .contributor-section { min-height: 0; }
  .pdf-test-console .pdf-workspace-grid { display: block; }
  .pdf-test-console .pdf-settings-card,
  .pdf-test-console .pdf-preview-card { width: 100%; }
  .pdf-test-console .pdf-settings-card { border-bottom: 1px solid var(--ui-line); border-right: 0; margin-bottom: 20px; padding: 0 0 20px; }
  .pdf-test-console .pdf-preview-card { padding: 0; }
  .coordinate-editor__grid { grid-template-columns: 1fr; }
  .coordinate-field--full { grid-column: auto; }
  .coordinate-editor__footer #btnSave { width: auto; }
}

/* Modern, neutral modal system */
.modal-backdrop.in { opacity: .38; }
.modal-open { padding-right: 0 !important; }
.modal-dialog { margin-top: 7vh; }
.modal.fade .modal-dialog { transform: translateY(10px) scale(.985); transition: transform .2s ease-out; }
.modal.in .modal-dialog { transform: translateY(0) scale(1); }
.modal-content { background: #fff; border: 0; border-radius: 18px; box-shadow: 0 28px 80px rgba(25, 31, 28, .22); color: var(--ui-ink); overflow: hidden; }
.modal-header { align-items: flex-start; background: #fff; border-bottom: 0; border-radius: 0; box-shadow: none; color: var(--ui-brand); display: flex; flex-direction: column; min-height: 64px; padding: 24px 26px 10px; position: relative; }
.modal-header .modal-title,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5 { color: var(--ui-brand); font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; margin: 0; padding-right: 42px; }
.modal-header .close { align-items: center; background: #f3f4f3; border: 0; border-radius: 50%; color: #626a66; display: flex; font-size: 20px; height: 34px; justify-content: center; margin: 0; opacity: 1; padding: 0 0 2px; position: absolute; right: 22px; text-shadow: none; top: 20px; transition: background-color .16s ease, color .16s ease, transform .16s ease; width: 34px; }
.modal-header .close:hover,
.modal-header .close:focus { background: #e4e8e6; color: var(--ui-brand); opacity: 1; outline: 0; transform: scale(1.04); }
.modal-body { background: #fff; color: #46504b; padding: 18px 26px 28px; }
.modal-body h4,
.modal-body h5,
.modal-body label,
.modal-body p,
.modal-body span:not(.label):not(.glyphicon):not(.fa) { color: #46504b; }
.modal-body label { color: #3f4944; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.modal-body .help-block,
.modal-body small { color: var(--ui-muted); }
.modal-footer { align-items: center; background: #fff; border-radius: 0; border-top: 1px solid #eef0ef; box-shadow: none; color: #46504b; display: flex; gap: 9px; justify-content: flex-end; margin: 0; min-height: 70px; padding: 14px 26px 18px; width: 100%; }
.recover-password-body { padding: 26px 28px 24px; }
.recover-password-intro { line-height: 1.55; margin: 0 0 20px; }
.recover-password-form { margin: 0; }
.recover-password-form .form-group { margin-bottom: 18px; }
.recover-password-form .form-group:last-child { margin-bottom: 0; }
.recover-password-form .form-control { border-color: var(--ui-line); border-radius: 7px; box-shadow: none; height: 42px; }
.recover-password-form .form-control:focus { border-color: #aeb9b3; box-shadow: 0 0 0 3px rgba(89, 105, 97, .1); }
.recover-password-actions { gap: 8px; }
#recover-password-modal .modal-dialog { max-width: 500px; }
#recover-password-modal .recover-password-intro { color: var(--ui-muted); font-size: 13px; max-width: 410px; }
.modal-footer::before,
.modal-footer::after { display: none; }
.modal-footer .btn { border-radius: 8px; box-shadow: none; font-size: 12px; font-weight: 600; min-height: 38px; padding: 8px 16px; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.modal-footer .btn-default { background-color: #fff !important; border-color: #d5dbd8; color: #46564e; }
.modal-footer .btn-primary { background-color: var(--ui-brand) !important; border-color: var(--ui-brand); color: #fff; }
.modal-footer .btn-default:hover,
.modal-footer .btn-default:focus { background-color: #e9edeb !important; border-color: #b7c1bc; color: #303d36; outline: 0; transform: translateY(-1px); }
.modal-footer .btn-primary:hover,
.modal-footer .btn-primary:focus { background-color: #572016 !important; border-color: #572016; color: #fff; outline: 0; transform: translateY(-1px); }
.modal .alert { border-radius: 8px; font-size: 12px; }
.modal .alert-danger { background: #fff5f5; border: 1px solid #e3baba; color: #8e3030; }
.modal .alert-warning { background: #fffaf1; border: 1px solid #ddc99f; color: #70500f; }
.modal .alert-success { background: #f2f8f4; border: 1px solid #bdd8c6; color: #315f47; }
.modal .alert-info { background: #f4f7f8; border: 1px solid #ccd8dc; color: #405c66; }
.modal .alert *,
.modal .alert .message-text { color: inherit; }
.modal .label { border-radius: 5px; font-weight: 600; padding: 4px 7px; }
.modal .label-default { background: #eef0ef; color: #4d5752; }
.modal .label-success { background: #eef6f1; border: 1px solid #c5dbcd; color: #37644b; }
.modal .label-warning { background: #fff8ea; border: 1px solid #e2cfaa; color: #785713; }
.modal .label-danger { background: #fff1f1; border: 1px solid #e1bcbc; color: #923838; }
.modal .form-control { background: #fff; border: 1px solid #d7ddda; border-radius: 8px; box-shadow: none; color: #3f4743; min-height: 42px; transition: border-color .16s ease, box-shadow .16s ease; }
.modal .form-control:focus { border-color: #9ea9a3; box-shadow: 0 0 0 3px rgba(65, 20, 9, .07); }
.modal .help-block { font-size: 11px; margin: 7px 0 0; }
.modal-form .form-group { margin: 0 0 18px; }
.modal-form .form-group:last-child { margin-bottom: 0; }
.modal-form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.card-expiration-fields { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr auto 1fr; }
.card-expiration-fields > span { color: var(--ui-muted); }
.modal-table-shell { border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
.modal-order-table { margin: 0; }
.modal-order-table > thead > tr > th { background: #f6f7f6; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.modal-section { margin-top: 22px; }
.modal-section > h5 { font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.payment-methods { display: grid; gap: 8px; }
.payment-methods .radio { margin: 0; }
.payment-method-label { align-items: center; background: #f7f8f7; border: 1px solid var(--ui-line); border-radius: 10px; cursor: pointer; display: flex; gap: 11px; margin: 0; min-height: 46px; padding: 10px 13px; width: 100%; }
.payment-method-label:hover { background: #f0f2f1; border-color: #cbd2ce; }
.payment-method-label input { margin: 0; position: static; }
.payment-method-label p { align-items: center; display: flex; gap: 9px; margin: 0; }
.pnl-no-payment-methods { background: #f7f8f7; border: 1px dashed #d4dad7; border-radius: 10px; padding: 20px; text-align: center; }
.pnl-no-payment-methods h5 { margin: 0 0 6px; }
.modal-product-list { display: grid; gap: 10px; }
.modal-product-row { align-items: center; background: #f7f8f7; border: 1px solid var(--ui-line); border-radius: 10px; display: grid; gap: 12px; grid-template-columns: 72px 1fr auto; margin: 0; padding: 12px; width: 100%; }
.modal-product-row .form-control { min-height: 36px; text-align: center; width: 72px; }
.modal-product-row .txt-product-price { color: var(--ui-positive-dark); font-weight: 700; }
.modal-details { display: grid; gap: 0; }
.modal-detail-row { align-items: center; border-bottom: 1px solid #edf0ee; display: grid; gap: 18px; grid-template-columns: minmax(150px, .9fr) 1.1fr; min-height: 52px; }
.modal-detail-row:last-child { border-bottom: 0; }
.modal-detail-row > span { color: var(--ui-muted); font-size: 12px; }
.modal-detail-row > strong { color: var(--ui-ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .modal-dialog { margin: 18px 12px; }
  .modal-header { min-height: 58px; padding: 20px 20px 8px; }
  .modal-header .close { right: 16px; top: 16px; }
  .modal-body { padding: 22px 20px 24px; }
  .modal-footer { min-height: 60px; padding: 11px 20px; }
  .modal-form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-detail-row { align-items: start; gap: 5px; grid-template-columns: 1fr; padding: 12px 0; }
  .modal-product-row { grid-template-columns: 64px 1fr; }
  .modal-product-row .txt-product-price { grid-column: 2; }
}
.modal .btn-primary *,
.modal .btn-default * { color: inherit; }
.modal-subtitle { color: #747d78; font-size: 12px; margin: 4px 0 0; }
.transaction-type-modal .modal-dialog { max-width: 520px; }
.transaction-type-list { display: grid; gap: 8px; }
.transaction-type-list .checkbox { margin: 0; }
.transaction-type-list .checkbox label { align-items: center; background: #f7f8f8; border: 1px solid #e0e3e2; border-radius: 8px; cursor: pointer; display: flex; font-weight: 500; gap: 11px; min-height: 44px; padding: 10px 13px; transition: background .15s, border-color .15s; width: 100%; }
.transaction-type-list .checkbox label:hover { background: #eef1ef; border-color: #c7ceca; }
.transaction-type-list .checkbox input { margin: 0; position: static; }
.transaction-type-list .checkbox span { color: #46504b; }

/* Shared autocomplete dropdown */
.autocomplete-suggestions {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  box-shadow: 0 12px 28px rgba(35, 42, 39, .12);
  color: var(--ui-ink);
  overflow: auto;
  padding: 5px;
}
.autocomplete-suggestion {
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autocomplete-selected { background: var(--ui-surface-muted); }
.autocomplete-suggestions strong { color: var(--ui-brand); font-weight: 600; }
.autocomplete-group { color: var(--ui-muted); font-size: 10px; padding: 7px 10px 4px; text-transform: uppercase; }
.autocomplete-group strong { border-bottom: 1px solid var(--ui-line); display: block; padding-bottom: 5px; }

/* Global neutral surfaces; color is reserved for semantic states */
.app-page .panel-body,
.workspace-console__body,
.contributor-console__body,
.contributor-section__body { background-color: #fff; }
.app-page .panel .panel,
.workspace-console .panel,
.workspace-section,
.well { background-color: #f4f5f5; border-color: #dfe2e1; }
.app-page .panel-footer,
.workspace-console .panel-footer { background-color: #f6f7f7; border-color: #dfe2e1; }
.app-page .table > thead > tr > th,
.workspace-console .table > thead > tr > th { background-color: #f1f2f2; border-color: #dfe2e1; color: #59615d; }
.app-page .table-hover > tbody > tr:hover,
.workspace-console .table-hover > tbody > tr:hover { background-color: #f7f8f8; }
.app-page .list-group-item,
.workspace-console .list-group-item { background-color: #fff; border-color: #e1e4e3; }
.app-page .modern-file-picker,
.workspace-console .modern-file-picker { background-color: #f5f6f6; border-color: #cdd2d0; }
.app-page .modern-file-picker:hover,
.workspace-console .modern-file-picker:hover { background-color: #ecefee; border-color: #adb6b1; }
.app-page .input-group-addon,
.workspace-console .input-group-addon { background-color: #f1f2f2; border-color: #d8dcda; color: #626b66; }

/* Minimal institutional sidebar */
#sidebar-wrapper { background: var(--ui-brand); box-shadow: 3px 0 18px rgba(34, 15, 10, .14); overflow-x: hidden; }
#sidebar.sidebar-nav { font-weight: 400; padding: 0 10px; }
#sidebar .sidebar-brand { background: var(--ui-brand) !important; border-bottom: 1px solid rgba(255, 255, 255, .12); height: 66px; margin: 0 -10px 18px; }
#sidebar .sidebar-brand > a { align-items: center; display: flex; gap: 11px; height: 66px; padding: 9px 17px; text-indent: 0; }
.sidebar-brand__logo { flex: 0 0 44px; height: 44px; object-fit: contain; width: 44px; }
.sidebar-brand__name { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left; }
#sidebar > li:not(.sidebar-brand) { border-left: 3px solid transparent; margin: 3px 0; }
#sidebar > li:not(.sidebar-brand) > a { align-items: center; border-radius: 6px; color: rgba(255, 255, 255, .86); display: flex; gap: 12px; line-height: 20px; min-height: 42px; padding: 11px 13px; text-indent: 0; }
#sidebar > li:not(.sidebar-brand) > a:hover,
#sidebar > li:not(.sidebar-brand) > a:focus { background: rgba(255, 255, 255, .08); color: #fff; }
#sidebar > li.active { border-left-color: var(--ui-accent); }
#sidebar > li.active > a { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 600; }
#sidebar .sidebar-item-icon { flex: 0 0 17px; font-size: 14px; margin: 0; opacity: .82; text-align: center; width: 17px; }
#sidebar .sidebar-item-icon + span { min-width: 0; }
#sidebar > li.active .sidebar-item-icon { color: var(--ui-accent); opacity: 1; }

/* Continuous minimal header line */
.app-navbar.navbar-default,
.app-navbar.navbar-default-dev { border: 0; border-bottom: 1px solid var(--ui-line); box-shadow: 0 2px 12px rgba(35, 42, 39, .06); height: 66px; min-height: 66px; }
.app-navbar > .container,
.app-navbar > .container > .row { height: 65px; }
#sidebar .sidebar-brand { box-sizing: border-box; height: 66px; }

/* Institutional footer: always in normal document flow */
.app-footer { background: var(--ui-canvas); border-top: 1px solid #dde0de; clear: both; color: #727b76; display: block; flex: 0 0 auto; font-size: 11px; line-height: 1.5; margin-top: 32px; position: static; width: 100%; }
#page-content-wrapper > .app-footer:not(:last-of-type) { display: none; }
.app-footer__legal { background: transparent; border: 0; }
.app-footer__legal .container { align-items: center; display: flex; justify-content: center; max-width: 1180px; min-height: 46px; padding: 0 15px; width: 100%; }
.app-footer__rights { align-items: center; display: inline-flex; gap: 9px; justify-content: center; }
.app-footer__rights img { border-right: 1px solid #dfe3e1; display: block; height: 22px; object-fit: contain; padding-right: 12px; width: 80px; }

@media (max-width: 767px) {
  .app-footer { margin-top: 28px; }
  .app-footer__legal .container { min-height: 58px; padding: 9px 16px; }
  .app-footer__rights { flex-wrap: wrap; row-gap: 3px; text-align: center; }
}

/* History floating controls and pagination */
.history-console.workspace-console { overflow: visible; }
.history-console .workspace-console__header { border-radius: 12px 12px 0 0; overflow: visible; padding: 20px 24px 16px; position: relative; z-index: 2; }
.history-console .workspace-console__title h4 { font-size: 20px; margin-bottom: 3px; }
.history-console .page-subtitle { margin-top: 3px; }
.history-console .workspace-console__filters-row { float: none; padding: 0; width: 100%; }
.history-console .history-filters { background: #fafbfa; border-color: #e6e9e7; border-radius: 10px; margin-top: 16px; }
.history-console .history-filters .panel-body { padding: 13px 15px; }
.history-console .history-filter-label { color: #747d78; font-size: 10px; margin-bottom: 6px; }
.history-console .history-action { min-height: 36px; }
.history-console .history-action--transaction-type,
.history-console .history-action--export { min-width: 0; width: 100%; }
.history-console .workspace-console__body { padding: 18px 20px 20px; }
.history-console .history-filters,
.history-console .history-filters .panel-body,
.history-console #invoice-list { overflow: visible; }
.history-console .workspace-console__body { position: relative; z-index: 1; }
.history-console > .panel-footer { background: #fff; border-radius: 0 0 12px 12px; min-height: 58px; padding: 11px 20px; position: relative; text-align: center; z-index: 1; }
.bootstrap-datetimepicker-widget.dropdown-menu { background: #fff; border: 1px solid #d7dcda; border-radius: 9px; box-shadow: 0 10px 28px rgba(35, 42, 39, .18); color: #3f4743; z-index: 1200 !important; }
.history-console .pagination { display: inline-flex; gap: 4px; margin: 0; vertical-align: middle; }
.history-console .pagination > li > a { background: #fff; border: 1px solid transparent; border-radius: 6px; color: #626d67; cursor: pointer; margin: 0; min-width: 32px; padding: 6px 9px; }
.history-console .pagination > li > a:hover,
.history-console .pagination > li > a:focus { background: #f0f2f1; border-color: #d9dddb; color: #303a35; }
.history-console .pagination > li.active > a,
.history-console .pagination > li.active > a:hover,
.history-console .pagination > li.active > a:focus { background: #59655f; border-color: #59655f; color: #fff; }

/* History results, states and responsive cards */
.history-active-filters { align-items: center; display: none; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.history-active-filters.is-visible { display: flex !important; }
.history-filter-chip { align-items: center; background: #f1f3f2; border: 1px solid #d8ddda; border-radius: 20px; color: #59635e; display: inline-flex; font-size: 11px; gap: 7px; min-height: 28px; padding: 4px 5px 4px 11px; }
.history-filter-chip__remove { align-items: center; background: transparent; border: 0; border-radius: 50%; color: #7a837f; display: inline-flex; font-size: 16px; height: 20px; justify-content: center; line-height: 1; padding: 0; width: 20px; }
.history-filter-chip__remove:hover,
.history-filter-chip__remove:focus { background: #dde1df; color: var(--ui-brand); outline: 0; }

.history-table-state { align-items: center; color: var(--ui-muted); display: flex; flex-direction: column; justify-content: center; min-height: 230px; padding: 36px 20px; text-align: center; }
.history-table-state__spinner { animation: history-spin .8s linear infinite; border: 2px solid #dfe3e1; border-radius: 50%; border-top-color: #66716b; display: none; height: 28px; margin-bottom: 14px; width: 28px; }
.history-table-state__empty-icon { color: #a1aaa5; display: none; font-size: 30px; margin-bottom: 13px; }
.history-table-state__title { color: var(--ui-ink); font-size: 14px; margin-bottom: 5px; }
.history-table-state__message { font-size: 12px; }
.history-table-state.is-loading .history-table-state__spinner { display: block; }
.history-table-state.is-loading + .responsive-table-shell { display: none; }
.history-table-state.is-empty .history-table-state__empty-icon,
.history-table-state.is-error .history-table-state__empty-icon { display: block; }
.history-table-state.is-error .history-table-state__empty-icon { color: #a56b66; }
@keyframes history-spin { to { transform: rotate(360deg); } }

.history-table {
    border-collapse: collapse;
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 0;
    width: 100%;
}
.history-table > thead > tr > th {
    background: #f8f9f8;
    border-bottom-color: #e4e7e5;
    color: #727b76;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    padding: 11px 10px;
    position: static;
    vertical-align: middle;
}
.history-sort { align-items: center; background: transparent; border: 0; color: inherit; display: inline-flex; font: inherit; font-weight: 700; gap: 6px; justify-content: flex-end; padding: 0; text-transform: inherit; }
.history-date-column .history-sort { justify-content: center; width: 100%; }
.history-number-column .history-sort { width: 100%; }
.history-sort .fa { color: #a3aaa6; font-size: 10px; }
.history-sort:hover,
.history-sort:focus,
.history-sort.is-active { color: var(--ui-brand); outline: 0; }
.history-sort.is-active .fa { color: var(--ui-brand); }
.history-table > tbody > tr > td {
    border-color: #eef0ef;
    color: #3f4944;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    padding: 10px;
    transition: background-color .15s;
}
.history-table > tbody > tr.success > td { background: #f2f8f4; }
.history-table > tbody > tr.info > td { background: #f2f6f8; }
.history-table > tbody > tr.warning > td { background: #fff8eb; }
.history-table > tbody > tr.danger > td { background: #fbf1f1; }
.history-table > tbody > tr:hover > td { background: #fafbfa; }
.history-table > tbody > tr.success:hover > td { background: #e9f4ed; }
.history-table > tbody > tr.info:hover > td { background: #e9f1f5; }
.history-table > tbody > tr.warning:hover > td { background: #fff2da; }
.history-table > tbody > tr.danger:hover > td { background: #f7e7e7; }
.history-date-column { width: 116px; }
.history-user-column { width: 165px; }
.history-description-column { text-align: left; }
.history-number-column { width: 118px; }
.history-actions-column { text-align: center; width: 112px; }
.history-table .transaction-description { display: block; line-height: 1.35; margin: 0; max-width: 460px; min-width: 180px; text-align: left; }
.history-table .transaction-user { color: #46504b; font-family: inherit; font-size: 12px; font-weight: 500; }
.transaction-date { display: block; font-style: normal; line-height: 1.3; text-align: center; white-space: nowrap; }
.transaction-date__day { color: #3f4944; display: block; font-size: 12px; font-weight: 600; }
.transaction-date__time { color: var(--ui-muted); display: block; font-size: 10px; margin-top: 2px; }
.transaction-description__primary { color: #35413b; display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; white-space: normal; }
.transaction-description__details { color: var(--ui-muted); display: block; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; white-space: normal; }
.transaction-description__details:empty { display: none; }
.transaction-description__detail { display: block; margin-top: 2px; }
.history-value-cell {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
}
.history-value-cell p {
    color: #34413b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.35;
    margin: 0;
}
.history-value-cell .transaction-amount { font-weight: 600; }
.history-value-cell .transaction-amount.is-positive { color: var(--ui-positive-dark); }
.history-value-cell .transaction-amount.is-negative { color: #94453f; }
.history-value-cell .transaction-amount.is-neutral,
.history-value-cell .transaction-balance {
    color: #66706b;
    font-size: 11px;
    font-weight: 500;
}
.transaction-status { border-radius: 10px; display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: .04em; margin-top: 4px; padding: 2px 6px; text-transform: uppercase; }
.transaction-status--voided { background: #f5eeee; border: 1px solid #ddc4c1; color: #8a4540; display: none; float: right; }
.history-actions-cell { min-width: 112px; text-align: center; white-space: nowrap; }
.history-actions-cell .transaction-action { border-color: transparent; min-height: 22px; min-width: 32px; padding: 6px 8px; }

.history-console > .panel-footer { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.history-console > .panel-footer nav { margin-left: auto; }
.history-pagination-summary { color: var(--ui-muted); font-size: 11px; text-align: left; }
.history-page-size { align-items: center; color: var(--ui-muted); display: inline-flex; font-size: 11px; font-weight: 500; gap: 7px; margin: 0 0 0 auto; }
.history-page-size .form-control { font-size: 11px; height: 30px; min-height: 30px; padding: 3px 8px; text-align: center; width: 72px; }
.history-page-size + nav { margin-left: 0 !important; }
.history-console .pagination > li.disabled > a,
.history-console .pagination > li.disabled > a:hover { background: #f4f5f5; border-color: #e1e4e2; color: #a4aaa7; cursor: default; }

@media (max-width: 767px) {
  .history-console .workspace-console__body { padding: 14px; }
  .history-console .responsive-table-shell { overflow: visible; }
  .history-table,
  .history-table > tbody,
  .history-table > tbody > tr,
  .history-table > tbody > tr > td { display: block; width: 100%; }
  .history-table > thead { display: none; }
  .history-table > tbody > tr { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 10px; box-shadow: 0 3px 12px rgba(35, 42, 39, .05); margin-bottom: 12px; overflow: hidden; padding: 9px 13px; }
  .history-table > tbody > tr > td { align-items: flex-start; border: 0; display: flex; gap: 14px; justify-content: space-between; min-height: 36px; padding: 8px 0; text-align: right; }
  .history-table > tbody > tr > td::before { color: var(--ui-muted); content: attr(data-label); flex: 0 0 88px; font-size: 10px; font-weight: 700; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
  .history-table > tbody > tr > td p { margin: 0; text-align: right; }
  .history-table .transaction-description { min-width: 0; width: 100%; }
  .transaction-description__primary,
  .transaction-description__details { white-space: normal; }
  .history-table > tbody > tr.success { border-left: 3px solid var(--ui-positive); }
  .history-table > tbody > tr.info { border-left: 3px solid #668393; }
  .history-table > tbody > tr.warning { border-left: 3px solid var(--ui-warning); }
  .history-table > tbody > tr.danger { border-left: 3px solid var(--ui-danger); }
  .history-table > tbody > tr.success > td,
  .history-table > tbody > tr.info > td,
  .history-table > tbody > tr.warning > td,
  .history-table > tbody > tr.danger > td { background: transparent; }
  .history-table > tbody > tr.success { background: #f2f8f4; }
  .history-table > tbody > tr.info { background: #f2f6f8; }
  .history-table > tbody > tr.warning { background: #fff8eb; }
  .history-table > tbody > tr.danger { background: #fbf1f1; }
  .history-actions-cell { align-items: center !important; min-width: 0; }
  .history-console > .panel-footer { flex-direction: column; justify-content: center; }
  .history-console > .panel-footer nav { margin: 0; max-width: 100%; overflow-x: auto; }
  .history-page-size { margin: 0; }
  .history-pagination-summary { text-align: center; }
  .history-console .pagination > li > a { min-width: 31px; padding: 7px 8px; }
}

/* Consolidated mobile safeguards */
@media (max-width: 767px) {
  html,
  body { max-width: 100%; overflow-x: hidden; }
  #main-wrapper,
  #page-content-wrapper { min-width: 0; width: 100%; }
  #page-content-wrapper { overflow-x: hidden; }

  .app-navbar > .container { padding-left: 0; padding-right: 0; }
  .app-navbar > .container > .row { align-items: center; display: flex; margin: 0; width: 100%; }
  .app-navbar > .container > .row > [class*="col-"] { float: none; min-width: 0; padding-left: 5px; padding-right: 5px; }
  .app-navbar > .container > .row > [class*="col-"]:first-child { padding-left: 8px; }
  .app-navbar > .container > .row > [class*="col-"]:last-child { padding-right: 8px; }
  .app-navbar .custom-sidebar-toggle { margin-left: 0; }
  .app-navbar .navbar-right { align-items: center; display: flex; height: 65px; margin: 0; }
  .app-navbar .app-navbar__user-menu { min-width: 42px; padding: 4px !important; }
  .app-navbar__avatar { flex-basis: 32px; height: 22px; width: 32px; }
  .app-navbar #remaining-balance-a { margin-right: 3px; max-width: 86px; }
  .app-navbar .header-success-badge { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-navbar .app-navbar__account-menu { max-width: calc(100vw - 24px); min-width: 0; right: 0; width: 250px; }

  .main-container { margin-bottom: 36px; margin-top: 0; width: 100%; }
  .workspace-console,
  .contributor-console,
  .panel { max-width: 100%; }
  .workspace-console__title h3,
  .workspace-console__title h4,
  .contributor-console__header h3 { font-size: 19px; overflow-wrap: anywhere; }
  .page-subtitle,
  .contributor-console__header p { line-height: 1.45; }

  .form-control,
  select.form-control,
  .input-group-addon { min-height: 42px; }
  textarea.form-control { min-height: 92px; }
  .btn { min-height: 40px; }
  .input-group,
  .input-group-btn { max-width: 100%; }
  .modern-file-picker { min-height: 72px; padding: 12px; }
  .modern-file-picker__copy { min-width: 0; }
  .modern-file-picker__copy strong,
  .modern-file-picker__copy small,
  .pdf-test-console .modern-file-picker__copy strong,
  .pdf-test-console .modern-file-picker__copy small { overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }

  .modal { padding-left: 0 !important; padding-right: 0 !important; }
  .modal-dialog { max-width: calc(100vw - 24px); width: auto; }
  .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 36px); }
  .modal-body { min-height: 0; overflow-x: hidden; overflow-y: auto; }
  .modal-footer { flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
  .modal-footer .btn { flex: 1 1 auto; margin: 0; }
  .modal-table-shell { overflow-x: auto; }
  .bootstrap-datetimepicker-widget.dropdown-menu { max-width: calc(100vw - 24px); width: 286px !important; }

  .contributor-actions .btn,
  .registration-actions .btn { min-height: 42px; width: 100%; }
  .pdf-test-console #pdfPreview { height: auto; max-width: 100%; width: 100%; }
  .coordinate-editor__footer #btnSave { min-width: 112px; }
}

@media (max-width: 420px) {
  .main-container { padding-left: 10px; padding-right: 10px; }
  .panel > .panel-heading,
  .panel > .panel-body,
  .panel > .panel-footer,
  .workspace-console__header,
  .workspace-console__body { padding-left: 14px; padding-right: 14px; }
  .landing-login__footer { padding-left: 14px; padding-right: 14px; }
  .app-footer__rights { column-gap: 7px; font-size: 10px; }
  .app-footer__rights img { height: 20px; padding-right: 9px; width: 68px; }
  .history-table > tbody > tr > td::before { flex-basis: 78px; }
  .history-table > tbody > tr > td { gap: 10px; }
}
