* {
    font-family: 'Inter', sans-serif;
}

.bg-darkblue {
    background-color: #071838;
}

.txt-darkblue {
    color: #071838;
}

.bg-darkblue {
    background-color: #071838;
}

.btn-darkblue {
    background-color: #071838;
    color: #FFFFFF;
}

.btn-darkblue:hover {
    background-color: #071838d8;
    color: #FFFFFF;
}

.bg-lightblue {
    background-color: #1E2B46;
}

.txt-lightblue {
    color: #0060aa;
}

.border-lightblue {
    border: 1px solid #334B68;
}

.bg-custom {
    background-color: #F3F6FA;
}

.py-custom {
    padding-top: 10px;
    padding-bottom: 10px;
}

.p-custom {
    padding: 10px;
}

.fs-small {
    font-size: 10px;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.app-logo img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 340px;
    object-fit: cover;
    scale: 1.2;
}

.app-logo--banner img {
    height: 80px;
    max-width: 220px;
}

.app-logo--header {
    justify-content: center;
}

.app-logo--header img {
    height: 48px;
    max-width: 160px;
}

#sidebar-link,
#sidebar-active {
    font-size: 15px;
    padding: 0 !important;
    color: #FFFFFF;
}

#sidebar-link a,
#sidebar-active a {
    display: block;
    width: 100%;
    padding: 0.4rem 0.5rem;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
}

#sidebar-link {
    background-color: #071838;
    opacity: 0.8;
    border: 1px solid #071838;
}

#sidebar-link:hover {
    background-color: #1E2B46;
    border: 1px solid #334B68;
}

#sidebar-active {
    background-color: #1E2B46;
    opacity: 0.9;
    border: 1px solid #334B68;
}

header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dropdown-item:hover {
    background-color: #1E2B46 !important;
    color: #FFFFFF;
}

.dropdown-item:active {
    background-color: #1E2B46 !important;
    color: #FFFFFF;
}

.card {
    border: 1px solid #E0E0E0;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
    border: 1px solid #c9c9c9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fs-14 {
    font-size: 14px;
}

/* Dashboard */
.checkin-panel {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 1.1rem;
    padding: 1.35rem 1.4rem;
}

.checkin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.checkin-panel-head h5 {
    color: #071838;
    letter-spacing: -0.01em;
}

.checkin-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7C93;
    margin-bottom: 0.3rem;
}

.dashboard-link {
    color: #0060aa;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-link:hover {
    color: #071838;
}

.txt-warn { color: #b45309 !important; }

.checkin-status {
    display: inline-flex;
    align-items: center;
    border-radius: 0.55rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border: 0;
    background: transparent;
    white-space: nowrap;
    text-transform: capitalize;
}

.checkin-status.is-idle {
    color: #6B7C93;
}

.checkin-status.is-work {
    color: #071838;
}

.checkin-status.is-pause {
    color: #0060aa;
}

.checkin-stat {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 0.9rem;
    padding: 0.9rem 0.75rem;
    text-align: left;
    height: 100%;
}

.checkin-stat small {
    display: block;
    color: #6B7C93;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.checkin-stat strong {
    display: block;
    color: #071838;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.checkin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkin-map {
    width: 100%;
    min-height: 280px;
    border-radius: 0.9rem;
    overflow: hidden;
    background: #F4F7FA;
    border: 1px solid #E8EDF3;
}

.checkin-map-iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

.checkin-map-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6B7C93;
    text-align: center;
    padding: 1.5rem;
}

.dashboard-task-list {
    display: flex;
    flex-direction: column;
}

.dashboard-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #EEF2F6;
    color: #071838;
}

.dashboard-task-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-task-item:hover strong {
    color: #0060aa;
}

.dashboard-task-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.dashboard-deadline-label.is-overdue {
    color: #B91C1C;
}

.dashboard-deadline-label.is-soon {
    color: #B45309;
}

.dashboard-deadline-label.is-ok {
    color: #1D4ED8;
}

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dashboard-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid #E8EDF3;
    border-radius: 0.75rem;
    color: #071838;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    background: #fff;
}

.dashboard-quick-btn:hover {
    border-color: #0060aa;
    color: #0060aa;
}

.dashboard-quick-btn i {
    color: #0060aa;
    opacity: 0.9;
}

.dashboard-kpi {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 1.15rem;
    padding: 1.15rem 1.2rem 1.2rem;
    height: 100%;
}

.dashboard-kpi small {
    display: block;
    color: #6B7C93;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.dashboard-kpi strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.dashboard-kpi > span {
    display: block;
    margin-top: 0.4rem;
    color: #6B7C93;
    font-size: 0.8rem;
}

