@media screen{
  html[data-appearance-theme=dark]{color-scheme:dark;--pt-bg:#0e1724;--pt-card:#172334;--pt-raised:#1e2e43;--pt-line:#34465c;--pt-ink:#edf3fb;--pt-muted:#b4c3d5;--pt-blue:#75b7ff}
  html[data-appearance-theme=dark] body,
  html[data-appearance-theme=dark] #main-body,
  html[data-appearance-theme=dark] #footer,
  html[data-appearance-theme=dark] #popup-backdrop{background:var(--pt-bg);color:var(--pt-ink)}
  html[data-appearance-theme=dark] #header,
  html[data-appearance-theme=dark] #home-banner,
  html[data-appearance-theme=dark] #home-shortcuts,
  html[data-appearance-theme=dark] .invoice-container{background:var(--pt-card);color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] a{color:var(--pt-blue)}
  html[data-appearance-theme=dark] a:hover{color:#badcff}
  html[data-appearance-theme=dark] #header .top-nav a.choose-language{color:var(--pt-muted)}
  html[data-appearance-theme=dark] h1,
  html[data-appearance-theme=dark] h2,
  html[data-appearance-theme=dark] h3,
  html[data-appearance-theme=dark] h4,
  html[data-appearance-theme=dark] h5,
  html[data-appearance-theme=dark] legend,
  html[data-appearance-theme=dark] .header-lined h1{color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .text-muted,
  html[data-appearance-theme=dark] .help-block,
  html[data-appearance-theme=dark] .small-text,
  html[data-appearance-theme=dark] #footer p{color:var(--pt-muted)}
  html[data-appearance-theme=dark] hr{border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .navbar-main{background:#172b43}
  html[data-appearance-theme=dark] .navbar-main .navbar-nav>li>a{color:var(--pt-ink)}
  html[data-appearance-theme=dark] .navbar-main .navbar-nav>.open>a,
  html[data-appearance-theme=dark] .navbar-main .navbar-nav>li>a:hover,
  html[data-appearance-theme=dark] .navbar-main .navbar-nav>li>a:focus{background:var(--pt-raised);color:#fff}
  html[data-appearance-theme=dark] .panel,
  html[data-appearance-theme=dark] .well,
  html[data-appearance-theme=dark] .list-group-item,
  html[data-appearance-theme=dark] .dropdown-menu,
  html[data-appearance-theme=dark] .modal-content,
  html[data-appearance-theme=dark] .popover,
  html[data-appearance-theme=dark] .tile,
  html[data-appearance-theme=dark] .tiles .tile,
  html[data-appearance-theme=dark] .ticket-reply,
  html[data-appearance-theme=dark] .ticket-reply .message,
  html[data-appearance-theme=dark] .view-ticket,
  html[data-appearance-theme=dark] .tab-content{background:var(--pt-card);color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .panel-heading,
  html[data-appearance-theme=dark] .panel-footer,
  html[data-appearance-theme=dark] .breadcrumb,
  html[data-appearance-theme=dark] .popover-title,
  html[data-appearance-theme=dark] .ticket-reply .user,
  html[data-appearance-theme=dark] .ticket-reply.staff .user,
  html[data-appearance-theme=dark] .dataTables_wrapper .dataTables_info{background:var(--pt-raised);color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .dropdown-menu>li>a,
  html[data-appearance-theme=dark] .list-group-item,
  html[data-appearance-theme=dark] .list-group-item-heading{color:var(--pt-ink)}
  html[data-appearance-theme=dark] .dropdown-menu>li>a:hover,
  html[data-appearance-theme=dark] .dropdown-menu>li>a:focus,
  html[data-appearance-theme=dark] a.list-group-item:hover,
  html[data-appearance-theme=dark] a.list-group-item:focus{background:var(--pt-raised);color:#fff}
  html[data-appearance-theme=dark] .dropdown-menu .divider{background:var(--pt-line)}
  html[data-appearance-theme=dark] .table,
  html[data-appearance-theme=dark] table.dataTable,
  html[data-appearance-theme=dark] .table>tbody>tr>td,
  html[data-appearance-theme=dark] .table>thead>tr>th,
  html[data-appearance-theme=dark] .table>thead>tr>td,
  html[data-appearance-theme=dark] .table>tfoot>tr>td{background:var(--pt-card);color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .table-striped>tbody>tr:nth-of-type(odd)>td,
  html[data-appearance-theme=dark] .table>thead>tr>th,
  html[data-appearance-theme=dark] .table>thead>tr>td,
  html[data-appearance-theme=dark] .table .total-row{background:var(--pt-raised)}
  html[data-appearance-theme=dark] .table-hover>tbody>tr:hover>td{background:#273b53}
  html[data-appearance-theme=dark] .dataTables_wrapper,
  html[data-appearance-theme=dark] .dataTables_wrapper label,
  html[data-appearance-theme=dark] .dataTables_wrapper .dataTables_length,
  html[data-appearance-theme=dark] .dataTables_wrapper .dataTables_filter{color:var(--pt-ink)}
  html[data-appearance-theme=dark] .form-control,
  html[data-appearance-theme=dark] input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
  html[data-appearance-theme=dark] select,
  html[data-appearance-theme=dark] textarea,
  html[data-appearance-theme=dark] .input-group-addon,
  html[data-appearance-theme=dark] .selectize-input,
  html[data-appearance-theme=dark] .selectize-dropdown{background:var(--pt-bg);color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] input::placeholder,
  html[data-appearance-theme=dark] textarea::placeholder{color:#9fb0c6;opacity:1}
  html[data-appearance-theme=dark] .form-control:focus{border-color:var(--pt-blue);box-shadow:0 0 0 2px #75b7ff30}
  html[data-appearance-theme=dark] .form-control[disabled],
  html[data-appearance-theme=dark] .form-control[readonly]{background:var(--pt-raised);color:var(--pt-muted)}
  html[data-appearance-theme=dark] .btn-default,
  html[data-appearance-theme=dark] .pagination>li>a,
  html[data-appearance-theme=dark] .pagination>li>span,
  html[data-appearance-theme=dark] .nav-tabs>li.active>a,
  html[data-appearance-theme=dark] .nav-tabs>li.active>a:focus,
  html[data-appearance-theme=dark] .nav-tabs>li.active>a:hover{background:var(--pt-raised);color:var(--pt-ink);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .nav-tabs{border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .nav>li>a:hover,
  html[data-appearance-theme=dark] .nav>li>a:focus{background:var(--pt-raised);border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .btn-primary,
  html[data-appearance-theme=dark] .btn-success,
  html[data-appearance-theme=dark] .btn-danger,
  html[data-appearance-theme=dark] .btn-info{color:#fff}
  html[data-appearance-theme=dark] .pagination>.active>a,
  html[data-appearance-theme=dark] .list-group-item.active{background:#195fa3;color:#fff}
  html[data-appearance-theme=dark] .alert-info{background:#13334a;color:#bbe3ff;border-color:#286080}
  html[data-appearance-theme=dark] .alert-success{background:#12382e;color:#b4ebcf;border-color:#2a6853}
  html[data-appearance-theme=dark] .alert-warning{background:#413319;color:#ffe0a4;border-color:#7b6130}
  html[data-appearance-theme=dark] .alert-danger{background:#43232d;color:#ffc7cf;border-color:#7c4250}
  html[data-appearance-theme=dark] .alert a{color:inherit;text-decoration:underline}
  html[data-appearance-theme=dark] .text-danger,
  html[data-appearance-theme=dark] .has-error .help-block{color:#ffacb8}
  html[data-appearance-theme=dark] .text-success{color:#8ddbb4}
  html[data-appearance-theme=dark] .text-warning{color:#f4cd8a}
  html[data-appearance-theme=dark] .text-info{color:#91d3f7}
  html[data-appearance-theme=dark] .close{color:var(--pt-ink);text-shadow:none;opacity:.8}
  html[data-appearance-theme=dark] pre,
  html[data-appearance-theme=dark] code{background:var(--pt-bg);color:#c5dfff;border-color:var(--pt-line)}
  html[data-appearance-theme=dark] .modal-header,
  html[data-appearance-theme=dark] .modal-footer{border-color:var(--pt-line)}
  html[data-appearance-theme=dark] :focus-visible{outline:2px solid var(--pt-blue);outline-offset:2px}
}
@media print{.appearance-theme-switch,.appearance-theme-tools,.appearance-theme-item{display:none!important}}
@media(prefers-reduced-motion:reduce){.appearance-theme-switch span{transition:none}}

/* Twenty-One's Bootstrap 4 components share the same palette as Six. */
@media screen {
 html[data-appearance-theme=dark] :is(.card,.card-body,.dropdown-item,.page-link){background:var(--pt-card);color:var(--pt-ink);border-color:var(--pt-line)}
 html[data-appearance-theme=dark] :is(.card-header,.card-footer,.input-group-text,.master-breadcrumb,.main-navbar-wrapper,.header .topbar){background:var(--pt-raised);color:var(--pt-ink);border-color:var(--pt-line)}
 html[data-appearance-theme=dark] :is(.bg-white,.bg-light,.primary-bg-color){background-color:var(--pt-bg)!important}
 html[data-appearance-theme=dark] :is(.text-muted,.text-dark,.text-body){color:var(--pt-muted)!important}
 html[data-appearance-theme=dark] :is(.navbar-light .navbar-brand,.navbar-light .navbar-nav .nav-link,.main-navbar-wrapper .nav-link,.card-title,.card-header h3){color:var(--pt-ink)}
 html[data-appearance-theme=dark] :is(.dropdown-item:hover,.dropdown-item:focus,.page-link:hover,.nav-tabs .nav-link.active,.nav-tabs .nav-link:hover,.page-item.disabled .page-link){background:var(--pt-raised);color:var(--pt-ink);border-color:var(--pt-line)}
 html[data-appearance-theme=dark] :is(.page-item.active .page-link,.nav-pills .nav-link.active){background:#195fa3;color:#fff;border-color:#397abb}
 html[data-appearance-theme=dark] :is(.dropdown-divider,.border,.border-top,.border-bottom){border-color:var(--pt-line)!important}
 html[data-appearance-theme=dark] :is(.custom-select,.btn-outline-secondary){background:var(--pt-bg);color:var(--pt-ink);border-color:var(--pt-line)}
 html[data-appearance-theme=dark] .breadcrumb-item.active{color:var(--pt-muted)}
 html[data-appearance-theme=dark] .main-navbar-wrapper .navbar-nav>li>a{color:var(--pt-ink)}
 html[data-appearance-theme=dark] body .btn-return-to-admin{background:var(--pt-raised)!important;color:var(--pt-ink)!important;border-color:var(--pt-line)}
 html[data-appearance-theme=dark] .badge-info{background:#17637b;color:#fff}
 html[data-appearance-theme=dark] .btn-success,
 html[data-appearance-theme=dark] .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{background:#206e43;color:#fff;border-color:#45865e}
 html[data-appearance-theme=dark] .table.table-striped tbody tr:nth-of-type(odd){background:var(--pt-raised)}
}

@media screen{
 html[data-appearance-theme=dark] body table thead th,
 html[data-appearance-theme=dark] body table thead td,
 html[data-appearance-theme=dark] body .table-list>thead>tr>th{background-color:#26394f;color:#edf3fb;border-color:#41546b}
 html[data-appearance-theme=dark] body table thead th a,
 html[data-appearance-theme=dark] body table thead td a{color:inherit}
 html[data-appearance-theme=dark] body table thead th.sorting:after,
 html[data-appearance-theme=dark] body table thead th.sorting_asc:after,
 html[data-appearance-theme=dark] body table thead th.sorting_desc:after{color:#c1d8f0;opacity:1}
}

@media screen{
 html[data-appearance-theme=dark] body .dataTables_wrapper table.table-list thead th.sorting_asc,
 html[data-appearance-theme=dark] body .dataTables_wrapper table.table-list thead th.sorting_desc{background-color:#314a66;color:#edf3fb}
 html[data-appearance-theme=dark] body .panel-sidebar .panel-title{color:#edf3fb}
 html[data-appearance-theme=dark] body .header-lined h1 small,
 html[data-appearance-theme=dark] body .header-lined .breadcrumb li a,
 html[data-appearance-theme=dark] body .header-lined .breadcrumb>.active{color:#b4c3d5}
 html[data-appearance-theme=dark] body .panel-sidebar.view-filter-btns .list-group-item.active,
 html[data-appearance-theme=dark] body .panel-sidebar.view-filter-btns .list-group-item.active:hover{background-color:#26394f;color:#edf3fb;border-color:#41546b}
 html[data-appearance-theme=dark] body .panel-sidebar .badge{color:#d9e7f7}
}

/* Native WHMCS components whose more-specific light styles survived the palette. */
@media screen{
 html[data-appearance-theme=dark] body .tiles .tile .title,
 html[data-appearance-theme=dark] body .client-home-panels .list-group-item small{color:var(--pt-muted)}
 html[data-appearance-theme=dark] body .label-success{background:#206e43;color:#fff}
 html[data-appearance-theme=dark] body .label.status-closed,
 html[data-appearance-theme=dark] body .client-home-panels .label[style*="#888888" i]{background:#475c73!important;color:#fff}
 html[data-appearance-theme=dark] body .panel.panel-default>.panel-heading,
 html[data-appearance-theme=dark] body .table>tbody>tr>th,
 html[data-appearance-theme=dark] body .dataTables_wrapper .dataTables_length,
 html[data-appearance-theme=dark] body .product-details .product-icon,
 html[data-appearance-theme=dark] body .marketing-email-optin{background:var(--pt-raised);color:var(--pt-ink);border-color:var(--pt-line)}
 html[data-appearance-theme=dark] body .product-details .product-icon .fa-circle{color:#314a66}
 html[data-appearance-theme=dark] body .product-details .product-icon .fa-inverse{color:var(--pt-ink)}
 html[data-appearance-theme=dark] body #accountNotifications,
 html[data-appearance-theme=dark] body .client-home-panels .text-domain{color:var(--pt-blue)}
}
