/* Brand produk Mecha HRIS (components/mecha-brand.blade.php) */
.mecha-brand {
    --mecha-ink: #1e1b4b;
    --mecha-accent: #4338ca;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.mecha-brand__mark {
    flex: none;
    display: block;
}

.mecha-brand__name {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--mecha-accent);
}

.mecha-brand__name b {
    font-weight: 700;
    color: var(--mecha-ink);
}

.mecha-brand--lockup .mecha-brand__name {
    font-size: 20px;
}

.mecha-brand--powered {
    gap: 6px;
    font-size: 11.5px;
}

.mecha-brand--powered .mecha-brand__by {
    color: #8a93a3;
    font-weight: 500;
}

.mecha-brand--powered .mecha-brand__name {
    font-size: 12px;
}

.mecha-brand--powered .mecha-brand__group {
    color: #8a93a3;
    font-weight: 500;
    white-space: nowrap;
}

/* Info induk usaha (components/mecha-company.blade.php) */
.mecha-company a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.layout-dark .mecha-brand {
    --mecha-ink: #ffffff;
    --mecha-accent: #a5f3fc;
}

/* ---------- Sidebar: strip "Powered by Mecha HRIS" di bawah profil ---------- */
.sidebar-brand {
    flex: none;
    display: flex;
    justify-content: center;
    padding: 8px 15px 12px;
}

.sidebar-brand a {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 8px;
    text-decoration: none;
}

.sidebar-brand a:hover {
    background: rgba(67, 56, 202, 0.06);
}

@media (min-width: 1025px) {
    body.sidebar-collapsed .dash-sidebar:not(:hover) .sidebar-brand .mecha-brand__by,
    body.sidebar-collapsed .dash-sidebar:not(:hover) .sidebar-brand .mecha-brand__name,
    body.sidebar-collapsed .dash-sidebar:not(:hover) .sidebar-brand .mecha-brand__group {
        display: none;
    }

    body.sidebar-collapsed .dash-sidebar:not(:hover) .sidebar-brand {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-height: 720px) {
    .sidebar-brand {
        padding-top: 4px;
        padding-bottom: 8px;
    }
}

/* ---------- Footer halaman ---------- */
.dash-footer .footer-wrapper .py-1,
.auth-footer .col-12 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

/* ---------- Halaman login ---------- */
/* footer login menimpa ilustrasi: beri latar agar tetap terbaca */
.auth-footer .mecha-brand--powered {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 0;
    text-align: center;
}

.auth-brand__company {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #3e3e3e;
    letter-spacing: 0.02em;
}

/* Sidebar sempit: "· Mecha ERP Group" turun ke baris kedua */
.sidebar-brand .mecha-brand--powered {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
}

.sidebar-brand .mecha-brand__group {
    flex-basis: 100%;
    text-align: center;
}
