/* logo */

.main-header .logo img {
    max-width: 80%;
}
.wrapper .login-logo img {
    width: 96px !important;
}

/* loading */
body.loading{
    background:#000;
    overflow: hidden;   
}
body.loading .loading-modal{
    position:fixed;
    z-index:1000;
    top:0;
    left:0;
    height:100%;
    width:100%;
    background:rgba(255, 255, 255, .8) url('images/loading-animation.gif') 50% 50% no-repeat;
    background-size:320px;
}

/* ace editor */
.ace_editor{
    border:solid 1px #ccc;
}

/* debug window */
.debug-window{
    font-size:12px;
}
.debug-window .info{
    color:#060;
    padding:15px 0 15px 0;
}
.debug-window .debug-result{
    display:none !important;
}
.debug-window table{
    width:100%;
    border:solid 1px #ccc;
    margin-bottom:15px;
}
.debug-window table th,
.debug-window table td{
    padding:2px 5px 4px 5px;
}
.debug-window table thead{
    font-weight:bold;
}
.debug-window table thead th{
    color:#fff;
    background:#666;
}
.debug-window table tbody tr{
    border-top:solid 1px #ccc;
}

/* permission */
div[id$="_permission"] input[type="text"]{
    background:#fff;
    border:0;
}
div[id$="_permission"] table th:nth-child(14),
div[id$="_permission"] table th:nth-child(15),
div[id$="_permission"] table th:nth-child(16),
div[id$="_permission"] table th:nth-child(17),
div[id$="_permission"] table td:nth-child(14),
div[id$="_permission"] table td:nth-child(15),
div[id$="_permission"] table td:nth-child(16),
div[id$="_permission"] table td:nth-child(17){
    display:none;
}

/* script version */
div[id$="_scriptVersion"] table th:first-child,
div[id$="_scriptVersion"] table td:first-child{
    display:none;
}

/* script parameter */
div[id$="_scriptParameter"] table th:nth-child(2),
div[id$="_scriptParameter"] table td:nth-child(2),
div[id$="_scriptParameter"] table th:nth-child(4),
div[id$="_scriptParameter"] table td:nth-child(4),
div[id$="_scriptParameter"] table th:nth-child(6),
div[id$="_scriptParameter"] table td:nth-child(6),
div[id$="_scriptParameter"] table th:nth-child(7),
div[id$="_scriptParameter"] table td:nth-child(7),
div[id$="_scriptParameter"] table th:nth-child(8),
div[id$="_scriptParameter"] table td:nth-child(8),
div[id$="_scriptParameter"] table th:last-child,
div[id$="_scriptParameter"] table td:last-child{
    display:none;
}
div[id$="_scriptParameter"] table td.info{
    width:22px;
    color:#999;
    text-align:center;
    background:transparent;
}
div[id$="_scriptParameter"] table td.info .fa.fa-info-circle{
    font-size:22px;
    margin-top:7px;
    cursor:pointer;
}

/* script approval */
form[action*="/scriptapproval/batch"] table th.sonata-ba-list-field-header-datetime{
    width:120px;
}

/* apiEndpoint */
form[action*="/apiendpoint/"]  .apiEndpoint-script .control-label {
    font-weight: normal;
}

/* elements */
.checkbox.sub-select > label > div{
    background:#ccc;
}

/* checkbox disabled */
div.checkbox > label > div:has(input[type="checkbox"]:disabled) {
    cursor: not-allowed;
}
div.checkbox:has(input[type="checkbox"].hidden) {
    display: none;
}

/* table */
.table th{
    white-space:nowrap;
}
.table-bordered > tbody > tr > td{
    word-wrap:anywhere;
}
.table td.sonata-ba-list-field.sonata-ba-list-field-date{
    white-space:nowrap;
}

/* modal dialog */
.ui-dialog .box-header,
.ui-dialog .box-body,
.ui-dialog .box-footer{
    padding-left:0;
    padding-right:0;
}
.modal-body {
    overflow-y: scroll;
}

