.title-page {
    margin-bottom: 20px; 
    margin-left: 20px;
}

.form-confirm .form-control {
    color: #5b6675;
    background-color: #f5f7f9 !important;
    border-color: #dde4ea;
}

.form-confirm .form-check-label {
    color: #5b6675;
}

.form-confirm .form-check-input:not(:checked) {
    background-color: #f5f7f9 !important;
    border-color: #dde4ea !important;
}

.form-confirm .form-check-input[type="radio"] {
    border-radius: 3px !important;
}

/* Rich Editor uses Froala elements rather than form-control elements. */
.form-confirm .fr-box,
.form-confirm .fr-wrapper,
.form-confirm .fr-element,
.form-confirm .fr-view,
.form-confirm iframe.fr-iframe {
    color: #5b6675 !important;
    background-color: #f5f7f9 !important;
    border-color: #dde4ea !important;
}

.form-confirm .fr-toolbar {
    display: none !important;
}

/* Coupon store picker is rendered by Select2, not by its hidden select element. */
.form-confirm .select2-container .select2-selection {
    color: #5b6675;
    background-color: #f5f7f9 !important;
    border-color: #dde4ea;
}

/* Banner preview styles are shared with all confirm screens. */
.form-confirm input[name="Banner[listing_priority]"] {
    color: #5b6675;
    background-color: #f5f7f9 !important;
    border-color: #dde4ea;
}

.form-confirm #Form-previewForm-field-Banner-ad_space_type-group .form-check,
.form-confirm #Form-previewForm-field-Banner-link_settings-group .form-check,
.form-confirm #Form-field-Banner-ad_space_type-group .form-check,
.form-confirm #Form-field-Banner-link_settings-group .form-check {
    color: #5b6675;
}

.form-confirm #Form-previewForm-field-Banner-ad_space_type-group .form-check-input:not(:checked),
.form-confirm #Form-previewForm-field-Banner-link_settings-group .form-check-input:not(:checked),
.form-confirm #Form-field-Banner-ad_space_type-group .form-check-input:not(:checked),
.form-confirm #Form-field-Banner-link_settings-group .form-check-input:not(:checked) {
    background-color: #f5f7f9;
    border-color: #dde4ea;
}

.form-confirm #Form-previewForm-field-Banner-banner_image-group button,
.form-confirm #Form-previewForm-field-Banner-banner_image-group .btn,
.form-confirm #Form-field-Banner-banner_image-group button,
.form-confirm #Form-field-Banner-banner_image-group .btn {
    display: none !important;
}

