/* -------------------------------------------------------------------------
 * Darker CRM grey tone (overrides default theme neutrals)
 * ------------------------------------------------------------------------- */
:root {
    --crm-grey-page: #d5dde6;
    --crm-grey-panel: #c5cfdb;
    --crm-grey-muted: #bcc6d2;
    --crm-grey-border: #b0bac6;
    --crm-text: #2a2f3d;
    --crm-link: #0f5f7a;
    --crm-link-muted: #212529;
    --crm-link-hover: #147a9e;
}

html {
    background: var(--crm-grey-page) !important;
}

body {
    background: var(--crm-grey-page) !important;
    color: var(--crm-text) !important;
}

a {
    color: var(--crm-link) !important;
}

a:hover,
a:focus {
    color: var(--crm-link-hover) !important;
    text-decoration: none;
}

a.link {
    color: var(--crm-link-muted) !important;
}

a.link:hover,
a.link:focus {
    color: var(--crm-link-hover) !important;
}

.page-wrapper,
.fix-header .page-wrapper,
.single-column .page-wrapper {
    background: var(--crm-grey-page) !important;
}

html body .bg-light {
    background-color: var(--crm-grey-panel) !important;
}

html body .bg-light-inverse {
    background-color: var(--crm-grey-muted) !important;
}

/* Soft fills that used the old #e9edf2 / #edf0f5 greys */
.btn-secondary,
.btn-light,
.label-light-grey,
.badge-light {
    background-color: var(--crm-grey-panel) !important;
    border-color: var(--crm-grey-border) !important;
}

/* Keep white cards/modals crisp on the darker page */
.card,
.modal-content,
.dropdown-menu,
.popover,
.select2-dropdown {
    background-color: #ffffff;
}

.header-search.leads-search .select2-container.select2-container--bootstrap {
    width: 150px !important;
    max-width: 150px;
}


    #header-search.leads-search {
        width: auto !important;
        max-width: 250px;
    }


.header-search.leads-search .select2-container--bootstrap .select2-dropdown,
#header-search.leads-search .select2-container--bootstrap .select2-dropdown {
    width: 150px !important;
    max-width: 150px;
}

/* Role category multi-selects inside settings modal */
#commonModal .select2-role-categories + .select2-container {
    width: 100% !important;
}
#commonModal .select2-container--bootstrap .select2-dropdown {
    z-index: 1060;
}
#commonModal .select2-container--bootstrap .select2-results__option {
    padding: 6px 12px;
}
#commonModal .select2-container--bootstrap .select2-results {
    max-height: 240px;
}


.card-modal .card-left-panel .x-action a {
    color: #2a2f3d !important;
    text-decoration: underline;
    font-size: 10px;
    padding-left: 20px;
    font-weight: 500;
}

.card-modal .modal-body{
    color: #2a2f3d !important;
}

/* Assigned user: show name when no avatar is uploaded */
.assigned-user-name-badge {
    display: inline-block;
    vertical-align: middle;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
    padding: 0 8px;
    margin-left: 2px;
    border-radius: 11px;
    background: #e8eef3;
    color: #2a2f3d;
    border: 1px solid #c5cfdb;
}

.card-modal .card-right-panel .x-assigned-user:has(.assigned-user-name-badge) {
    border-radius: 0;
}

.card-modal .card-right-panel .x-assigned-user .assigned-user-name-badge {
    cursor: pointer;
    max-width: 140px;
    margin-left: 0;
    margin-right: 4px;
}

.card-modal .card-right-panel .intake-workbook-status {
    font-size: 12px;
    font-weight: 500;
}

#list-pages-stats-widget .js-scroll-kanban-status {
    cursor: pointer;
}

