/* =========================
   GLOBAL APP HEADER SYSTEM
   ========================= */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e6e9ee;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Left block */
.app-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.app-logo {
    height: 42px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}

/* Vertical divider */
.app-brand-divider {
    width: 1px;
    height: 42px;
    background: #d6dbe3;
    flex: 0 0 auto;
}

/* Text block */
.app-brand-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.app-home-link {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 3px;
    width: fit-content;
}

    .app-home-link:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }

.app-service-title {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center / right nav */
.app-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
}

.app-nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #5b6472;
    text-decoration: none;
    white-space: nowrap;
}

    .app-nav-link:hover {
        color: #111827;
        text-decoration: none;
    }

/* Logout area */
.app-logout {
    margin: 0 0 0 auto;
    flex: 0 0 auto;
}

/* Main page spacing */
.page-content {
    padding-top: 28px;
    padding-bottom: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .app-topbar-inner {
        gap: 18px;
    }

    .app-nav {
        gap: 18px;
    }

    .app-service-title {
        font-size: 15px;
    }

    .app-nav-link {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .app-topbar-inner {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .app-brand {
        width: 100%;
    }

    .app-nav {
        width: 100%;
        gap: 16px;
        flex-wrap: wrap;
    }

    .app-logout {
        margin-left: 0;
    }

    .app-service-title {
        white-space: normal;
    }
}

.money,
.money-cell {
    white-space: nowrap !important;
}

.money {
    display: inline-block;
}
.wrap-text {
    white-space: normal !important;
    word-break: break-word;
    max-width: 220px;
}
table {
    table-layout: auto;
    width: 100%;
}
