/* === Page structure === */

body {
    background: #f0f2f5;
    padding: 0;
    margin: 0;
}

.page-wrapper {
    max-width: 1800px;
    margin: 0 auto;
}

.page-content {
    padding: 15px 0 0;
}

/* === Header === */

.site-header {
    background: #fff;
    border-top: 4px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    padding: 16px 32px;
}

.site-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
}

.site-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    display: block;
    margin-top: 2px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-logos img {
    max-height: 52px;
    width: auto;
    mix-blend-mode: multiply;
}

/* === Details header === */

.details-header {
    font-size: 1.5rem;
    margin-top: 24px;
}

#requestDate {
    font-size: 1.5rem;
    display: inline;
}

/* === Detail cards === */

.detail-card {
    border: none;
    box-shadow: none;
    margin-bottom: 16px;
    background-color: transparent;
}

.detail-card .card-body {
    background-color: transparent;
    padding: 0;
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* === Footer === */

.site-footer {
    margin: 40px 0 60px;
    font-size: 0.875rem;
    text-align: center;
    color: #6c757d;
    padding: 0 20%;
}

/* === Charts === */

#charts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emotion-chart {
    height: 480px;
}

/* === Tables === */

.tabulator-table {
    resize: both;
    overflow: hidden;
}

/* === Detail layout === */

.container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;

    @media (min-width: 1200px) {
        flex-direction: row;
    }
}

.comment-container {
    display: flex;
    flex-direction: column;
    width: 100%;

    @media (min-width: 1200px) {
        max-width: 60%;
    }
}

.keyword-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 50%;

    @media (min-width: 1200px) {
        max-width: 30%;
    }
}

/* === Loading spinners === */

.loadable {
    position: relative;
}

.view-spinner {
    display: none;
}

.loadable.is-loading {
    min-height: 480px;
}

.loadable.is-loading .view-spinner {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    z-index: 10;

    .spinner-border {
        width: 8rem;
        height: 8rem;
    }
}

/* === Nav pills === */

.nav-pills {
    .nav-link {
        font-size: 17px;

        &.active {
            font-weight: bold;
        }
    }
}

/* === Aggressive Keyword Table === */
#aggressiveKeywordsListTable.tabulator {
    font-size: 13px;
}