.app-shell-body {
    background: #f7f8fa;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--white-color);
    border-bottom: 1px solid #e5e7eb;
}

.app-topbar__inner {
    min-height: 81px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.app-topbar__brand,
.app-topbar__actions {
    display: flex;
    align-items: center;
}

.app-topbar__brand {
    gap: 16px;
    flex: 0 0 auto;
}

.app-topbar__logo img,
.app-mobile-nav__logo {
    width: 167px;
    height: auto;
}

.app-topbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: -30px;
}

.app-nav-link,
.app-mobile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111312;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.app-nav-link {
    padding: 8px 16px;
    border-radius: 8px;
}

.app-nav-link i,
.app-mobile-link i {
    font-size: 14px;
}

.app-nav-link.is-active {
    font-weight: 600;
}

.app-nav-link.is-disabled,
.app-mobile-link.is-disabled {
    opacity: 0.9;
    cursor: default;
}

.app-topbar__actions {
    gap: 0;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 24px;
}

.app-update,
.app-icon-button,
.app-user-dropdown {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    background: var(--white-color);
}

.app-update,
.app-icon-button {
    border-left: 1px solid #e5e8ed;
}

.app-update {
    padding: 0 25px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 176px;
}

.app-update span,
.app-mobile-card__label,
.app-mobile-nav__label {
    color: var(--text-color);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.app-update strong,
.app-mobile-card strong {
    color: #111312;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.app-icon-button {
    width: 54px;
    justify-content: center;
    color: #111312;
    text-decoration: none;
    font-size: 20px;
    border-right: 1px solid #e5e8ed;
}

.app-user-dropdown {
    gap: 12px;
    padding: 0 12px 0 24px;
    border: 0;
    color: #111312;
}

.app-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8d826f 100%);
    color: var(--white-color);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.app-user-name {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.app-user-chevron {
    font-size: 14px;
}

.app-user-menu {
    min-width: 220px;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(17, 19, 18, 0.08);
}

.app-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 10px 12px;
}

.app-user-menu .dropdown-item:hover,
.app-user-menu .dropdown-item:active,
.app-user-menu .dropdown-item.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.app-topbar__menu {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e8ed;
    color: #111312;
    background: var(--white-color);
}

.app-main {
    padding: 32px;
}

.app-page-header {
    margin-bottom: 28px;
}

.app-mobile-nav {
    max-width: 340px;
}

.app-mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-mobile-link {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--white-color);
    border: 1px solid #e5e8ed;
}

.app-mobile-link.is-active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.app-mobile-card {
    padding: 16px;
    border-radius: 12px;
    background: var(--white-color);
    border: 1px solid #e5e8ed;
}

.app-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: var(--white-color);
    border: 1px solid #e5e8ed;
}

.app-mobile-user strong,
.app-mobile-user small {
    display: block;
}

.app-mobile-user strong {
    font-size: 16px;
    color: #111312;
}

.app-mobile-user small {
    font-size: 13px;
    color: #6b7280;
}