/* button */
.sonata-action-element[href*="create"]{
    color:#fff !important;
    background:#8aa4af;
}
.sonata-action-element[href*="create"]:hover{
    background:#222d32 !important;
}

/* ace editor */
.ace_editor.disabled {
    opacity: 0.5;
}
.ace_editor.disabled * {
    cursor: not-allowed !important;
}

/* account objectives */
div[id$="_accountObjective"] table,
div[id$="_accountCampaignObjective"] table{
    margin-top: 15px;
}
div[id$="_accountObjective"] table,
div[id$="_accountCampaignObjective"] table{
    border: solid #eee;
    border-width: 0 1px 1px 0;
}
div[id$="_accountObjective"] table tr,
div[id$="_accountObjective"] table th,
div[id$="_accountObjective"] table td,
div[id$="_accountCampaignObjective"] table tr,
div[id$="_accountCampaignObjective"] table th,
div[id$="_accountCampaignObjective"] table td{
    border: solid #eee;
    border-width: 1px 0 0 1px;
}
div[id$="_accountObjective"] table th,
div[id$="_accountCampaignObjective"] table th{
    border: solid #ddd !important;
    border-width: 0 0 1px 0 !important;
}
div[id$="_accountObjective"] table th,
div[id$="_accountCampaignObjective"] table th{
    border: 0;
}
div[id$="_accountObjective"] tbody tr td,
div[id$="_accountCampaignObjective"] tbody tr td{
    margin-bottom: 0;
}
div[id$="_accountObjective"] tbody tr td .checkbox,
div[id$="_accountCampaignObjective"] tbody tr td .checkbox{
    margin: 7px;
}
div[id$="_accountObjective"] thead tr th:nth-child(1),
div[id$="_accountObjective"] tbody tr td:nth-child(1){
    width: 100px;
    text-align:center;
    order: 99;
}
div[id$="_accountObjective"] thead tr th:nth-child(3),
div[id$="_accountObjective"] tbody tr td:nth-child(3),
div[id$="_accountObjective"] thead tr th:nth-child(4),
div[id$="_accountObjective"] tbody tr td:nth-child(4),
div[id$="_accountObjective"] thead tr th:nth-child(5),
div[id$="_accountObjective"] tbody tr td:nth-child(5){
    width:calc(42.5% - 166px);
}
div[id$="_accountCampaignObjective"] thead tr th:nth-child(3),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(3){
    width:calc(30% - 66px);
}
div[id$="_accountCampaignObjective"] thead tr th:nth-child(5),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(5){
    width:calc(8% - 66px);
}
div[id$="_accountCampaignObjective"] thead tr th:nth-child(2),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(2),
div[id$="_accountCampaignObjective"] thead tr th:nth-child(4),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(4),
div[id$="_accountCampaignObjective"] thead tr th:nth-child(6),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(6),
div[id$="_accountCampaignObjective"] thead tr th:nth-child(7),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(7),
div[id$="_accountCampaignObjective"] thead tr th:nth-child(8),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(8){
    width:calc(15% - 66px);
}
div[id$="_accountObjective"] thead tr th:nth-child(2),
div[id$="_accountObjective"] tbody tr td:nth-child(2),
div[id$="_accountCampaignObjective"] thead tr th:nth-child(1),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(1){
    width: 66px;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}
