/* APP */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
    --hero-background: radial-gradient(circle,rgb(9 46 75) 0%, rgba(34, 34, 34, 1) 84%, rgba(0, 0, 0, 1) 100%);
    --primary-color: #0095ff;
    --primary-color-hover: #007ad1;
    --secondary-color: #222222;
    --terciary-color:#0081c1;
    --menucolor: whitesmoke;
    --bs-heading-color: #10172B;
    --bs-btn-hover-color: #0D8CDC;
    --bs-link-color-rgb: #6EC1E46E;
}

html[data-brand="rbcontent"] {
    --hero-background: radial-gradient(circle,rgba(215, 25, 32, 1) 0%, rgba(34, 34, 34, 1) 84%, rgba(0, 0, 0, 1) 100%);
    --primary-color: #d71920;
    --primary-color-hover: #7e1316;
    --secondary-color: #3A506B;
    --terciary-color:#0081c1;
}

.offcanvas {
    --bs-offcanvas-width: 50%;
}

html {
    height: 100%;
}

body {
    font-family: 'Oswald', sans-serif;
    background: rgb(11, 47, 73);
    background: var(--hero-background);
    padding-top: 20px;
    background-position: center center;
    background-size: cover;
    background-repeat: repeat;
    min-height: 100%;
}

main {
    background-color: #f5f9fc;
    padding: 15px 0;
    box-shadow: 0px 0px 20px 0px #2b5343;
}

main > div.alert:first-child span.alert-link {
    float: right;
}

pre {
    background-color: black;
    line-height: 1;
}

pre code p {
    text-align: left;
    color: white;
    margin: 0;
    padding: 0;
}

.rich-editor {
    visibility: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: #0d6efd;
    color: whitesmoke;
}

a:hover{
    color: var(--primary-color-hover);
}

h1 {
    padding: 1rem 0 1rem;
}

.nav-tabs .nav-link {
    background: #e9ecef;
    color: var(--secondary-color);
}

.loginfo {
    cursor: pointer;
}

.form-container {
    margin: 0.825rem 0 0.825rem 0;
}

.form-container.adstxt {
    text-align: left;
}

.form-container.adstxt fieldset {
    float: right;
}

form+.message {
    border-style: groove;
    border-width: thin;
    border-radius: 2px 2px 2px 2px;
}

form+.message.error {

    background-color: #ffb1b1;
    padding-left: 0.256rem;
}

.overlay[data-active="true"] {
    display: block;
}

span.delete-domain {
    float: right;
}

.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(161 161 161 / 50%);
    z-index: 2;
    top: 50%;
    left: 50%;
    font-size: 50px;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.inner-overlay {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
}

header nav.navbar ul {
    background-color: #f5f9fc;
}

header nav.navbar.navbar-light {
    border-radius: 5px 5px 0 0;
}

.alert {
    margin-top: 1rem;
}

nav.navbar img {
    width: 205px;
    height: auto;
}

.spinner-grow[data-active='false'] {
    display: none;
}

span.btn.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

span.btn.btn-outline-primary:hover {
    background-color: var(--primary-color-hover);
    color: whitesmoke;
}

.btn.btn-primary {
    background-color: var(--primary-color);
    border: var(--secondary-color);
}

.btn.btn-primary:hover {
    background-color: var(--primary-color-hover);
    border: var(--secondary-color);
}

span.btn[disabled] {
    cursor: default;
}

.text-center {
    margin-top: 0.825rem;
}

button:focus {
    outline: none;
}

.navbar-text.userinfo {
    color: var(--menucolor);
}

.btn.download {
    margin-left: 5px;
}

.btn-group.options li{
    padding: 0.250rem;
}

.form-floating>label {
    padding: 0 0 0 0.25rem;
    color: var(--terciary-color);
}

form [data-required='true']::after {
    content: "*";
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 0.825rem;
    height: 100%;
    color: red;
}

.input-group {
    margin: 0.825rem 0 0.825rem 0;
}

textarea#hostedAdsTxtPath {
    height: 0;
}

.card-body .card-title {
    display: inline-block;
}

.header-subtitle {
    padding: 10px 0;
}

.badge.rounded-pill {
    margin-left: 5px;
    font-size: 1rem;
}

p.fs-2 {
    text-align: left;
    background-color: whitesmoke;
    width: 100%;
    border-bottom: solid 1px #CCC;
    line-height: 0.1em;
    margin: 10px 0 20px;
}

p.fs-2 span {
    background-color: #f5f9fc;
    padding-right: 15px;
}

.import_leads {
    list-style-type: none;
    counter-reset: css-counter 0;
    position: relative;
    padding: 1rem;
}

.import_leads .alert {
    word-break: break-word;
}

.import_leads ul.nav-tabs {
    width: 100%;
}

.import_leads section.steps {
    counter-increment: css-counter 1;
}

.import_leads .form-label {
    display: block;
    text-align: left;
}

.import_leads .table-responsive div {
    padding: 0.825rem 0;
    text-align: left;
}

.import_leads hr.leads::before {
    content: "OR";
}

#abortSelectedLeads {
    display: none;
}

#abortSelectedLeads[data-running="1"] {
    display: inline-block;
}

.form-content {
    border-top: solid 1px #CCC;
    padding: 1rem 0;
}

.form-content .card {
    width: 100%;
}

.form-header {
    position: relative;
    top: -41px;
    right: 0;
    float: right;
}

.import_leads section.steps::before {
    content: counter(css-counter);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    margin-top: 5px;
    width: 5rem;
    flex-wrap: wrap;
    border-radius: 1%;
    padding: 0.825rem;
    font-weight: 700;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-width: 1px;
    border-color: #CCC;
    background: white;
}