.app-mobile-logout {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .app-topbar__inner {
        padding: 0 20px;
    }

    .app-nav-link,
    .app-user-name {
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .app-main {
        padding: 24px 20px;
    }
}

@media (max-width: 767.98px) {
    .app-topbar__inner {
        min-height: 72px;
    }

    .app-topbar__logo img {
        width: 148px;
    }
}

/* footer */

.footer {
    margin-top: 48px;
    border-top: 1px solid rgba(229, 232, 237, 0.5);
    background: transparent;
}

.footer__inner {
    min-height: 92px;
    padding: 30px 35px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer__copy {
    margin: 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.site-header-container {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    min-height: 75px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header {
    min-height: 75px;
    display: flex;
    align-items: center;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-header > div {
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 24px;
    border-right: 1px solid #e5e7eb;
    align-self: stretch;
}

.header-logo-img {
    width: auto;
}

.header-brand-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.header-nav {
    min-width: 0;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 5rem);
}

.header-nav > .dropdown {
    display: inline-flex;
    align-items: center;
}

.header-nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 0;
    border-bottom: 2px solid transparent;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.header-nav-link:hover {
    color: #374151;
}

.header-nav-link.active {
    color: #18355d;
    font-weight: 700;
}

.header-nav-link.dropdown-toggle::after {
    display: none;
}

.header-icons-group {
    display: flex;
    align-items: center;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    padding: 0 12px;
    gap: 0;
}

.header-icon-slot {
    display: flex;
    align-items: center;
}

.header-icon-slot + .header-icon-slot {
    border-left: 1px solid #e5e7eb;
    padding-left: 12px;
    margin-left: 12px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    font-size: 18px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #fff;
}

.header-divider {
    width: 1px;
    height: 32px;
    background-color: #e5e7eb;
    flex-shrink: 0;
}

.header-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.header-user-role {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dropdown-menu {
    overflow: hidden;
}

.dropdown-menu > .dropdown-item:first-child,
.dropdown-menu > li:first-child .dropdown-item {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.dropdown-menu > .dropdown-item:last-child,
.dropdown-menu > li:last-child .dropdown-item,
.dropdown-menu > li:last-child form .dropdown-item {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.header-dropdown {
    min-width: 220px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 8px !important;
    --bs-dropdown-padding-y: 0;
    overflow: hidden;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #374151;
    font-weight: 400;
    border-radius: 0;
    transition: background-color 0.15s ease;
}

.header-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #111827;
}

/* Active row — light blue background + bold text */
.header-dropdown-item.active {
    background-color: #eff6ff;
    color: #1e3a5f;
    font-weight: 600;
}

.header-dropdown-item.active:hover {
    background-color: #dbeafe;
}

.header-dropdown .dropdown-divider {
    margin: 0;
}

.header-dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-image: url("/images/icons/icon-background.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #1e3a5f;
    font-size: 16px;
    flex-shrink: 0;
}

.time-log-widget-dropdown {
    width: 360px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 52px rgba(24, 53, 93, 0.28);
    overflow: visible;
}

.time-log-widget {
    padding: 24px;
    background: #fff;
}

.time-log-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.time-log-widget__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #18355d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.time-log-widget__title i {
    font-size: 18px;
}

.time-log-widget__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2937;
    font-size: 18px;
    line-height: 1;
}

.time-log-widget__close:hover {
    background: #f1f5f9;
}

.time-log-widget__field {
    margin-bottom: 16px;
}

.time-log-widget__field[hidden] {
    display: none !important;
}

.time-log-widget .form-label {
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.time-log-widget .form-control,
.time-log-widget .form-select {
    width: 100%;
    height: 42px;
    min-height: 42px;
    background-color: #eef8ff;
    border-color: rgba(189, 200, 207, 0.1);
    border-radius: 8px;
    color: #1f2937 !important;
    font-size: 15px !important;
}

.time-log-widget .invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
}

#time_log_widget_obs.time-log-widget__textarea.form-control {
    height: 82px !important;
    min-height: 82px !important;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
}

.time-log-widget__time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.time-log-widget__time-group {
    margin-bottom: 14px;
}

.time-log-widget__time-group .time-log-widget__field {
    margin-bottom: 0;
}

.time-log-widget__time-errors {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin-top: 6px;
}

.time-log-widget__time-errors .invalid-feedback {
    margin-top: 0;
    line-height: 1.35;
}

.time-log-widget__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #18355d;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.15s ease;
}

.time-log-widget__submit:hover {
    background: #244875;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

.mobile-nav-section {
    margin-bottom: 24px;
}

.mobile-nav-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f5f5f5;
}

.mobile-nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-nav-section--account {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 20px;
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.mobile-nav-form {
    margin: 0;
}

.mobile-nav-link--button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.mobile-menu {
    width: 100vw !important;
    max-width: none;
    border-right: 0;
}

.mobile-menu__header {
    min-height: 72px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu__body {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}