/* Non-standard widgets do not render their value as a regular form-control. */
.form-confirm #Form-previewForm-field-AdSlot-ad_space_type-group .field-checkboxlist-inner,
.form-confirm #Repeater-previewFormContentBlock-items-content_block .mediafinder-control-container,
.form-confirm #Repeater-previewFormContentBlock-items-content_block
.form-confirm #Form-previewForm-field-Banner-banner_image-group > div,
.form-confirm #Form-field-Banner-banner_image-group > div,
.form-confirm #Form-previewForm-field-Banner-banner_image-group *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-field-Banner-banner_image-group *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Banner-banner_image-group .form-control,
.form-confirm #Form-field-Banner-banner_image-group .form-control,
.form-confirm #Form-previewForm-field-Banner-notification-group > :not(label),
.form-confirm #Form-previewForm-field-Banner-notification-group > :not(label) *:not(label),
.form-confirm #Form-previewForm-field-Banner-magazine-group > :not(label),
.form-confirm #Form-previewForm-field-Banner-magazine-group > :not(label) *:not(label),
.form-confirm #Form-field-Banner-notification-group > :not(label),
.form-confirm #Form-field-Banner-notification-group > :not(label) *:not(label),
.form-confirm #Form-field-Banner-magazine-group > :not(label),
.form-confirm #Form-field-Banner-magazine-group > :not(label) *:not(label),
.form-confirm #Form-previewForm-field-AdSlot-horizontal_image-group > :not(label),
.form-confirm #Form-previewForm-field-AdSlot-horizontal_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-AdSlot-article_list_image-group > :not(label),
.form-confirm #Form-previewForm-field-AdSlot-article_list_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-AdSlot-in_feed_image-group > :not(label),
.form-confirm #Form-previewForm-field-AdSlot-in_feed_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-AdSlot-app_id_file-group > :not(label),
.form-confirm #Form-previewForm-field-AdSlot-app_id_file-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-AdSlot-magazine-group > :not(label),
.form-confirm #Form-previewForm-field-AdSlot-magazine-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Coupon-barcode_image-group > :not(label),
.form-confirm #Form-previewForm-field-Coupon-barcode_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Coupon-qr_code_image-group > :not(label),
.form-confirm #Form-previewForm-field-Coupon-qr_code_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Magazine-thumbnail_image-group > :not(label),
.form-confirm #Form-previewForm-field-Magazine-thumbnail_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Notification-app_id_file-group > :not(label),
.form-confirm #Form-previewForm-field-Notification-app_id_file-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Notification-thumbnail_image-group > :not(label),
.form-confirm #Form-previewForm-field-Notification-thumbnail_image-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Notification-html_file-group > :not(label),
.form-confirm #Form-previewForm-field-Notification-html_file-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Notification-magazine-group > :not(label),
.form-confirm #Form-previewForm-field-Notification-magazine-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Notification-everyone_notification-group > :not(label),
.form-confirm #Form-previewForm-field-Notification-everyone_notification-group > :not(label) *:not(label):not(img):not(button):not(.btn),
.form-confirm #Form-previewForm-field-Term-html_file-group > :not(label),
.form-confirm #Form-previewForm-field-Term-html_file-group > :not(label) *:not(label):not(img):not(button):not(.btn) {
    color: #5b6675;
    background-color: #f5f7f9 !important;
    border-color: #dde4ea;
}

.form-confirm #Form-previewForm-field-AdSlot-horizontal_image-group button,
.form-confirm #Form-previewForm-field-AdSlot-horizontal_image-group .btn,
.form-confirm #Form-previewForm-field-AdSlot-article_list_image-group button,
.form-confirm #Form-previewForm-field-AdSlot-article_list_image-group .btn,
.form-confirm #Form-previewForm-field-AdSlot-in_feed_image-group button,
.form-confirm #Form-previewForm-field-AdSlot-in_feed_image-group .btn,
.form-confirm #Form-previewForm-field-AdSlot-app_id_file-group button,
.form-confirm #Form-previewForm-field-AdSlot-app_id_file-group .btn,
.form-confirm #Form-previewForm-field-Coupon-barcode_image-group button,
.form-confirm #Form-previewForm-field-Coupon-barcode_image-group .btn,
.form-confirm #Form-previewForm-field-Coupon-qr_code_image-group button,
.form-confirm #Form-previewForm-field-Coupon-qr_code_image-group .btn,
.form-confirm #Form-previewForm-field-Magazine-thumbnail_image-group button,
.form-confirm #Form-previewForm-field-Magazine-thumbnail_image-group .btn,
.form-confirm #Form-previewForm-field-Notification-app_id_file-group button,
.form-confirm #Form-previewForm-field-Notification-app_id_file-group .btn,
.form-confirm #Form-previewForm-field-Notification-thumbnail_image-group button,
.form-confirm #Form-previewForm-field-Notification-thumbnail_image-group .btn,
.form-confirm #Form-previewForm-field-Notification-html_file-group button,
.form-confirm #Form-previewForm-field-Notification-html_file-group .btn,
.form-confirm #Form-previewForm-field-Term-html_file-group button,
.form-confirm #Form-previewForm-field-Term-html_file-group .btn {
    display: none !important;
}

#Form-field-Account-is_activated-group div.form-check,
#Form-field-Account-permissions_group-group div.form-check,
#Form-field-Magazine-windows-group div.form-check,
#Form-previewForm-field-Account-is_activated-group div.form-check,
#Form-previewForm-field-Account-permissions_group-group div.form-check,
#Form-previewForm-field-Magazine-windows-group div.form-check {
    padding-right: 5px;
    padding-left: 0 !important;
}

