@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ============================================================
   GLOBAL STYLES - Bootstrap Enhanced
   ============================================================ */
* {
    font-family: 'Outfit', sans-serif !important;
}

body {
    margin: 0;
    padding: 0;
    background: #f0f7f4 !important;
    color: #1a3a2a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   LOGIN PAGE BACKGROUND OVERRIDE
   ============================================================ */
body.auth-page {
    /* Green to blue gradient with very subtle yellow corner hints */
    background:
        radial-gradient(ellipse at top left,    rgba(255, 215, 0, 0.15) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(255, 215, 0, 0.15) 0%, transparent 30%),
        linear-gradient(135deg, #00A859 0%, #0066cc 100%) !important;
    color: #1a3a2a;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Subtle yellow glow at two corners only */
body.auth-page::before,
body.auth-page::after {
    content: '';
    position: fixed;
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
body.auth-page::before {
    top: -30px;
    left: -30px;
    box-shadow: 0 0 40px 20px rgba(255, 215, 0, 0.12);
}
body.auth-page::after {
    bottom: -30px;
    right: -30px;
    box-shadow: 0 0 40px 20px rgba(255, 215, 0, 0.12);
}

/* Garis kuning dekoratif di atas halaman (hanya untuk halaman non-login) */
body:not(.auth-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #FFD700, #FFC107, #FFD700);
    z-index: 1100;
    pointer-events: none;
}

/* New filter row styling */
.bulan-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.bulan-filter-label {
  font-weight: 600;
  color: #004d2c;
  font-size: 0.9rem;
}
.bulan-active-badge {
  background: #00A859;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 168, 89, 0.08);
}

::-webkit-scrollbar-thumb {
    background: #00A859;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007a40;
}

/* ============================================================
   SIDEBAR - Hijau Gradien + Garis Kuning
   ============================================================ */
.sidebar {
    width: 260px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000;
    background: linear-gradient(180deg, #004d2c 0%, #007a40 40%, #00A859 100%) !important;
    border-right: 4px solid #FFD700 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    padding-top: 0 !important;
    padding-bottom: 40px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    border-image: none !important;
    border-top: none !important;
    border-bottom: none !important;
    display: block !important;
}

/* Garis kuning di atas sidebar */
.sidebar::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(to right, #FFD700, #FFC107);
    margin-bottom: 0;
}

/* Make sure nav inside sidebar doesn't clip */
.sidebar .nav.flex-column {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
}

.sidebar .collapse,
.sidebar .collapse.show {
    overflow: visible !important;
}

.sidebar h4 {
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px !important;
    color: #FFD700;
    letter-spacing: 2px;
    padding: 18px 15px 14px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sidebar .nav {
    padding: 0 12px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 10px 16px !important;
    margin-bottom: 4px !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.18) !important;
    color: #FFD700 !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    color: #004d2c !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}

.sidebar .collapse .nav-link {
    background-color: transparent !important;
    margin-bottom: 2px !important;
    padding-left: 36px !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75) !important;
}

.sidebar .collapse .nav-link:hover {
    background-color: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
}

.sidebar .collapse .nav-link.active {
    color: #004d2c !important;
    background: rgba(255, 215, 0, 0.85) !important;
    box-shadow: none;
    font-weight: 700;
}

/* ============================================================
   NAVBAR ATAS - Putih + Border Kuning Bawah
   ============================================================ */
.navbar-custom {
    margin-left: 260px !important;
    background: #ffffff !important;
    border-bottom: 4px solid #FFD700 !important;
    height: 100px !important;
    z-index: 999;
    box-shadow: 0 2px 16px rgba(0, 77, 44, 0.08);
    padding: 0 30px !important;
}

.logo-navbar {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.logo-navbar img {
    height: 38px !important;
    width: auto !important;
    max-width: 120px !important;
    margin: 0 !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.logo-navbar img[src*="LOGOpg"] {
    height: 90px !important;
    max-width: 225px !important;
}

.logo-navbar img[src*="bumn"] {
    height: 85px !important;
    max-width: 160px !important;
}

.logo-navbar img[src*="logo pn"] {
    height: 45px !important;
    max-width: 120px !important;
}

.logo-navbar img:hover {
    transform: scale(1.05);
}

.user-btn {
    background: linear-gradient(135deg, #00A859 0%, #007a40 100%) !important;
    border: 2px solid #FFD700 !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 12px rgba(0, 168, 89, 0.25) !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
}

.user-btn:hover {
    background: linear-gradient(135deg, #007a40 0%, #004d2c 100%) !important;
    border-color: #FFD700 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 168, 89, 0.35) !important;
}

/* ============================================================
   CONTENT AREA - Background Putih Bersih
   ============================================================ */
.content {
    margin-left: 260px !important;
    padding: 30px !important;
    min-height: calc(100vh - 100px);
    background: #f0f7f4;
}

/* ============================================================
   STAT CARDS - Beranda Dashboard
   ============================================================ */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

.stat-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #004d2c;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 3px;
}

/* ============================================================
   BERANDA DASHBOARD
   ============================================================ */
.dashboard-page {
    padding-top: 26px !important;
}

.travel-hero {
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 89, 0.28);
    background:
        linear-gradient(135deg, rgba(0, 77, 44, 0.96), rgba(0, 122, 64, 0.9)),
        repeating-linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0 1px, transparent 1px 22px);
    box-shadow: 0 18px 42px rgba(0, 77, 44, 0.18);
    margin-bottom: -72px;
}

.travel-hero::before {
    content: 'PG WONOLANGAN';
    position: absolute;
    inset: auto 0 28px;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(2.4rem, 7vw, 6.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    pointer-events: none;
}

.hero-topline {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.hero-topline span,
.hero-topline strong {
    font-size: 0.86rem;
}

.travel-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 52px 24px 82px;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #FFD700;
    color: #004d2c;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.22);
}

.travel-hero .dashboard-kicker {
    color: #FFD700;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.travel-hero h1 {
    margin: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
    color: #ffffff !important;
    font-size: clamp(2.35rem, 4.5vw, 4.3rem) !important;
    font-weight: 800 !important;
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.travel-hero h1 span,
.travel-hero h1 strong {
    display: block;
}

.travel-hero h1 strong {
    color: #fff8c5;
    font-weight: 800;
}

.travel-hero p {
    max-width: 650px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-actions .btn-light {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #004d2c !important;
}

.dashboard-header,
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #d4edda;
    border-left: 5px solid #00A859;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(0, 77, 44, 0.07);
    margin-bottom: 18px;
}

.welcome-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f0faf4 100%);
    border-left-color: #FFD700;
    padding: 34px 32px;
    min-height: 190px;
    text-align: center;
    justify-content: center;
    position: relative;
}

.welcome-copy {
    max-width: 760px;
}

.welcome-banner .dashboard-date {
    position: absolute;
    right: 26px;
    top: 22px;
}

.dashboard-kicker {
    margin: 0 0 4px;
    color: #007a40;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-header h1 {
    margin: 0;
    color: #004d2c !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
}

.dashboard-subtitle {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.93rem;
}

.welcome-banner .dashboard-subtitle {
    font-size: 1rem;
    line-height: 1.55;
}

.dashboard-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffef2;
    border: 1px solid #f5df75;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: #5f4b00;
}

.dashboard-note strong {
    flex-shrink: 0;
    font-size: 0.9rem;
}

.dashboard-note span {
    font-size: 0.88rem;
    color: #6b5a12;
}

.dashboard-date {
    min-width: 160px;
    text-align: right;
    color: #334155;
}

.dashboard-date span,
.dashboard-date strong {
    display: block;
}

.dashboard-date span {
    font-size: 0.88rem;
}

.dashboard-date strong {
    color: #004d2c;
    font-size: 1.05rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    background: #ffffff;
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 3px 14px rgba(0, 77, 44, 0.06);
}

.stat-mark {
    width: 56px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 800;
}

.dashboard-stat strong,
.dashboard-stat span {
    display: block;
}

.dashboard-stat strong {
    color: #004d2c;
    font-size: 1.08rem;
    line-height: 1.2;
    word-break: break-word;
}

.dashboard-stat div span {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-stat small {
    display: block;
    margin-top: 5px;
    color: #7c8a9a;
    font-size: 0.75rem;
    line-height: 1.35;
}

.stat-blue .stat-mark {
    background: #e3f2fd;
    color: #0d47a1;
}

.stat-amber .stat-mark {
    background: #fff7ed;
    color: #c2410c;
}

.stat-green .stat-mark {
    background: #e8f5e9;
    color: #007a40;
}

.stat-red .stat-mark {
    background: #fef2f2;
    color: #b91c1c;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    z-index: 2;
    margin: 0 26px 18px;
}

/* Force 4 cards in 1 row always */
.simple-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.info-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(212, 237, 218, 0.9);
    border-top: 4px solid rgba(0, 168, 89, 0.9);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 77, 44, 0.12);
    backdrop-filter: blur(12px);
}

.info-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.info-card-head strong {
    color: #004d2c;
    font-size: 0.98rem;
}

.info-card-value {
    color: #004d2c;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    word-break: break-word;
}

.info-card p {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.info-card a {
    margin-top: auto;
    color: #007a40;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.info-card a:hover {
    color: #004d2c;
}

.info-card-wide {
    grid-column: span 2;
    min-height: 170px;
}

.simple-info-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    justify-content: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-big-card {
    min-height: 220px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    background: #ffffff;
    border-color: #d4edda;
    border-top-color: #00A859;
    border-top-width: 5px;
    box-shadow: 0 16px 36px rgba(0, 77, 44, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-big-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0, 77, 44, 0.18);
}

.dashboard-big-card .info-card-head {
    justify-content: center;
}

.dashboard-big-card .info-card-head strong {
    font-size: 1.22rem;
}

.dashboard-big-card .stat-mark {
    width: 64px;
    height: 50px;
    font-size: 0.86rem;
    background: #e8f5e9;
    color: #007a40;
    border: 1px solid #c6ecd5;
}

.dashboard-big-card .info-card-value {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    margin-bottom: 12px;
    color: #004d2c;
}

.dashboard-big-card p {
    max-width: 420px;
    font-size: 0.96rem;
}

/* Dropdown filter di dalam card */
.card-filter-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(0, 168, 89, 0.07);
    border: 1px solid #c6ecd5;
    border-radius: 10px;
    padding: 8px 14px;
    margin: 6px 0 10px 0;
    width: 100%;
}

.card-filter-inline .filter-select {
    min-width: 110px;
    font-size: 0.83rem;
    padding: 5px 28px 5px 10px;
}

.card-filter-inline .btn-filter-apply {
    padding: 5px 14px;
    font-size: 0.83rem;
}


/* ── Filter Bulan Bar ─────────────────────────────────────── */
.filter-bulan-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0faf4 100%);
    border: 1px solid #c6ecd5;
    border-radius: 14px;
    padding: 12px 22px;
    margin: 0 0 18px 0;
    box-shadow: 0 2px 8px rgba(0, 120, 60, 0.07);
}

.filter-bulan-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-bulan-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #004d2c;
    white-space: nowrap;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2300A859' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid #a8d5b5;
    border-radius: 8px;
    padding: 7px 34px 7px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a3c2e;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: #00A859;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.15);
}

.btn-filter-apply {
    background: linear-gradient(135deg, #00A859 0%, #007a40 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 120, 60, 0.2);
}

.btn-filter-apply:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-filter-apply:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.filter-active-label {
    font-size: 0.85rem;
    color: #376e50;
    white-space: nowrap;
}

.filter-active-label strong {
    color: #004d2c;
}


.news-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.55;
}

.news-list li + li {
    margin-top: 6px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-grid-single {
    grid-template-columns: 1fr;
}

.dashboard-panel {
    background: #ffffff;
    border: 1px solid #d4edda;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 77, 44, 0.07);
    overflow: hidden;
}

.expense-chart-panel {
    max-width: 1100px;
    margin: 22px auto 18px;
}

.expense-chart {
    min-height: 300px;
    display: grid;
    grid-template-columns: repeat(12, minmax(42px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 22px 20px 14px;
}

.expense-bar-item {
    min-width: 0;
    display: grid;
    grid-template-rows: 38px 190px 28px;
    gap: 8px;
    align-items: end;
    text-align: center;
}

.expense-bar-value {
    color: #376e50;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.expense-bar-track {
    height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 8px;
    background: repeating-linear-gradient(
        0deg,
        #f3faf6 0,
        #f3faf6 24px,
        #e1f1e8 25px
    );
    border: 1px solid #d4edda;
    overflow: hidden;
}

.expense-bar-fill {
    width: 66%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 7px 7px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 77, 44, 0.16);
    transition: height 0.25s ease;
}

.expense-bar-bpd,
.expense-bar-sopir {
    display: block;
    width: 100%;
}

.expense-bar-bpd {
    background: linear-gradient(180deg, #00A859 0%, #007a40 100%);
}

.expense-bar-sopir {
    background: linear-gradient(180deg, #FFD700 0%, #f59e0b 100%);
}

.expense-bar-label {
    color: #004d2c;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.expense-chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 0 20px 20px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.expense-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.expense-chart-legend i {
    width: 14px;
    height: 14px;
    display: inline-block;
    border-radius: 4px;
}

.legend-bpd {
    background: #00A859;
}

.legend-sopir {
    background: #FFD700;
}

.panel-title {
    min-height: 56px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid #e8f5e9;
}

.panel-title h2 {
    margin: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
    color: #004d2c !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

.panel-title span,
.panel-link {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.panel-title p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.panel-link:hover {
    color: #007a40;
}

.dashboard-table {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.dashboard-table .table {
    table-layout: fixed !important;
}

.dashboard-table th,
.dashboard-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.total-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 16px 18px;
    padding: 14px 16px;
    background: #f0faf4;
    border: 1px solid #c6ecd5;
    border-radius: 8px;
}

.total-strip span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.total-strip strong {
    color: #004d2c;
    font-size: 1.2rem;
    text-align: right;
}

.empty-state {
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.92rem;
    padding: 20px;
    text-align: center;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quick-action {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d4edda;
    border-left: 4px solid #FFD700;
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(0, 77, 44, 0.06);
}

.quick-action:hover {
    border-left-color: #00A859;
    transform: translateY(-1px);
}

.quick-action strong {
    color: #004d2c;
    font-size: 0.95rem;
}

.quick-action span {
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 3px;
}

@media (max-width: 1200px) {
    .dashboard-stats,
    .quick-actions,
    .info-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header,
    .welcome-banner,
    .dashboard-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-date {
        text-align: left;
    }

    .welcome-banner {
        min-height: 0;
        text-align: left;
    }

    .welcome-banner .dashboard-date {
        position: static;
    }

    .travel-hero {
        min-height: 330px;
        margin-bottom: -36px;
    }

    .hero-topline {
        position: static;
        margin: 18px auto 0;
        width: fit-content;
    }

    .travel-hero {
        flex-direction: column;
    }

    .travel-hero-content {
        padding-top: 24px;
    }

    .info-card-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .navbar-custom {
        height: 104px !important;
    }

    .logo-navbar img[src*="LOGOpg"] {
        height: 70px !important;
    }

    .expense-chart {
        grid-template-columns: repeat(6, minmax(42px, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-stats,
    .quick-actions,
    .info-card-grid {
        grid-template-columns: 1fr;
    }

    .info-card-wide {
        grid-column: span 1;
    }

    .expense-chart {
        grid-template-columns: repeat(3, minmax(56px, 1fr));
    }
}

.content h1 {

    color: #004d2c !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    margin-bottom: 8px;
}

.content h2,
.content h3 {
    color: #1E3A8A !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border-left: 4px solid #FFD700;
    padding-left: 12px;
    margin-bottom: 16px;
}

.dashboard-page .dashboard-header h1 {
    margin: 0 !important;
    color: #004d2c !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    border-left: 0 !important;
    padding-left: 0 !important;
}

.dashboard-page .welcome-banner h1 {
    margin: 0 !important;
    color: #004d2c !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    border-left: 0 !important;
    padding-left: 0 !important;
}

.dashboard-page .panel-title h2 {
    margin: 0 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
    color: #004d2c !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

/* ============================================================
   BOOTSTRAP CARDS - Putih + Border Hijau + Aksen Kuning
   ============================================================ */
.card {
    background: #ffffff !important;
    border: 1px solid #d4edda !important;
    border-top: 4px solid #00A859 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 168, 89, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 168, 89, 0.15) !important;
}

.card .card-title {
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}

.card h1,
.card h5,
.card p {
    color: #004d2c !important;
}

.card hr.bg-white {
    background-color: rgba(255, 215, 0, 0.4) !important;
    opacity: 0.8;
}

/* ============================================================
   BOOTSTRAP TABLES - Header Hijau + Garis Kuning
   ============================================================ */
.table-responsive {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 168, 89, 0.08);
    border: 1px solid #d4edda;
    border-top: 3px solid #FFD700;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100% !important;
    margin-bottom: 0 !important;
    table-layout: auto !important;
}

.table thead th {
    background: linear-gradient(180deg, #00A859 0%, #007a40 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #FFD700 !important;
    padding: 12px 14px !important;
    white-space: nowrap !important;
    vertical-align: middle;
}

.table tbody td {
    padding: 10px 14px !important;
    vertical-align: middle;
    color: #1a3a2a;
    border-bottom: 1px solid #e8f5e9 !important;
    font-size: 0.9rem;
    white-space: nowrap !important;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover td {
    background-color: #f0faf4 !important;
}

/* Checkbox column - keep narrow */
.table th:first-child,
.table td:first-child {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center;
}

/* ============================================================
   BOOTSTRAP BUTTONS - Enhanced
   ============================================================ */
.btn {
    border-radius: 8px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none !important;
}

.btn-sm {
    padding: 5px 12px !important;
    font-size: 0.82rem;
    border-radius: 6px !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%) !important;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.25) !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.35) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25) !important;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.35) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.35) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.35) !important;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: white !important;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.25) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: white !important;
}

/* ============================================================
   BOOTSTRAP FORMS & INPUTS
   ============================================================ */
.form-control,
.form-select {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    font-size: 0.93rem;
    transition: all 0.25s ease !important;
    background: #fff;
    color: #334e68;
}

.form-control:focus,
.form-select:focus {
    border-color: #00A859 !important;
    box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.15) !important;
}

label {
    font-weight: 600 !important;
    color: #004d2c !important;
    margin-bottom: 4px !important;
    font-size: 0.88rem;
}

/* ============================================================
   BOOTSTRAP MODALS - Header Hijau + Garis Kuning
   ============================================================ */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    border-top: 4px solid #FFD700 !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #004d2c 0%, #007a40 100%);
    border-bottom: 3px solid #FFD700;
    padding: 16px 22px !important;
}

.modal-title {
    font-weight: 700 !important;
    color: #0b2e59;
}

.modal-body {
    padding: 22px !important;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 12px 22px !important;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-box {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 36px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1) !important;
}

.login-box h3 {
    color: #0b2e59 !important;
    font-weight: 700 !important;
    margin-top: 16px;
}

.login-box label {
    color: #1a3d6e !important;
}

.info-text h5 {
    color: #1976d2 !important;
    font-weight: 700 !important;
}

.info-text p {
    color: #486581 !important;
    font-size: 0.88rem;
}

/* Remove unwanted borders */
body,
.sidebar {
    border-image: none !important;
}

/* ============================================================
   EXTRA LOGIN STYLES
   ============================================================ */
.top-bar {
    width: 100%;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.top-bar img {
    height: 42px;
}

.login-btn {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 6px 22px;
    font-weight: 600;
    background: #fff;
    color: #0b2e59;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.btn-login {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%) !important;
    color: #000 !important;
    width: 100%;
    font-size: 1.05rem !important;
    margin-top: 16px !important;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(255, 193, 7, 0.35) !important;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, #00A859, #FFD700, #1E3A8A);
}

/* ============================================================
   PRINT ADJUSTMENTS
   ============================================================ */
@media print {
    body {
        background: #fff !important;
    }

    .sidebar,
    .navbar-custom {
        display: none !important;
    }

    .content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .table-responsive {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .btn {
        display: none !important;
    }
}

/* Hide spin arrows from all input[type=number] fields */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