div[id$="_accountObjective"] thead tr th:nth-child(3),
div[id$="_accountObjective"] tbody tr td:nth-child(3){
    width: calc(15% - 166px);
}
div[id$="_accountCampaignObjective"] thead tr th:nth-child(2),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(2){
    width: calc(10% - 66px);
}
div[id$="_accountObjective"] thead tr th:nth-child(3) input,
div[id$="_accountObjective"] tbody tr td:nth-child(3) input,
div[id$="_accountCampaignObjective"] thead tr th:nth-child(2) input,
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(2) input,
div[id$="_accountCampaignObjective"] thead tr th:nth-child(3) input,
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(3) input,
div[id$="_accountCampaignObjective"] thead tr th:nth-child(4) input,
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(4) input,
div[id$="_accountCampaignObjective"] thead tr th:nth-child(5) input,
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(5) input,
div[id$="_accountCampaignObjective"] thead tr th:nth-child(6) input,
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(6) input{
    color: #000;
    background: none;
    border: 0;
}
div[id$="_accountObjective"] thead tr th:nth-child(6),
div[id$="_accountObjective"] tbody tr td:nth-child(6),
div[id$="_accountCampaignObjective"] thead tr th:nth-child(9),
div[id$="_accountCampaignObjective"] tbody tr td:nth-child(9){
    display: none;
}
div[id$="_accountObjective"] input[id$="_status"],
div[id$="_accountCampaignObjective"] input[id$="_status"]{
    position: relative;
    top: 6px;
    width: 22px;
    height: 22px;
    color: transparent;
    border: 0;
    border-radius: 22px;
    cursor: default;
}
div[id$="_accountObjective"] input[id$="_status"][value="1"],
div[id$="_accountCampaignObjective"] input[id$="_status"][value="1"]{
    background: #0c0;
}
div[id$="_accountObjective"] input[id$="_status"][value="0"],
div[id$="_accountCampaignObjective"] input[id$="_status"][value="0"]{
    background: #f00;
}

/* account conversion action */
div[id$="_accountConversionAction"] tbody tr td{
    padding-top: 0;
    padding-bottom: 0;
}
div[id$="_accountConversionAction"] table,
div[id$="_accountConversionAction"] thead,
div[id$="_accountConversionAction"] tbody,
div[id$="_accountConversionAction"] tr,
div[id$="_accountConversionAction"] th,
div[id$="_accountConversionAction"] td{
    border: 0;
}
div[id$="_accountConversionAction"] thead,
div[id$="_accountConversionAction"] .control-label{
    display: none;
}
div[id$="_accountConversionAction"] tbody tr td:nth-child(1){
    width: 30px;
}
div[id$="_accountConversionAction"] tbody tr td:nth-child(2) input{
    color: #000;
    border: 0;
    background: transparent;
}