.kanban .kanban-wrapper .leads-kanban-scroll-wrap {
    height: calc(100vh - 95px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.kanban .kanban-wrapper .kanban-hscroll {
    position: relative;
    flex: 0 0 18px;
    height: 18px;
    background: #d5dde6;
    border: 1px solid #b0bac6;
    border-radius: 9px;
    cursor: pointer;
}

.kanban .kanban-wrapper .kanban-hscroll--top {
    margin: 0 0 8px;
}

.kanban .kanban-wrapper .kanban-hscroll--bottom {
    margin: 8px 0 0;
}

.kanban .kanban-wrapper .kanban-hscroll-thumb {
    position: absolute;
    top: 2px;
    left: 0;
    height: 12px;
    min-width: 56px;
    background: #5c6773;
    border-radius: 6px;
    cursor: grab;
}

.kanban .kanban-wrapper .kanban-hscroll-thumb:active {
    cursor: grabbing;
    background: #2a2f3d;
}

.kanban .kanban-wrapper .leads-kanban-scroll-wrap .boards {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: none;
}

.kanban .kanban-wrapper .leads-kanban-scroll-wrap .boards::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.leads_col_assigned .assigned-user-name-badge {
    margin-right: 4px;
    margin-left: 0;
    vertical-align: middle;
}

#loginForm .btn-info, #loginForm .btn-info.disabled{
    color: #000000 !important;
  }
  #forgotSubmitButton {
    color: #000000 !important;
}

  .login-background {    
    background-image: url('/public/images/login-bg.png') !important;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top center;
    pointer-events: none;
  }
  .logged-out body .login-background .x-left{
    display: none;
  }
  .login-logo.m-t-30.p-b-5 {
    z-index: 42;
    position: relative;
  }

  .login-logo img {
    background-color: rgba(0, 0, 0, 0.5);
  }

  /* Midnight login box: white text and underlines (Chrome autofill was yellow on password only) */
  html.logged-out .login-box,
  html.logged-out .login-box .box-title,
  html.logged-out .login-box .title,
  html.logged-out .login-box label,
  html.logged-out .login-box .custom-control-description,
  html.logged-out .login-box a,
  html.logged-out .login-box .text-dark {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  html.logged-out .login-box .form-control {
    color: #ffffff !important;
    background-color: transparent !important;
    caret-color: #ffffff;
  }

  html.logged-out .login-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
    opacity: 1;
  }

  html.logged-out .login-box .form-material .form-control,
  html.logged-out .login-box .form-material .form-control:focus {
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)) !important;
    border: 0 none;
  }

  html.logged-out .login-box input:-webkit-autofill,
  html.logged-out .login-box input:-webkit-autofill:hover,
  html.logged-out .login-box input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    box-shadow: 0 0 0 1000px #272c33 inset;
    transition: background-color 9999s ease-in-out 0s;
  }

  html.logged-out .login-box.login-box--intake {
    width: 640px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  /* Dedicated Client HR Benefits Workbook (not the login page) */
  html.intake-app,
  html.intake-app body.intake-form {
    background: #e8edf2 !important;
    color: #2a2f3d;
    overflow-y: auto;
  }

  html.intake-app .intake-shell {
    min-height: 100vh;
    padding-bottom: 56px;
  }

  html.intake-app .intake-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border-bottom: 1px solid #c5cfdb;
    padding: 16px 28px;
  }

  html.intake-app .intake-topbar img {
    max-height: 48px;
    width: auto;
    background: transparent;
  }

  html.intake-app .intake-topbar h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #2a2f3d;
  }

  html.intake-app .intake-topbar p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #5b6573;
  }

  html.intake-app .intake-document {
    width: 100%;
    padding: 24px 28px 40px;
    box-sizing: border-box;
  }

  html.intake-app .intake-document--narrow {
    max-width: 720px;
    margin: 40px auto;
    background: #ffffff;
    padding: 32px;
    border: 1px solid #c5cfdb;
  }

  html.intake-app .intake-section {
    background: #ffffff;
    border: 1px solid #c5cfdb;
    margin-bottom: 20px;
    padding: 18px 20px 8px;
  }

  html.intake-app .intake-section h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #2a2f3d;
  }

  html.intake-app .intake-section-intro {
    margin: 0 0 12px;
    font-size: 13px;
    color: #5b6573;
  }

  html.intake-app .intake-grid {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
  }

  html.intake-app .intake-grid th,
  html.intake-app .intake-grid td {
    border: 1px solid #c5cfdb;
    padding: 10px 12px;
    vertical-align: top;
    background: #ffffff;
    color: #2a2f3d;
  }

  html.intake-app .intake-grid th {
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #f3f6f9;
    color: #4a5563;
  }

  html.intake-app .intake-grid td.intake-topic {
    width: 28%;
    min-width: 180px;
    font-weight: 600;
    background: #f8fafc;
  }

  html.intake-app .intake-grid .form-control {
    color: #2a2f3d !important;
    background-color: #ffffff !important;
    border: 1px solid #d0d7e0;
    border-radius: 3px;
    padding: 6px 10px;
  }

  html.intake-app .intake-inline {
    display: flex;
    gap: 10px;
  }

  html.intake-app .intake-inline .form-control {
    flex: 1;
  }

  html.intake-app .intake-select,
  html.intake-app .intake-file {
    max-width: 280px;
  }

  html.intake-app .intake-checks,
  .intake-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin-bottom: 12px;
  }

  html.intake-app .intake-check,
  .intake-check {
    margin: 0;
    min-height: 28px;
  }

  html.intake-app .intake-check label,
  .intake-check label {
    height: auto;
    line-height: 1.35;
    font-size: 13px;
    font-weight: 500;
    color: #2a2f3d;
    white-space: normal;
  }

  html.intake-app .intake-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
    padding: 8px 0 24px;
  }

  html.intake-app .intake-actions .btn-outline-info {
    color: var(--crm-link, #6772e5);
    background: #ffffff;
    border: 1px solid var(--crm-link, #6772e5);
  }

  html.intake-app .intake-actions .btn-outline-info:hover,
  html.intake-app .intake-actions .btn-outline-info:focus {
    color: #ffffff;
    background: var(--crm-link, #6772e5);
    border-color: var(--crm-link, #6772e5);
  }

  html.intake-app a {
    color: var(--crm-link) !important;
  }

  @media (max-width: 768px) {
    html.intake-app .intake-topbar {
      flex-direction: column;
      align-items: flex-start;
      padding: 14px 16px;
    }
    html.intake-app .intake-document {
      padding: 16px;
    }
    html.intake-app .intake-inline {
      flex-direction: column;
    }
    html.intake-app .intake-grid td.intake-topic {
      width: 40%;
      min-width: 0;
    }
    html.intake-app .intake-checks,
    .intake-checks {
      grid-template-columns: 1fr;
    }
  }

  /* Login / admin company CRM footer — above login background (z-index: 2) */
  .company-name-footer {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #2a2f3d;
    line-height: 1.4;
  }

  .company-name-footer--login {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: #2a2f3d !important;
    pointer-events: none;
  }

  .company-name-footer--app.footer {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0;
    border-top: 1px solid var(--crm-grey-border, #b0bac6);
    background: #ffffff;
    color: #2a2f3d !important;
  }

#main-wrapper.intake-shell{
    padding-bottom: 56px !important;
  }
  
  .confirm-action-info {
  cursor: pointer;
}
