/*!
 * Data grid for status page at https://localize.typo3.org/
 */
/*!
 * AG Grid community v36.2.0 by AG Grid Ltd. - https://www.ag-grid.com
 * License - https://www.ag-grid.com/eula/AG-Grid-Community-License.html (MIT License)
 */
/*!
 * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2024 Fonticons, Inc.
 */

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../fonts/fa-solid-900.woff2') format('woff2'),
         url('../fonts/fa-solid-900.ttf') format('truetype');
}

/* Matches the font typo3.org loads for its <typo3-universe> topbar, which has no font-family
   of its own and inherits it from the host page through the shadow DOM boundary. */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-3-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/source-sans-3-latin-400.woff2') format('woff2');
}

:root,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    --ag-font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
}

/*
 Header
 */
.status-date {
    display: block;
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
}

header .logo-wrapper {
    margin-right: 21px;
    width: auto;
}

.order-lg-2 {
    order: 2 !important;
}

.order-lg-3 {
    order: 3 !important;
}

/*
 AG-grid
 */
#ag-grid {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
}

.ag-grid-scrolling-rows .ag-grid-pinned-left-cells .ag-cell {
    text-align: left;
}

.ag-cell {
    text-align: center;
}

:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing) {
    padding-left: calc(var(--ag-cell-horizontal-padding) / 2 - 1px + var(--ag-row-group-indent-size) * var(--ag-indentation-level));
    padding-right: calc(var(--ag-cell-horizontal-padding) / 2 - 1px);
}

.ag-cell a {
    text-decoration: none;

    :hover {
        text-decoration: underline;
    }
}

.ag-cell a:hover {
    text-decoration: underline;
}

.ag-header-cell, .ag-header-group-cell {
    padding: 0 calc(var(--ag-cell-horizontal-padding) / 2);
}

.ag-header-cell-label {
    height: 100%;
}

.ag-header-viewport .ag-header-cell-label {
    justify-content: flex-start;
    padding-left: 1.75rem;
}

.ag-header-cell-label, .ag-header-group-cell-label {
    align-items: baseline;
}

.ag-header-cell-label .ag-header-cell-text {
    margin-top: 40px;
}

.ag-header-cell-resize {
    &::after {
        height: 100%;
        top: calc(100% - var(--ag-header-column-resize-handle-height) * 2);
        width: calc(var(--ag-header-column-resize-handle-width) / 2);
    }
}

.ag-sort-indicator-container {
    display: flex;
    gap: var(--ag-spacing);
}

:where(.ag-ltr) .ag-sort-indicator-icon {
    padding-left: 0;
}

.ag-row-even {
    background-color: #fafafa;
}

.t3-admonition {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.ag-grid-scrolling-cells .ag-header-cell-label {
    justify-content: center;
}

.t3-admonition:before {
    content: "\f071";
}

.t3-admonition-warning {
    color: #f00;
}

.t3-cell-element {
    font-size: calc(var(--ag-font-size) * 0.75);
    padding: 2px;
}

.t3-cell-element-danger {
    color: #f00;
}

.t3-cell-element-success {
    color: #090;
}

.t3-cell-element-warning {
    color: #ff9900;
}

.t3-cell-element-lang-approval-missing {
    text-decoration: underline;
}

.t3-cell-element-unit-percent::after {
    content: "%";
}

.t3-header-cell-language .ag-header-cell-label .ag-header-cell-text {
    display: inline-block;
    height: 90px;
    margin-top: 5px;
    overflow: hidden;
    transform: rotate(180deg);
    text-overflow: ellipsis;
    white-space: nowrap;
    writing-mode: vertical-lr;
    -ms-writing-mode: tb-lr;
}

.page-footer {
    flex-shrink: 0;
}

.footer-meta-crowdin {
    margin-bottom: 0.5em;
}

.footer-meta-crowdin a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
}

.footer-meta-crowdin a:hover {
    text-decoration: underline;
}

.footer-meta-crowdin-logo {
    width: 1.1em;
    height: 1.1em;
}