/* google merchant center product settings */
div[id$="googleMerchantCenterProductSettings"] .table thead{
    display: none;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading) td:first-child{
    display: none;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading) td:nth-child(2) input{
    color: #000;
    border: 0;
    padding: 0;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading) td:nth-child(3) input {
    text-align: right;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody{
    border: solid 1px #ddd;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr{
    display: flex;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading):nth-child(even){
    background: #f9f9f9;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading):nth-child(even):hover{
    background: #e9e9e9;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading):nth-child(odd){
    background: #fff;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr:not(.heading):nth-child(odd):hover{
    background: #d9d9d9;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr.heading{
    padding-top: 5px;
    padding-bottom: 5px;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr.heading td{
    width: 100%;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr.heading button{
    float: right;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody tr.heading button i{
    padding-right: 5px;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody td{
    border: 0;
    padding-top: 3px;
    padding-bottom: 3px;
    margin-bottom: 0;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody td:nth-child(2) input{
    background: transparent;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody td:nth-child(3) input{
    color: #000;
    opacity: 0.8;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody td:nth-child(2){
    width: 75%;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody td:nth-child(3){
    width: 25%;
    padding-right: 3px;
}
div[id$="googleMerchantCenterProductSettings"] .table tbody.sonata-ba-tbody{
    display: none;
}

/* report log */
form[action*="/reportlog/"] .table th:nth-child(1){
    width: 20px;
}
form[action*="/reportlog/"] .table th:nth-child(2){
    width: 50px;
    text-align: center;
}
form[action*="/reportlog/"] .table th:nth-child(2) a{
    margin-right: 0;
}
form[action*="/reportlog/"] .table td:nth-child(2){
    width: 50px;
    text-align: center;
    color: transparent;
    font-size: 0;
}
form[action*="/reportlog/"] .table th:nth-child(3),
form[action*="/reportlog/"] .table td:nth-child(3){
    display: none;
}
form[action*="/reportlog/"] .table th:nth-child(5),
form[action*="/reportlog/"] .table th:nth-child(6){
    width: 160px;
}
form[action*="/reportlog/"] .table th:nth-child(7){
    width: 120px;
}
form[action*="/reportlog/"] .status{
    width: 22px;
    height: 22px;
    border-radius: 20px;
    display: inline-block;
}
form[action*="/reportlog/"] .status.status-0 {
    background: #f00;
}
form[action*="/reportlog/"] .status.status-1 {
    background: #f80;
}
form[action*="/reportlog/"] .status.status-2 {
    background: #0c0;
}

/* process */
form[action*="/process/"] div[id$="_processTrigger"] textarea {
    height: auto;
    color: #000;
    border: 0;
    background: transparent;
    padding: 0;
}
form[action*="/process/"] input[id$="_processImage"][type="text"] {
    display: none;
}

/* roleDomainUser */
div[id$="_roleDomainUser"] .table {
    width: 50%;
    border: solid 1px #ccc;
}
div[id$="_roleDomainUser"] .table th,
div[id$="_roleDomainUser"] .table td {
    border: 0;
    padding-left: 0;
}
div[id$="_roleDomainUser"] .table thead {
    display: none;
}
div[id$="_roleDomainUser"] .table tr:nth-child(even) {
    background: #f0f0f0;
}
div[id$="_roleDomainUser"] .table tr:nth-child(odd) {
    background: #f9f9f9;
}
div[id$="_roleDomainUser"] .table td {
    padding: 2px 5px 4px;
}
div[id$="_roleDomainUser"] .table input {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

/* offer activity */
div[id$="_offerActivity"] .table td p[id$="_type_help"],
div[id$="_offerActivity"] .table td p[id$="_creator_help"],
div[id$="_offerActivity"] .table td p[id$="_entryDate_help"] {
    white-space: nowrap;
}

/* custom */
div[id$="_landingPageUrl"] {
    margin-bottom: 25px;
}
div[id$="_landingPageUrl"].modal,
div[id$="_landingPageUrl"] > .control-label {
    display: none;
}
div[id$="_landingPageUrl"] .table {
    margin-bottom: 5px;
}
div[id$="_landingPageUrl"] .table,
div[id$="_landingPageUrl"] .table th,
div[id$="_landingPageUrl"] .table td {
    border: 0;
}
div[id$="_landingPageUrl"] .table th:first-child,
div[id$="_landingPageUrl"] .table td:first-child {
    padding-left: 0;
}
td.custom-order-status span.status {
    text-align: center;
    border-radius: 5px;
    padding: 2px 5px;
    display: block;
    cursor: default;
}
td.custom-order-status.open span.status {
    color: #fff;
    background: #f66;
}
td.custom-order-status.progress span.status {
    color: #fff;
    background: #ffa500;
}
form[action*="/customer/"] div[id$="_customSetting"] input[id$="_logo"][type="text"],
form[action*="/custom/setting/"] input[id$="_logo"][type="text"] {
    display: none;
}

form[action*="/customer/"] div[id$="_customSetting"] .custom-tab.box-header{
    padding-left: 0;
    padding-bottom: 15px;
    border-top: solid 1px #ccc;
    margin-top: 25px;
}

div[id$="_domainData_cmsSystem"] {
    padding: 0;
}

div[id$="_domainData_cmsSystem"] .modal-content {
    height: auto !important;
}

.version-history-modal {
    display: block;
}

.file-upload .form-control {
    height: 150px;
    outline: 1px dashed #ccc;
    outline-offset: -15px;
    background-color: #eee;
}
.file-upload .form-control:before {
    content: "\1F4C4";
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 3em;
    left: 0;
    right: 0;
    display: block;
    margin: 20px auto;
    text-align: center;
}
.file-upload .form-control:after {
    content: attr(data-message);
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    display: block;
}
.file-upload .form-control input[type="file"] {
    cursor: pointer;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.file-upload.drag-over .form-control {
    border-color: #3b82f6;
    background-color: #e0f2fe;
    transition: all 0.2s ease;
}

#document-upload-table {
    display: none;
}

/* ai prompt parameter */
form[action*="/ai-prompt/"] input[id*="_promptParameter_"][id$="_code"] {
    border: 0;
    cursor: text;
    background: transparent;
}
form[action*="/ai-prompt/"] div[id$="_promptParameter"] th:first-child {
    visibility: hidden;
}
form[action*="/ai-prompt/"] div[id$="_promptParameter"] td {
    min-width: 33.33%;
}
form[action*="/ai-prompt/"] div[id$="_promptParameter"] td:first-child {
    width: 32px;
    min-width: auto;
}
form[action*="/ai-prompt/"] div[id$="_promptParameter"] td:first-child .icheckbox_square-blue {
    background: none;
}
form[action*="/ai-prompt/"] div[id$="_promptParameter"] td:first-child .icheckbox_square-blue::after {
    width: 20px;
    height: 20px;
    content: "\f1f8";
    display: block;
    font-family: Font Awesome\ 5 Free, serif;
}
form[action*="/ai-prompt/"] div[id$="_promptParameter"] th:nth-child(4),
form[action*="/ai-prompt/"] div[id$="_promptParameter"] td:nth-child(4){
    display: none;
}
/* */

/* ai chat */
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:first-child .icheckbox_square-blue {
    background: none;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:first-child .icheckbox_square-blue::after {
    width: 20px;
    height: 20px;
    content: "\f1f8";
    display: block;
    font-family: Font Awesome\ 5 Free, serif;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] tr {
    display: flex;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] th:first-child,
form[action*="/ai-chat/"] div[id*="_chatPermission"] th:nth-child(2),
form[action*="/ai-chat/"] div[id*="_chatPermission"] th:nth-child(4),
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:nth-child(2) {
    display: none;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:first-child {
    order: 999;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:not(:first-child) {
    order: 1;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td {
    margin-bottom: 0;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:nth-child(1) {
    width: 20%;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:nth-child(3) {
    width: 50%;
}
form[action*="/ai-chat/"] div[id*="_chatPermission"] td:nth-child(4) {
    width: 30%;
}
form[action*="/ai-chat/"] div[id*="_chatPermissionUsers"] .checkbox label {
    font-weight: normal;
}
form[action*="/ai-chat/"] div[id*="_chatPermissionUsers"] .checkbox label div:first-child,
form[action*="/ai-chat/"] div[id*="_chatPermissionUsers"] .checkbox label input {
    display: none;
}
/* */

/* range slider */
form input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}
form input[type="range"]:focus {
    outline: none;
}
form input[type="range"]::-webkit-slider-runnable-track {
    background-color: #d9d9d9;
    border-radius: 0.5rem;
    height: 0.5rem;
}
form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
appearance: none;
    margin-top: -4px;
background-color: #00a65a;
    border-radius: 0.5rem;
    height: 1rem;
    width: 1rem;
}
form input[type="range"]:focus::-webkit-slider-thumb {
    outline: 3px solid #00a65a;
    outline-offset: 0.125rem;
}
form input[type="range"]::-moz-range-track {
    background-color: #d9d9d9;
    border-radius: 0.5rem;
    height: 0.5rem;
}
form input[type="range"]::-moz-range-thumb {
    background-color: #00a65a;
    border: none;
border-radius: 0.5rem;
    height: 1rem;
    width: 1rem;
}
form input[type="range"]:focus::-moz-range-thumb {
    outline: 3px solid #00a65a;
    outline-offset: 0.125rem;
}
/* */

.btn-del-group {
    position: absolute;
    top: 0;
    right: 0;
}

.rule-bg {
    border: 1px solid #e5e5e5;
    padding: 5px;
    border-radius: 5px;
    background: #f5f5f5;
    display: flex;
}

.fb-group-bordered {
    border: 1px solid #e5e5e5;
    padding: 5px;
    border-radius: 5px;
    position: relative;
}

.mb-10 {
    margin-bottom: 10px;
}

#custom_content_sections-table .form-group {
    margin-bottom: 0;
}

.crawler-config-bordered-sections {
    border: 1px solid #e5e5e5;
    padding: 5px;
}

.crawler-config-pagetype-content-section {
    margin-bottom: 5px;
}
