* {
    box-sizing: border-box;
}


/*
 * ==========================================================
 * COMMON APPLICATION HEADER
 * ==========================================================
 */

.app-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: #ffffff;

    border-bottom:
        1px solid #e2e5e9;
}

.app-header-inner {
    width: 100%;

    max-width: 1900px;

    margin: 0 auto;

    padding:
        20px
        34px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.app-header-brand {
    min-width: 0;
}

.app-header-title {
    margin: 0;

    color: #202124;

    font-size: 26px;
    font-weight: 700;

    line-height: 1.2;
}

.app-header-subtitle {
    margin-top: 4px;

    color: #858a91;

    font-size: 14px;

    line-height: 1.4;
}

.app-header-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.app-header-user {
    margin-right: 4px;

    color: #777d85;

    font-size: 14px;

    white-space: nowrap;
}

.app-header-link,
.app-header-logout-button {
    min-height: 42px;

    padding:
        9px
        16px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 650;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}

.app-header-link {
    border:
        1px solid #dbe5f3;

    background: #f3f7fd;

    color: #3566ad;
}

.app-header-link:hover {
    background: #e9f0fa;
}

.app-header-link.active {
    border-color: #cbdcf2;

    background: #e8f0fb;

    color: #285b9f;
}

.app-header-logout-form {
    margin: 0;
}

.app-header-logout-button {
    border:
        1px solid #dadde1;

    background: #ffffff;

    color: #555b62;
}

.app-header-logout-button:hover {
    background: #f4f5f6;
}


/*
 * ==========================================================
 * MOBILE
 * ==========================================================
 */

@media (max-width: 700px) {
    .app-header-inner {
        padding:
            14px
            16px;

        align-items: flex-start;
    }

    .app-header-title {
        font-size: 22px;
    }

    .app-header-subtitle {
        font-size: 12px;
    }

    .app-header-user {
        display: none;
    }

    .app-header-actions {
        gap: 6px;
    }

    .app-header-link,
    .app-header-logout-button {
        min-height: 38px;

        padding:
            8px
            11px;

        font-size: 13px;
    }
}


@media (max-width: 520px) {
    .app-header-inner {
        display: block;
    }

    .app-header-actions {
        margin-top: 12px;

        flex-wrap: wrap;
    }
}