#Form-field-Account-is_activated-group div.form-check.form-check-inline,
#Form-field-Account-permissions_group-group div.form-check.form-check-inline,
#Form-field-Magazine-windows-group div.form-check.form-check-inline,
#Form-previewForm-field-Account-is_activated-group div.form-check.form-check-inline,
#Form-previewForm-field-Account-permissions_group-group div.form-check.form-check-inline,
#Form-previewForm-field-Magazine-windows-group div.form-check.form-check-inline {
    margin-right: 0 !important;
}

#Form-field-Account-is_activated-group div.form-check.form-check-inline .form-check-label,
#Form-field-Account-permissions_group-group div.form-check.form-check-inline .form-check-label,
#Form-field-Magazine-windows-group div.form-check.form-check-inline .form-check-label,
#Form-previewForm-field-Account-is_activated-group div.form-check.form-check-inline .form-check-label,
#Form-previewForm-field-Account-permissions_group-group div.form-check.form-check-inline .form-check-label,
#Form-previewForm-field-Magazine-windows-group div.form-check.form-check-inline .form-check-label {
    display: inline-block;
    margin: 0;
    padding: 5px 50px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 5px;
    margin-right: -1px;
}

#Form-field-Account-is_activated-group div.form-check.form-check-inline .form-check-input,
#Form-field-Account-permissions_group-group div.form-check.form-check-inline .form-check-input,
#Form-field-Magazine-windows-group div.form-check.form-check-inline .form-check-input,
#Form-previewForm-field-Account-is_activated-group div.form-check.form-check-inline .form-check-input,
#Form-previewForm-field-Account-permissions_group-group div.form-check.form-check-inline .form-check-input,
#Form-previewForm-field-Magazine-windows-group div.form-check.form-check-inline .form-check-input {
    display: none;
}

#Form-field-Account-is_activated-group div.form-check.form-check-inline .form-check-input:checked+label,
#Form-field-Account-permissions_group-group div.form-check.form-check-inline .form-check-input:checked+label,
#Form-field-Magazine-windows-group div.form-check.form-check-inline .form-check-input:checked+label,
#Form-previewForm-field-Account-is_activated-group div.form-check.form-check-inline .form-check-input:checked+label,
#Form-previewForm-field-Account-permissions_group-group div.form-check.form-check-inline .form-check-input:checked+label,
#Form-previewForm-field-Magazine-windows-group div.form-check.form-check-inline .form-check-input:checked+label {
    background-color: rgb(106, 178, 255);
    color: white;
    border-color: rgb(106, 178, 255);
    z-index: 1;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
}

#Form-previewForm-field-Banner-ad_space_type-group div .form-check-input,
#Form-previewForm-field-Banner-link_settings-group div .form-check-input,
#Form-field-Banner-ad_space_type-group div .form-check-input,
#Form-field-Banner-link_settings-group div .form-check-input,
#Form-field-Maintenance-notification_setting-group div .form-check-input,
#Form-field-Notification-link_settings-group div .form-check-input,
#Form-previewForm-field-AdSlot-ad_space_type-group div .form-check-input,
#Form-field-AdSlot-ad_space_type-group div .form-check-input,
#Form-previewForm-field-AdSlot-link_settings-group div .form-check-input,
#Form-field-AdSlot-link_settings-group div .form-check-input,
#Form-previewForm-field-AdSlot-display_setting-group div .form-check-input,
#Form-field-AdSlot-display_setting-group div .form-check-input,
#Form-field-AdSlot-target_audience-group div .form-check-input,
#Form-field-Notification-target_audience-group div .form-check-input,
#Form-previewForm-field-Notification-target_audience-group div .form-check-input {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: white;
    vertical-align: middle;
    position: relative;
}