.dashboard-kpi--navy strong { color: #071838; }
.dashboard-kpi--blue strong { color: #0060aa; }
.dashboard-kpi--warn strong { color: #b45309; }
.dashboard-kpi--teal strong { color: #0f766e; }

/* Calculate salary */
.salary-calc-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.salary-calc-filters {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 1.15rem;
    padding: 1.25rem 1.35rem;
}

.salary-calc-filters-head {
    margin-bottom: 1.1rem;
}

.salary-calc-list {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 1.15rem;
    overflow: hidden;
}

.salary-calc-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid #EEF2F6;
}

.salary-calc-count {
    color: #6B7C93;
    font-size: 0.82rem;
    font-weight: 600;
}

.salary-calc-item {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr);
    gap: 1.25rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #EEF2F6;
    transition: background-color 0.15s ease;
}

.salary-calc-item:last-child {
    border-bottom: 0;
}

.salary-calc-item:hover {
    background: #F8FAFC;
}

.salary-calc-item-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.salary-calc-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    background: #071838;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.salary-calc-name {
    display: block;
    color: #071838;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.salary-calc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: #6B7C93;
    font-size: 0.8rem;
}

.salary-calc-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C5D0DC;
}

.salary-calc-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.salary-calc-metric {
    background: #F8FAFC;
    border: 1px solid #E8EDF3;
    border-radius: 0.85rem;
    padding: 0.7rem 0.8rem;
    min-width: 0;
    text-align: center;
}

.salary-calc-metric small {
    display: block;
    color: #6B7C93;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.salary-calc-metric strong {
    display: block;
    color: #071838;
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.salary-calc-metric > span {
    display: block;
    margin-top: 0.25rem;
    color: #6B7C93;
    font-size: 0.72rem;
    line-height: 1.3;
}

.salary-calc-metric--extra {
    text-align: center;
}

.salary-calc-extra-total {
    display: block;
    text-align: center;
    margin: 0.15rem 0 0.45rem;
}

.salary-calc-extra-eq {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #6B7C93;
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.salary-calc-extra-x {
    color: #071838;
    font-weight: 700;
}

.salary-calc-metric--total {
    background: #071838;
    border-color: #071838;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.salary-calc-metric--total small,
.salary-calc-metric--total strong {
    color: #fff;
}

.salary-calc-empty {
    background: #fff;
    border: 1px dashed #D7E0EA;
    border-radius: 1.15rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

.salary-calc-empty-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: #F3F6FA;
    color: #6B7C93;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.salary-calc-pagination {
    padding: 1rem 1.35rem 1.25rem;
    border-top: 1px solid #EEF2F6;
}

@media (max-width: 991.98px) {
    .salary-calc-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .salary-calc-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .salary-calc-metric--total {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .salary-calc-metrics {
        grid-template-columns: 1fr;
    }
}

.notifications-bell-btn {
    position: relative;
}

.notifications-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

.notifications-panel {
    width: min(380px, calc(100vw - 1.5rem));
    padding: 0;
    margin-top: 0.5rem !important;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.notifications-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.85rem;
    background: linear-gradient(180deg, #f3f6fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e8eef5;
}

.notifications-panel__title {
    display: block;
    font-weight: 650;
    color: #071838;
    font-size: 0.98rem;
}

.notifications-panel__count {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #0060aa;
    font-weight: 500;
}

.notifications-panel__mark-all {
    border: 0;
    background: transparent;
    color: #0060aa;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    white-space: nowrap;
}

.notifications-panel__mark-all:hover {
    text-decoration: underline;
}

.notifications-panel__list {
    max-height: min(52vh, 360px);
    overflow-y: auto;
    padding: 0.4rem;
}

.notifications-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.15s ease;
    position: relative;
}

.notifications-item:hover {
    background: #f3f6fa;
}

.notifications-item.is-unread {
    background: rgba(0, 96, 170, 0.06);
}

.notifications-item.is-unread:hover {
    background: rgba(0, 96, 170, 0.1);
}

.notifications-item__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3f9;
    color: #0060aa;
    font-size: 0.85rem;
}

.notifications-item.is-unread .notifications-item__icon {
    background: rgba(0, 96, 170, 0.12);
}

.notifications-item__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.notifications-item__title {
    font-size: 0.88rem;
    font-weight: 650;
    color: #071838;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notifications-item__message {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notifications-item__time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.notifications-item__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 0.4rem;
    border-radius: 50%;
    background: #0060aa;
}

.notifications-panel__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
}

.notifications-panel__empty i {
    font-size: 1.4rem;
    opacity: 0.7;
}

.notifications-panel__footer {
    padding: 0.7rem 1rem 0.9rem;
    border-top: 1px solid #e8eef5;
    background: #fafbfd;
}

.notifications-panel__all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 0.7rem;
    background: #071838;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.notifications-panel__all-link:hover {
    background: #0c254f;
    color: #fff !important;
}

.report-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.report-images__item {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(7, 24, 56, 0.12);
    box-shadow: 0 1px 4px rgba(7, 24, 56, 0.08);
    flex-shrink: 0;
}

.report-images__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease;
}

.report-images__item:hover img {
    transform: scale(1.04);
}

.report-images__item {
    cursor: zoom-in;
}

.report-lightbox-content {
    background: #0b1220;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.report-lightbox-img {
    max-height: min(80vh, 860px);
    width: auto;
    object-fit: cover;
}
