/* Compact application chrome: keep controls close to the working area. */
.app-topbar {
    height: 64px;
    padding-inline: 24px;
}

.topbar-actions { gap: 8px; }

.topbar-operation-create {
    flex: 0 0 40px;
    border-color: color-mix(in srgb, var(--coral) 82%, #b63f30);
    background: var(--coral);
    color: #fff;
    box-shadow: 0 7px 18px rgba(239, 114, 95, .2);
}

.topbar-operation-create:hover {
    border-color: #df6453;
    background: #df6453;
    color: #fff;
}

.topbar-operation-create i { font-size: 20px; }

.app-content { padding-top: 16px; }

.page-heading-compact {
    min-height: 40px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.page-heading-compact > div:first-child { display: none; }
.page-heading-compact:not(:has(> a, > form, > .page-actions)) { display: none; }

.sidebar-collapsed .sidebar-collapse-button {
    top: 66px;
    right: 5px;
    z-index: 6;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: visible;
    box-shadow: 0 5px 14px rgba(6, 24, 34, .28);
}

.sidebar-collapsed .sidebar-collapse-button i {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.operation-form-nav { top: 76px; }
.form-section { scroll-margin-top: 130px; }

body.theme-midnight .topbar-operation-create {
    border-color: color-mix(in srgb, var(--coral) 82%, #b63f30);
    background: var(--coral);
    color: #fff;
}

@media (max-width: 820px) {
    .app-topbar { height: 60px; padding-inline: 14px; }
    .app-content { padding-top: 12px; }
    .operation-form-nav { top: 66px; }
}

@media (max-width: 560px) {
    .page-heading-compact {
        min-height: 38px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .page-heading-compact > .primary-button { width: auto; }
}