.loader {
    width: auto;
    height: auto;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    padding: 2px;
    margin-left: 10px;
}

.leads-console-output {
    font-family: monospace;
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 1rem;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
  }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.import_leads .steps[data-done="true"] {
    /* opacity: 0.3; */
    background: url();
    /* pointer-events: none; */
}

.leads.table th[scope="col"] {
    text-align: center;
}

#liveToast .toast-body {
    background-color: #f5f9fc;
    color: black;
}

footer {
    color: whitesmoke;
}

#offcanvasPublisher fieldset {
    margin-bottom: 0.825rem;
    padding: 0.825rem;
}

.domains_list_picker,
.users_list_picker,
.users_role_list_picker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}


.domains_list_picker label,
.domains_list_picker button,
.users_list_picker label,
.users_list_picker button,
.users_role_list_picker label,
.users_role_list_picker button {
    display: block;
}

.domains_list_picker .buttons,
.users_list_picker .buttons,
.users_role_list_picker .buttons{
    display: flex;
    flex-flow: column;
    justify-content: center;
    padding: 0 1rem;
}

.domains_list_picker select,
.users_list_picker select,
 .users_role_list_picker select{
    width: 100%;
}

.include-panel,
.exclude-panel {
    flex: 1 50%;
}

.permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.permission-item:hover {
  background: #f8f9fa;
}

.permission-item .form-check {
  margin-bottom: 0;
  white-space: nowrap;
}

.permission-item .form-check-input {
  cursor: pointer;
}

.card.qrcode {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card.qrcode img{
    width: 150px;
    height: 150px;
    cursor: pointer;
}

.card.edit-domain {
    display: inline-flex;
}

#button-2fa-backupcodes[data-active="0"], a#rest-2fa-link[data-active="0"] {
    display: none;
}

#loginform ._2fa[data-active="0"],  #loginform ._2fa-backupcode[data-active="0"]{
    display: none;
}
/* ── Xandr Stats page ─────────────────────────────── */

.admin_dashboard #dashboard_custom_date_picker {
    display: flex;
}

.admin_dashboard .dashboard.date-picker {
    cursor: pointer;
}
/* 
.admin_dashboard #dashboard_custom_date_picker[data-hidden="true"] {
    visibility: hidden;
    width: 0;
} */

.admin_dashboard main {
    padding: 2rem 1.5rem;
}

.admin_dashboard .xandr-kpi {
    justify-content: center;
    align-items: center;
}

.admin_dashboard .xandr-kpi .card {
    border: none;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.admin_dashboard .xandr-kpi .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.admin_dashboard .xandr-kpi h4 {
    font-size: 1.75rem;
    font-weight: 300;
    color: #10172B;
    margin: 0;
}

.admin_dashboard .xandr-kpi .text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin_dashboard .xandr-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.admin_dashboard .xandr-header h4 {
    font-weight: 400;
    color: #10172B;
}

.admin_dashboard .table {
    font-size: 0.875rem;
}

.admin_dashboard .table thead th {
    background-color: #10172B;
    color: #f5f9fc;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none;
}

.admin_dashboard .table tbody tr:hover {
    background-color: rgba(13, 140, 220, 0.05);
}

.admin_dashboard .table td {
    vertical-align: middle;
    color: #10172B;
}

.admin_dashboard .table td small {
    color: #6c757d;
    font-size: 0.8rem;
}

.filter-dropdown {
  position: relative;
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-trigger:hover {
  background: #f8fafd;
  border-color: #c7cbd1;
}

.filter-trigger strong {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  width: 340px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(60, 64, 67, 0.22);
  overflow: hidden;
}

.filter-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f1f3f4;
}

.filter-popover-header strong {
  font-size: 14px;
  color: #202124;
}

.filter-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.filter-close:hover {
  background: #f1f3f4;
}

.filter-search-wrap {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f4;
}

.filter-search {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.filter-search:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.14);
}

.filter-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px 0;
}

.filter-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 12px;
  cursor: pointer;
}

.filter-option:hover {
  background: #f8fafd;
}

.filter-option input {
  margin-top: 3px;
}

.filter-option span {
  display: grid;
  gap: 2px;
}

.filter-option strong {
  color: #202124;
  font-size: 14px;
  font-weight: 600;
}

.filter-option small {
  color: #5f6368;
  font-size: 12px;
}

.filter-option.is-hidden {
  display: none;
}

.filter-selected-preview {
  padding: 9px 12px;
  border-top: 1px solid #f1f3f4;
  color: #5f6368;
  font-size: 12px;
  background: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-popover-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #f1f3f4;
  background: #fff;
}

.filter-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn-light {
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
}

.filter-btn-light:hover {
  background: #f8fafd;
}

.filter-btn-primary {
  border: 1px solid #1a73e8;
  background: #1a73e8;
  color: #fff;
}

.filter-btn-primary:hover {
  background: #1765cc;
}

.refresh-dropdown {
  position: relative;
  display: inline-block;
}

.refresh-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1050;
  width: 340px;
  border: 1px solid #dee2e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  left: 0;
}

.refresh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f1f3f5;
}

.refresh-header strong {
  display: block;
  font-size: 14px;
}

.refresh-header small {
  display: block;
  color: #6c757d;
  font-size: 12px;
}

.refresh-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6c757d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.refresh-close:hover {
  background: #f1f3f5;
}

.refresh-body {
  padding: 12px 14px;
}

.refresh-ssp-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.refresh-ssp-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.refresh-ssp-option:hover {
  background: #f8f9fa;
}

.refresh-ssp-option span {
  font-size: 13px;
  font-weight: 600;
}

.refresh-summary {
  margin-top: 12px;
  color: #6c757d;
  font-size: 12px;
}

.refresh-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #f1f3f5;
  background: #fff;
}
