/**
 *
 * @ai-apps/angular v2.152.0 | _modal.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


.#{$prefix}--chart-holder {
	.#{$prefix}--modal {
		&.is-visible {
			z-index: 99999;
		}

		.#{$prefix}--modal-container {
			.#{$prefix}--modal-header {
				&__label {
					margin-top: 0;
					margin-bottom: 0;
				}

				&__heading {
					margin-top: 0.5rem;
					margin-bottom: 1rem;
				}
			}

			.#{$prefix}--modal-content {
				// padding-right: 1rem;
				padding: 0;
				margin-bottom: 0;

				table {
					position: relative;
					border-collapse: collapse;

					th {
						position: sticky;
						top: 0;
					}
				}

				@if $ui-background ==
					map-get($carbon--theme--g90, 'ui-background') or
					$ui-background ==
					map-get($carbon--theme--g100, 'ui-background')
				{
					color-scheme: dark;
				}
			}

			.#{$prefix}--modal-footer {
				background-color: transparent;

				.#{$prefix}--#{$charts-prefix}-modal-footer-spacer {
					width: 50%;
				}
			}
		}
	}
}
