/* Shared module nav — Transfer style used system-wide */
.ppe-mod-nav-wrap { margin: 12px 20px 10px; }
.ppe-mod-nav {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.ppe-mod-nav .inner {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
}
.ppe-mod-nav.ppe-fit .inner {
    flex-wrap: nowrap;
    overflow: visible;
}
.ppe-mod-nav .tabs { display: flex; align-items: center; gap: 4px; }
.ppe-mod-nav .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    color: #0f172a !important;
    min-width: 150px;
}
.ppe-mod-nav .brand .mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #166534; color: #fff; font-size: 16px; flex-shrink: 0;
}
.ppe-mod-nav .brand .ttl { display: block; font-weight: 800; font-size: 15px; letter-spacing: -.02em; line-height: 1.15; }
.ppe-mod-nav .brand .sub { display: block; font-size: 11px; font-weight: 600; color: #94a3b8; margin-top: 2px; }
.ppe-mod-nav .groups { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; align-items: stretch; }
.ppe-mod-nav.ppe-fit .groups { flex-wrap: nowrap; min-width: 0; overflow: visible; }
.ppe-mod-nav.ppe-fit .group { flex: 0 0 auto; }
.ppe-mod-nav .group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}
.ppe-mod-nav .group-name {
    font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
    color: #94a3b8; padding: 0 8px; white-space: nowrap;
}
.ppe-mod-nav.ppe-spread .group-name { display: none; }
.ppe-mod-nav a.tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px;
    text-decoration: none !important; color: #334155 !important;
    font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.ppe-mod-nav a.tab i { width: 1em; text-align: center; color: #64748b; }
.ppe-mod-nav a.tab:hover { background: #ecfdf3; color: #14532d !important; }
.ppe-mod-nav a.tab:hover i { color: #166534; }
.ppe-mod-nav a.tab.active { background: #166534; color: #fff !important; }
.ppe-mod-nav a.tab.active i { color: #fff; }
.ppe-mod-nav .badge {
    min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px;
    background: #fee2e2; color: #991b1b; font-size: 10px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.ppe-mod-nav a.tab.active .badge { background: rgba(255,255,255,.22); color: #fff; }
.ppe-mod-nav .group.is-nested { position: relative; overflow: visible; }
.ppe-mod-nav .nest-toggle { display: none; }
.ppe-mod-nav .group.is-nested > .tabs { display: none; }
.ppe-mod-nav .group.is-nested > .nest-toggle { display: inline-flex; }
.ppe-mod-nav button.nest-toggle {
    display: none; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px; border: 0; background: transparent;
    color: #334155; font-size: 13px; font-weight: 700; line-height: 1.2;
    cursor: pointer; white-space: nowrap;
}
.ppe-mod-nav button.nest-toggle .caret { font-size: 9px; opacity: .55; }
.ppe-mod-nav button.nest-toggle:hover,
.ppe-mod-nav .group.is-nested.open > button.nest-toggle { background: #ecfdf3; color: #14532d; }
.ppe-mod-nav button.nest-toggle.active { background: #166534; color: #fff; }
.ppe-mod-nav button.nest-toggle.active .caret { color: #fff; opacity: .85; }
.ppe-mod-nav .dropdown {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 8px; z-index: 80;
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
}
.ppe-mod-nav .group.is-nested.open > .dropdown { display: block; }
.ppe-mod-nav .dropdown a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
    text-decoration: none !important; color: #0f172a !important; font-size: 13px; font-weight: 700;
}
.ppe-mod-nav .dropdown a:hover { background: #f8fafc; }
.ppe-mod-nav .dropdown a.active { background: #ecfdf3; color: #14532d !important; }
.ppe-mod-nav .dropdown .di {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: #f1f5f9; color: #166534;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.ppe-mod-nav .dropdown a.active .di { background: #bbf7d0; }
.ppe-mod-nav .dropdown .dt { flex: 1; line-height: 1.25; }
.ppe-mod-nav { position: relative; }
@media (max-width: 768px) {
    .ppe-mod-nav-wrap { margin: 8px 10px 8px; }
    .ppe-mod-nav { border-radius: 14px; }
    .ppe-mod-nav .inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        padding: 8px;
    }
    .ppe-mod-nav .brand {
        min-width: 0;
        padding: 4px 6px 4px 4px;
        gap: 8px;
        flex-shrink: 0;
    }
    .ppe-mod-nav .brand .mark { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
    .ppe-mod-nav .brand .ttl { font-size: 13px; }
    .ppe-mod-nav .brand .sub,
    .ppe-mod-nav .group-name { display: none; }
    .ppe-mod-nav .groups {
        flex-wrap: nowrap;
        min-width: 0;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ppe-mod-nav .groups::-webkit-scrollbar { display: none; }
    .ppe-mod-nav .group {
        flex: 0 0 auto;
        width: auto !important;
        flex-wrap: nowrap;
        padding: 2px;
        border-radius: 12px;
    }
    .ppe-mod-nav a.tab,
    .ppe-mod-nav button.nest-toggle {
        flex: 0 0 auto;
        justify-content: center;
        padding: 8px 10px;
        min-height: 36px;
        font-size: 12px;
    }
    .ppe-mod-nav .group.is-nested { width: auto; position: static; }
    .ppe-mod-nav .dropdown {
        left: 8px;
        right: 8px;
        min-width: 0;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 120;
    }
    .ppe-mod-nav.is-scroll .groups { padding-bottom: 2px; }
}

@media (max-width: 480px) {
    .ppe-mod-nav .brand-copy { display: none; }
    .ppe-mod-nav a.tab i { display: none; }
    .ppe-mod-nav a.tab,
    .ppe-mod-nav button.nest-toggle { padding: 8px 9px; }
}

@media (max-width: 768px) {
    .ppe-app-header > div { padding: 8px 10px !important; }
    .ppe-app-header-row {
        align-items: center !important;
        gap: 8px !important;
    }
    .ppe-app-header-actions {
        flex-wrap: nowrap !important;
        gap: 6px !important;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ppe-app-header-actions::-webkit-scrollbar { display: none; }
    .ppe-app-header-actions > a span,
    .ppe-app-header-actions > a { white-space: nowrap; }
}

/* PhonePlace — Accounting statements */
.ppe-acc-wrap {
    padding: 4px 20px 28px;
}

/* Align module + report pages with the same side gutter */
section.no-print > nav.navbar-default.tw-rounded-2xl {
    margin: 12px 20px 8px !important;
}
section.no-print:has(nav.navbar-default) ~ .content-header,
section.no-print:has(nav.navbar-default) ~ .content {
    padding-left: 20px;
    padding-right: 20px;
}
.content-header:has(.ppe-acc-nav),
.content-header:has(.ppe-acc-toolbar) {
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 1200px) {
    .ppe-acc-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
    section.no-print > nav.navbar-default.tw-rounded-2xl {
        margin-left: 24px !important;
        margin-right: 24px !important;
    }
    section.no-print:has(nav.navbar-default) ~ .content-header,
    section.no-print:has(nav.navbar-default) ~ .content,
    .content-header:has(.ppe-acc-nav),
    .content-header:has(.ppe-acc-toolbar) {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.ppe-acc-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    scrollbar-width: none;
}
.ppe-acc-nav::-webkit-scrollbar { display: none; }

.ppe-acc-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease;
}
.ppe-acc-nav a:hover { background: #f1f5f9; color: #0f172a !important; }
.ppe-acc-nav a.active {
    background: #166534;
    color: #fff !important;
}

.ppe-acc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ppe-acc-toolbar h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.ppe-acc-toolbar .ppe-acc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ppe-stmt {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 28px 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ppe-stmt-head {
    text-align: center;
    border-bottom: 2px solid #166534;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.ppe-stmt-brand {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #166534;
    font-weight: 750;
}
.ppe-stmt-head h2 {
    margin: 6px 0 4px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.ppe-stmt-period {
    margin: 0;
    font-size: 13.5px;
    color: #334155;
    font-weight: 600;
}
.ppe-stmt-meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
}

.ppe-stmt-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}
.ppe-stmt-kpi {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
}
.ppe-stmt-kpi span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
}
.ppe-stmt-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 750;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.ppe-kpi-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-style: normal;
    color: #64748b;
    font-weight: 600;
}
.ppe-dash-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 16px 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    height: 100%;
}
.ppe-dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.ppe-dash-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.ppe-dash-card-head span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}
.ppe-dash-chart { min-height: 180px; }

/* Accounting dashboard — LejaBook-style KPI cards */
.acc-dash .acc-hero {
    border-radius: 18px;
    padding: 22px 24px;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #166534 0%, #14532d 58%, #15803d 100%);
    box-shadow: 0 12px 32px rgba(22, 101, 52, 0.22);
    color: #fff;
}
.acc-dash .acc-hero h1 {
    margin: 0 0 4px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.acc-dash .acc-hero p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}
.acc-dash .acc-hero .filter-btn {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    color: #fff;
    border-radius: 10px;
}
.acc-dash .acc-hero .filter-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}
.acc-dash .acc-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.acc-dash .acc-quick a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 650;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.acc-dash .acc-quick a:hover {
    background: #ecfdf3;
    color: #14532d !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.acc-dash .acc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
@media (min-width: 900px) {
    .acc-dash .acc-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.acc-dash .acc-kpi {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 18px 14px;
    min-height: 128px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.acc-dash .acc-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22, 101, 52, 0.10);
}
.acc-dash .acc-kpi-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.acc-dash .acc-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #166534;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.acc-dash .acc-kpi.income .acc-kpi-icon { background: #059669; }
.acc-dash .acc-kpi.expense .acc-kpi-icon { background: #dc2626; }
.acc-dash .acc-kpi.profit .acc-kpi-icon { background: #166534; }
.acc-dash .acc-kpi.asset .acc-kpi-icon { background: #1d4ed8; }
.acc-dash .acc-kpi.liability .acc-kpi-icon { background: #ea580c; }
.acc-dash .acc-kpi.equity .acc-kpi-icon { background: #166534; }
.acc-dash .acc-kpi .lbl {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}
.acc-dash .acc-kpi .val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.acc-dash .acc-kpi .sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 10px;
    font-weight: 500;
}
.acc-dash .acc-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 992px) {
    .acc-dash .acc-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.acc-dash .acc-age-total {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 10px;
    font-variant-numeric: tabular-nums;
}
.acc-dash .acc-age-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}
.acc-dash .acc-age-pill {
    padding: 8px 4px;
    text-align: center;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.acc-dash .acc-age-pill .l {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
}
.acc-dash .acc-age-pill .v {
    font-size: 11px;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #0f172a;
}
.acc-dash .acc-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.acc-dash .acc-stat {
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.acc-dash .acc-stat .l {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}
.acc-dash .acc-stat .v {
    font-size: 1.15rem;
    margin-top: 4px;
    font-weight: 800;
    color: #0f172a;
}
.ppe-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ppe-mini-stats span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
}
.ppe-mini-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 750;
    color: #0f172a;
}
.ppe-mini-stats strong.is-good { color: #166534; }
.ppe-home-quad,
.ppe-home-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 767px) {
    .ppe-home-quad,
    .ppe-home-pair { grid-template-columns: 1fr; }
}
.ppe-stmt-kpi.is-good strong { color: #166534; }
.ppe-stmt-kpi.is-bad strong { color: #b91c1c; }

.hrm-ca-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.hrm-ca-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hrm-ca-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.hrm-ca-chart { height: 260px; position: relative; }
.hrm-ai-card .ppe-dash-card-head { margin-bottom: 8px; }
.hrm-ai-out {
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
    min-height: 48px;
}
@media (max-width: 1199px) {
    .hrm-ca-charts { grid-template-columns: 1fr; }
}
.hrm-ca-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.hrm-ca-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.hrm-ca-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.10);
}
.hrm-ca-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    background: #166534;
}
.hrm-ca-kpi.income .hrm-ca-kpi-icon { background: #059669; }
.hrm-ca-kpi.profit .hrm-ca-kpi-icon { background: #166534; }
.hrm-ca-kpi.asset .hrm-ca-kpi-icon { background: #1d4ed8; }
.hrm-ca-kpi.equity .hrm-ca-kpi-icon { background: #0f766e; }
.hrm-ca-kpi-body { min-width: 0; flex: 1; }
.hrm-ca-kpi .lbl {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.hrm-ca-kpi .val {
    margin-top: 2px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hrm-ca-kpi .sub {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}
@media (max-width: 991px) {
    .hrm-ca-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .hrm-ca-kpis { grid-template-columns: 1fr; }
}
.hrm-ach {
    display: inline-block;
    min-width: 54px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 750;
    font-size: 12px;
    text-align: center;
}
.hrm-ach.is-good { background: #dcfce7; color: #166534; }
.hrm-ach.is-warn { background: #ffedd5; color: #9a3412; }
.hrm-ach.is-bad { background: #fee2e2; color: #991b1b; }
.hrm-role {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}
.hrm-role-own { background: #dcfce7; color: #166534; }
.hrm-role-got { background: #ccfbf1; color: #0f766e; }
.hrm-role-help { background: #dbeafe; color: #1d4ed8; }
.att-sheet { font-size: 11px; }
.att-sheet th, .att-sheet td { text-align: center; padding: 4px 3px !important; }
.att-sheet .att-name { text-align: left; min-width: 140px; white-space: nowrap; }
.att-sheet .att-day { min-width: 26px; }
.att-sheet .dow { font-size: 9px; color: #94a3b8; font-weight: 600; }
.att-cell { font-weight: 750; }
.att-present { background: #dcfce7; color: #166534; }
.att-leave { background: #dbeafe; color: #1d4ed8; }
.att-absent { background: #fee2e2; color: #991b1b; }
.att-off, .att-sheet .is-off { background: #f8fafc; color: #cbd5e1; }
.hrm-quick {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.hrm-quick-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
    color: #0f172a !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.hrm-quick-item:hover,
.hrm-quick-item:focus {
    transform: translateY(-2px);
    border-color: #bbf7d0;
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.10);
    text-decoration: none !important;
    color: #0f172a !important;
}
.hrm-quick-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
    background: #166534;
}
.hrm-quick-item.is-people .hrm-quick-icon { background: #166534; }
.hrm-quick-item.is-attendance .hrm-quick-icon { background: #059669; }
.hrm-quick-item.is-timesheet .hrm-quick-icon { background: #1d4ed8; }
.hrm-quick-item.is-leave .hrm-quick-icon { background: #0284c7; }
.hrm-quick-item.is-payroll .hrm-quick-icon { background: #d97706; }
.hrm-quick-item.is-pay .hrm-quick-icon { background: #c2410c; }
.hrm-quick-item.is-shifts .hrm-quick-icon { background: #0f766e; }
.hrm-quick-item.is-agents .hrm-quick-icon { background: #7c3aed; }
.hrm-quick-item.is-appr .hrm-quick-icon { background: #0f766e; }
.hrm-quick-item.is-auto .hrm-quick-icon { background: #166534; }
.hrm-quick-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.hrm-quick-title {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hrm-quick-hint {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 1199px) {
    .hrm-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .hrm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hrm-auto-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.hrm-auto-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hrm-auto-pill .k { font-size: 12px; font-weight: 700; color: #64748b; }
.hrm-auto-pill .v { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.hrm-auto-pill.is-action { border-color: #fecaca; background: #fff7f7; }
.hrm-auto-pill.is-action .v { color: #b91c1c; }
.hrm-auto-pill.is-watch { border-color: #fed7aa; background: #fffbeb; }
.hrm-auto-pill.is-watch .v { color: #c2410c; }
.hrm-auto-pill.is-ok .v { color: #166534; }
.hrm-auto-pill.is-link { background: #166534; border-color: #14532d; }
.hrm-auto-pill.is-link .k, .hrm-auto-pill.is-link .v { color: #fff; }
.hrm-auto-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.hrm-auto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.hrm-auto-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    min-height: 168px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.hrm-auto-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 101, 52, 0.10); }
.hrm-auto-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hrm-auto-icon {
    width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: #166534; color: #fff; font-size: 14px;
}
.hrm-auto-card.is-watch .hrm-auto-icon { background: #d97706; }
.hrm-auto-card.is-action .hrm-auto-icon { background: #dc2626; }
.hrm-auto-status {
    font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px; background: #dcfce7; color: #166534;
}
.hrm-auto-card.is-watch .hrm-auto-status { background: #ffedd5; color: #9a3412; }
.hrm-auto-card.is-action .hrm-auto-status { background: #fee2e2; color: #991b1b; }
.hrm-auto-title { font-size: 13px; font-weight: 700; color: #64748b; }
.hrm-auto-value { font-size: 1.25rem; font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.02em; }
.hrm-auto-detail { font-size: 12px; color: #94a3b8; line-height: 1.4; }
.hrm-auto-generate { margin-bottom: 16px; }
.hrm-auto-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.hrm-auto-form .form-group { margin: 0; min-width: 180px; }
.hrm-appr-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.hrm-appr-bar { margin-bottom: 12px; }
.hrm-appr-bar-meta { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.hrm-appr-track { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.hrm-appr-track span { display: block; height: 100%; background: #166534; border-radius: 999px; }
.hrm-filter-card { margin-bottom: 16px; }
.hrm-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
}
.hrm-filter-field { min-width: 140px; flex: 0 1 160px; }
.hrm-filter-field.grow { flex: 1 1 200px; min-width: 180px; }
.hrm-filter-field label {
    display: block;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}
.hrm-filter-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 1px; }
.st-kpi-card { cursor: pointer; text-decoration: none !important; color: inherit !important; }
button.st-kpi-card {
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}
.st-kpi-card.is-on {
    border-color: #166534;
    box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.14);
}
a.st-kpi-card:hover { color: inherit !important; }
.st-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}
.st-filter-bar.is-4 { grid-template-columns: repeat(3, minmax(140px, 1fr)) auto; }
.st-filter-bar .hrm-filter-field { min-width: 0; flex: none; }
.st-filter-bar .form-control { height: 38px; border-radius: 10px; }
.st-filter-actions { display: flex; gap: 8px; padding-bottom: 1px; white-space: nowrap; }
.st-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
}
.st-form-grid .span-2 { grid-column: span 2; }
.st-form-grid .form-group { margin-bottom: 0; }
.st-form-grid label {
    display: block;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}
.st-form-grid .form-control,
.st-form-grid .select2-container .select2-selection--single {
    min-height: 38px;
    border-radius: 10px;
}
@media (max-width: 1199px) {
    .st-filter-bar, .st-filter-bar.is-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .st-filter-bar, .st-filter-bar.is-4, .st-form-grid { grid-template-columns: 1fr 1fr; }
    .st-form-grid .span-2 { grid-column: span 2; }
}
.hrm-target-h {
    margin: 4px 0 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #166534;
}
@media (max-width: 991px) {
    .hrm-auto-strip, .hrm-auto-kpis, .hrm-auto-grid, .hrm-appr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .hrm-auto-strip, .hrm-auto-kpis, .hrm-auto-grid, .hrm-appr-grid { grid-template-columns: 1fr; }
}
@media print {
    .hrm-ca-page .ppe-acc-toolbar,
    .hrm-ca-page .no-print { display: none !important; }
    .att-sheet-wrap { box-shadow: none; border: 0; }
}

.ppe-stmt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ppe-stmt-table th,
.ppe-stmt-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
.ppe-stmt-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 750;
    border-bottom: 1px solid #dbe3ee;
}
.ppe-stmt-table .num,
.ppe-stmt-table td.num,
.ppe-stmt-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ppe-stmt-table tr.sec td {
    background: #ecfdf3;
    color: #14532d;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 11.5px;
    border-bottom-color: #bbf7d0;
}
.ppe-stmt-table tr.sec-alt td {
    background: #eff6ff;
    color: #1e3a8a;
}
.ppe-stmt-table tr.sub td {
    background: #f8fafc;
    font-weight: 700;
}
.ppe-stmt-table tr.total td {
    background: #166534;
    color: #fff;
    font-weight: 750;
    border-bottom: 0;
}
.ppe-stmt-table tr.warn td { background: #fff7ed; }
.ppe-stmt-table .indent { padding-left: 22px; }
.ppe-stmt-table .muted { color: #64748b; font-style: italic; }
.ppe-stmt-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: #64748b;
    font-size: 11.5px;
}

.ppe-age-90 { color: #b91c1c; font-weight: 700; }
.ppe-age-60 { color: #c2410c; font-weight: 650; }
.ppe-badge {
    display: inline-block;
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #334155;
}
.ppe-badge.hot { background: #fee2e2; color: #991b1b; }
.ppe-badge.warn { background: #ffedd5; color: #9a3412; }

@media (max-width: 900px) {
    .ppe-stmt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
    @page { size: A4 portrait; margin: 12mm 12mm 14mm; }
    body { background: #fff !important; }
    .main-header, .side-bar, .ppe-acc-nav, .no-print, .content-header .btn,
    .box-tools, .overlay, .tw-flex.tw-h-full > aside,
    .ppe-acc-toolbar .ppe-acc-actions {
        display: none !important;
    }
    .ppe-acc-wrap, .ppe-stmt, .box, .box-body, .content, .content-wrapper, main {
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    .ppe-stmt {
        border-radius: 0;
        padding: 0;
    }
    .ppe-stmt-table th,
    .ppe-stmt-table td {
        padding: 5px 6px;
        font-size: 11.5px;
    }
    .ppe-stmt-kpi { break-inside: avoid; }
    a[href]:after { content: none !important; }
}
