/* MH-07 | Global Header */

.global-header {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.global-header__search {
    flex: 1 1 520px;
    min-width: 220px;
    max-width: 760px;
    display: flex;
    align-items: stretch;
}

.global-header__search-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.global-header__search-input:focus {
    border-color: #2b7f91;
    box-shadow: inset 0 0 0 1px #2b7f91;
}

.global-header__search-button {
    min-width: 68px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #2b7f91;
    border-radius: 0 10px 10px 0;
    background: #2b7f91;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.global-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-header__action,
.global-header__status,
.global-header__account-button {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.global-header__action:hover,
.global-header__status:hover,
.global-header__account-button:hover {
    background: #f1f5f9;
}

.global-header__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.global-header__account {
    position: relative;
}

.global-header__account-button {
    border-color: #e2e8f0;
    background: #ffffff;
}

.global-header__account-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1f2937;
    font-weight: 600;
}

.global-header__account-caret {
    color: #64748b;
    font-size: 11px;
}

.global-header__account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 300;
    min-width: 150px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.global-header__account-menu[hidden],
.global-header [hidden] {
    display: none !important;
}

.global-header__menu-item {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.global-header__menu-item:hover {
    background: #f1f5f9;
}


.global-header__status-wrap {
    position: relative;
}

.global-header__status-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 320;

    width: 260px;
    padding: 14px;

    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.global-header__status-panel[hidden] {
    display: none;
}

.global-header__status-title {
    margin-bottom: 10px;

    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.global-header__status-list {
    margin: 0;
}

.global-header__status-list > div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;

    padding: 7px 0;
    border-top: 1px solid #f1f5f9;
}

.global-header__status-list dt,
.global-header__status-list dd {
    margin: 0;
    font-size: 12px;
}

.global-header__status-list dt {
    color: #64748b;
}

.global-header__status-list dd {
    color: #1f2937;
    word-break: break-word;
}

.global-header__status-dot.is-error {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.global-header__status-dot.is-checking {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