#Form-previewForm-field-Banner-ad_space_type-group .form-check-input:checked,
#Form-previewForm-field-Banner-link_settings-group .form-check-input:checked,
#Form-field-Banner-ad_space_type-group .form-check-input:checked,
#Form-field-Banner-link_settings-group .form-check-input:checked,
#Form-field-Maintenance-notification_setting-group .form-check-input:checked,
#Form-field-Notification-link_settings-group .form-check-input:checked,
#Form-previewForm-field-AdSlot-ad_space_type-group .form-check-input:checked,
#Form-field-AdSlot-ad_space_type-group .form-check-input:checked,
#Form-previewForm-field-AdSlot-link_settings-group .form-check-input:checked,
#Form-field-AdSlot-link_settings-group .form-check-input:checked,
#Form-previewForm-field-AdSlot-display_setting-group .form-check-input:checked,
#Form-field-AdSlot-display_setting-group .form-check-input:checked,
#Form-previewForm-field-AdSlot-image_from_news_setting-group .form-check-input:checked,
#Form-field-AdSlot-image_from_news_setting-group .form-check-input:checked,
#Form-field-AdSlot-target_audience-group .form-check-input:checked,
#Form-field-Notification-target_audience-group .form-check-input:checked,
#Form-previewForm-field-Notification-target_audience-group .form-check-input:checked,
#Form-previewForm-field-Notification-link_settings-group .form-check-input:checked,
#Form-previewForm-field-AdSlot-target_audience-group .form-check-input:checked,
#Form-previewForm-field-Maintenance-notification_setting-group .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-confirm #Form-previewForm-field-Notification-target_audience-group .form-check-label,
.form-confirm #Form-field-Notification-target_audience-group .form-check-label {
    color: #5b6675 !important;
}

.form-confirm #Form-previewForm-field-Notification-target_audience-group .form-check-input:not(:checked),
.form-confirm #Form-field-Notification-target_audience-group .form-check-input:not(:checked) {
    background-color: #f5f7f9 !important;
    border-color: #dde4ea !important;
    border-radius: 3px !important;
}

#Form-field-Maintenance-custom_announcement-group .form-text.before-field {
    display: inline;
}

.field-section {
    border-bottom: none !important;
    font-size: 16px;
}

.situation,
.type,
.incentive {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.situation-1,
.activated {
    color: #67904b;
    background-color: #e1efd8;
}

.situation-2 {
    color: #cfa526;
    background-color: #fee599;
}

.situation-3,
.disactive, 
.deleted {
    background-color: #d8d8d8;
}

.situation-4 {
    color: #658e4d;
    background-color: #ddeaf6;
}

.incentive-1,
.link-setting-2 {
    color:rgb(8, 138, 245);
    background-color: #66CBFB;
}

.incentive-2,
.link-setting-3 {
    color: #7A9FC2;
    background-color: #DDEAF6;
}

.incentive-3 {
    background-color: #ededed;
}

.type-1 {
    color: #0473c2;
    background-color: #66ccff;
}

.type-2 {
    color: #ff3232;
    background-color: #ffcccc;
}

.type-3 {
    color: #4c89c0;
    background-color: #ddeaf6;
}

.type-4 {
    color: #576065;
    background-color: #D8D8D8;
}

.link {
    padding: 10px;
    border-radius: 2px;
    text-align: center;
}

.link-setting-1 {
    color: red;
    background-color: #f6cccc;
}

.link-setting-4,
.link-setting-99 {
    color: #924D27;
    background-color: #F7CAAC;    
}

.banner-title-column,
.coupon-title-column,
.magazine-title-column,
.maintenance-title-column,
.nofitication-title-column {
    max-width: 200px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.banner-title-column > span,
.coupon-title-column > span,
.magazine-title-column > span,
.maintenance-title-column > span,
.nofitication-title-column > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.segment-ellipsis-column {
    max-width: 200px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.age-not-set {
    width: 100px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    margin-bottom: 0;
}

.age-not-set input {
    display: none;
}

.age-not-set:has(input:checked) {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}
