@charset "UTF-8";

/* ============================================================
   MEG_TAXATION MODERN MINIMALIST HEADER
   Exact replica of high-contrast dark header bar
   ============================================================ */

.meg-header {
    background-color: #111113;
    border-bottom: 1px solid #27272a;
    width: 100%;
    position: relative;
    z-index: 1020;
}

.meg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 1rem 15px;
    gap: 1rem;
}

/* Brand Section */
.meg-header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none !important;
    color: #ffffff !important;
    min-width: 0;
}

.meg-header-brand:hover,
.meg-header-brand:focus {
    text-decoration: none !important;
    color: #ffffff !important;
}

.meg-header-logo-badge {
    background: #ffffff;
    height: 42px;
    width: auto;
    /*min-width: 38px;*/
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.meg-header-logo-badge img {
    max-height: 32px;
    max-width: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.meg-header-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.meg-header-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ca3af;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-top: 2px;
}

/* Right Controls */
.meg-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* Dark Action Button */
.meg-header-btn-dark {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #f4f4f5 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.meg-header-btn-dark:hover,
.meg-header-btn-dark:focus {
    background-color: #3f3f46;
    border-color: #52525b;
    color: #ffffff !important;
}

.meg-header-btn-dark i {
    font-size: 0.95rem;
    line-height: 1;
}

/* White Menu Dropdown Button */
.meg-header-btn-menu {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #09090b !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.meg-header-btn-menu:hover,
.meg-header-btn-menu:focus,
.meg-header-btn-menu[aria-expanded="true"] {
    background-color: #f4f4f5;
    border-color: #e4e4e7;
    color: #09090b !important;
}

.meg-header-btn-menu i {
    font-size: 1rem;
    line-height: 1;
}

.meg-header-btn-menu.dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: 0.15em;
}

/* Dropdown Menu */
.meg-header .dropdown-menu {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 0.45rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    min-width: 210px;
    margin-top: 6px !important;
    z-index: 1030;
}

.meg-header .dropdown-item {
    color: #e4e4e7 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.meg-header .dropdown-item:hover,
.meg-header .dropdown-item:focus {
    background-color: #27272a;
    color: #ffffff !important;
}

.meg-header .dropdown-item i {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1;
}

.meg-header .dropdown-item:hover i,
.meg-header .dropdown-item:focus i {
    color: #ffffff;
}

.meg-header .dropdown-divider {
    border-top: 1px solid #27272a;
    margin: 0.35rem 0;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .meg-header-inner {
        padding: 0.6rem 12px;
    }

    .meg-header-subtitle {
        display: none;
    }

    .meg-header-btn-dark span {
        display: none;
    }

    .meg-header-btn-dark {
        padding: 0.45rem 0.65rem;
    }
}