:root {
    --ts-header-height: 64px;
}
body {
    padding-top: var(--ts-header-height);
}
.ts-header {
    /* width: 100%; */
    background: #5f6369;
    box-shadow: 0 2px 6px 0 rgba(120,90,180,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ts-header-height);
    height: var(--ts-header-height);
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 13000;
}
.ts-header-placeholder {
    height: var(--ts-header-height);
}
.subtitle {
    display: inline-block;
    vertical-align: sub;
    font-size: 70%;
    margin-left: 4px;
    color: #666;
}
.ts-burger-menu {
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 12002;
}
.ts-home-button {
    position: absolute;
    left: 4.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 12002;
    transition: color 0.18s;
}
.ts-home-button:hover {
    color: #fff;
    text-decoration: none;
}
.burger-menu span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    transform-origin: center;
}
.burger-menu:hover span { background: #a793f6; }
.burger-menu span:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-7px);
}
.burger-menu span:nth-child(2) {
    transform: translate(-50%, -50%);
}
.burger-menu span:nth-child(3) {
    transform: translate(-50%, -50%) translateY(7px);
}
.burger-menu span.open:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.burger-menu span.open:nth-child(2) {
    opacity: 0;
}
.burger-menu span.open:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.ts-header-title {
    font-size: 1.38rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #fff;
}
.view-as-indicator {
    margin-left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.dark-toggle {
    position: absolute;
    right: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 12002;
}
.dark-toggle span { pointer-events: none; }
.notification-toggle {
    position: absolute;
    right: 4.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    z-index: 12002;
    color: #fff;
}
.notification-toggle span:first-child {
    pointer-events: none;
}
.notification-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(40,40,70,0.18);
    z-index: 12000;
    backdrop-filter: blur(2px);
    transition: background 0.3s;
    display: flex;
}
.menu-panel.glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px) saturate(150%);
    border-radius: 18px 18px 18px 0;
    width: 290px;
    height: 100vh;
    box-shadow: 8px 0 24px 0 rgba(40,20,80,0.16);
    position: relative;
    padding: 2.4rem 1.7rem 2rem 1.7rem;
    display: flex; flex-direction: column;
    animation: slide-in 0.22s;
    margin-left: 0;
}
@keyframes slide-in {
    0% { transform: translateX(-70px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0 0;
}
.menu-link {
    display: flex; align-items: center;
    font-size: 1.04rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    margin-bottom: 0.1em;
    transition: background 0.18s, color 0.18s;
    font-weight: 500;
}
.menu-link-button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}
.menu-link:hover:not(.disabled) {
    background: #ede5ff;
    color: #5b3cc4;
    text-decoration: none;
}
.menu-ico {
    display: inline-block;
    width: 1.6em;
    font-size: 1.3em;
    margin-right: 0.7em;
    text-align: center;
    opacity: 0.7;
}
.menu-link.disabled {
    pointer-events: none;
    color: #bbb;
    background: #f6f6f6;
}
.view-as-section {
    margin: 0.6rem 0 0.4rem 0;
    padding: 0.4rem 0.2rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}
.view-as-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.4rem;
}
.view-as-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.view-as-note {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #5b3cc4;
}
.divider {
    border-top: 1px solid #eee;
    margin: 1.1em 0;
}
.logout-link {
    color: #be2340 !important;
    font-weight: bold;
}
.logout-link:hover {
    background: #ffe5eb !important;
    color: #a11a3a !important;
}
.header-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 12100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.header-modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.header-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e6e6e6;
}
.header-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.header-modal-close {
    border: none;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    color: #666;
}
.header-modal-body {
    padding: 1rem 1.2rem 1.2rem;
    overflow: auto;
}
.header-modal-empty {
    color: #666;
    padding: 1.2rem 0;
    text-align: center;
}
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.notification-item {
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.notification-item.clickable {
    cursor: pointer;
}
.notification-item-main {
    min-width: 0;
    flex: 1 1 auto;
}
.notification-item.unread {
    border-color: #4b78ff;
    box-shadow: 0 0 0 1px rgba(75, 120, 255, 0.15);
}
.notification-item-title {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.notification-item-meta {
    font-size: 0.95rem;
    color: #555;
}
.notification-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.notification-status.status-pending {
    background: #edf3ff;
    color: #2554c7;
}
.notification-status.status-approved {
    background: #e7f8ee;
    color: #1c7c45;
}
.notification-status.status-rejected {
    background: #fff1f0;
    color: #c13d3d;
}
.notification-status.status-in_progress {
    background: #fff7e6;
    color: #a06100;
}
.notification-status.status-resolved {
    background: #e7f8ee;
    color: #1c7c45;
}
.notification-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}
.notification-detail-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.notification-detail-message {
    margin-top: 0.35rem;
}
.notification-detail-message-body {
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f7f9fc;
    white-space: pre-wrap;
    word-break: break-word;
}
.notification-detail-form {
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f7f9fc;
}
.forget-request-summary {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f7f9fc;
}
.forget-request-existing {
    margin-bottom: 1rem;
}
.forget-request-existing-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.forget-request-existing-item {
    font-size: 0.94rem;
    color: #555;
}
.header-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
@media (max-width: 600px) {
    .ts-header {
        min-height: 54px;
        height: 54px;
        padding: 0 0.2rem;
        font-size: 0.95rem;
    }
    .ts-header-title {
        font-size: 1rem;
    }
    .ts-burger-menu {
        left: 0.5rem;
    }
    .notification-toggle {
        right: 3.7rem;
        font-size: 1.1rem;
    }
    .header-modal-card {
        max-height: calc(100vh - 1rem);
    }
    .notification-item {
        flex-direction: column;
    }
    .notification-actions {
        justify-content: flex-end;
    }
}
