/* Custom CSS for SIMARATUR */

/* Theme Colors - Hijau Tua */
:root {
    --primary-dark-green: #0d4d3d;
    --primary-green: #1a6b54;
    --accent-green: #2ecc71;
    --light-green: #27ae60;
}

/* Disabled button styles - Read Only Access */
.btn[disabled],
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: all !important;
}

.btn[disabled]:hover,
.btn:disabled:hover {
    opacity: 0.5;
    transform: none !important;
    box-shadow: none !important;
}

/* Purple color for buttons and elements */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: white;
}

/* Green theme variations */
.bg-dark-green {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%) !important;
    color: white !important;
}

.btn-dark-green {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%);
    border: none;
    color: white;
}

.btn-dark-green:hover {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 77, 61, 0.3);
}

/* Custom styling for info boxes - COMPACT */
.info-box {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    min-height: 70px;
}

.info-box-icon {
    border-radius: 0.25rem 0 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    font-size: 1.5rem;
}

.info-box-content {
    padding: 5px 10px;
}

.info-box-text {
    font-size: 0.875rem;
}

.info-box-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.info-box small {
    font-size: 0.75rem;
}

.dash-keuangan-box {
    min-height: 92px;
    overflow: hidden;
}
.dash-keuangan-box .info-box-icon {
    width: 70px;
    font-size: 1.55rem;
}
.dash-keuangan-box .info-box-number {
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 4px;
}
.dash-keuangan-progress {
    height: 6px;
    background: #e9ecef;
    margin: 4px 0 4px;
    border-radius: 4px;
    overflow: hidden;
}
.dash-keuangan-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(13, 77, 61, 0.14);
}
.dash-keuangan-title {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.dash-keuangan-title h6 {
    margin: 0;
    line-height: 1.2;
}
.dash-qlola-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none !important;
}
.dash-qlola-brand img {
    height: 27px !important;
    max-height: 27px !important;
    width: auto !important;
    max-width: 59px !important;
    object-fit: contain;
    background: transparent;
    display: block;
    flex-shrink: 0;
}

/* Card styling - COMPACT */
.card {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 0.75rem;
    border-top: 3px solid #2ecc71;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.card-body {
    padding: 1rem;
}

.card-header.bg-success {
    background: linear-gradient(90deg, #0d4d3d 0%, #1a6b54 100%) !important;
}

.card-header.bg-primary {
    background: linear-gradient(90deg, #1a6b54 0%, #2ecc71 100%) !important;
}

.card-header.bg-info {
    background: linear-gradient(90deg, #17a2b8 0%, #1a6b54 100%) !important;
}

.card-header.bg-warning {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%) !important;
    color: white !important;
}

.card-header.bg-danger {
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%) !important;
}

/* Badge colors */
.badge-success {
    background-color: #1a6b54;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-primary {
    background-color: #0d4d3d;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Info boxes hover effect with green accent */
.info-box:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 77, 61, 0.2);
}

/* Table styling */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

/* Button styling */
.btn {
    border-radius: 0.25rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Sidebar styling - Solid Hijau Tua (Menyatu dengan Banner) */
.main-sidebar {
    box-shadow: 0 14px 28px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.22);
    background: #0a3d2e !important;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header dengan background image support */
.main-header.navbar {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 57px;
    position: relative;
}

/* Ensure text tetap terbaca di atas background image */
.main-header .navbar-nav .nav-link {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Dashboard Content Header dengan background image support - COMPACT */
.content-header {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 80px !important;
    max-height: 80px !important;
    position: relative;
    padding: 10px 0 !important;
    margin-bottom: 15px !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    margin-top: -15px !important;
    width: calc(100% + 30px) !important;
}

/* Remove padding dari container-fluid di dalam content-header */
.content-header .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100%;
}

/* Remove margin dari row dan col di dalam content-header */
.content-header .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-header .col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure d-flex container fills width */
.content-header .d-flex {
    width: 100%;
    padding: 0 15px;
    background: transparent !important;
}

/* Ensure all elements inside content-header have transparent background */
.content-header:not(.dashboard-index-header) .container-fluid,
.content-header:not(.dashboard-index-header) .row,
.content-header:not(.dashboard-index-header) .col-sm-12,
.content-header:not(.dashboard-index-header) div {
    background: transparent !important;
}

/* Text shadow untuk readability di dashboard header */
.content-header h1,
.content-header h5,
.content-header h4,
.content-header p,
.content-header small {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Compact logo styling */
.content-header .dashboard-logo {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain;
    margin-right: 12px !important;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.45));
}

/* Header dashboard: logo kiri + banner kanan, area terpisah */
.content-header.dashboard-index-header {
    padding: 0 0 0 12px !important;
    margin: -15px -15px 0 0 !important;
    width: calc(100% + 15px) !important;
    overflow: hidden;
    min-height: 80px !important;
    max-height: none !important;
    height: clamp(80px, 7.2vw, 110px);
    background: #0d4d3d;
    box-shadow: inset 0 -3px 0 0 #e0c25a;
}
.dash-header-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: inherit;
}
.dash-header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px 10px 6px;
    background: transparent;
}
.dash-header-logo .dashboard-logo {
    width: auto !important;
    height: clamp(48px, 6.2vw, 88px) !important;
    max-height: calc(100% - 12px) !important;
    max-width: 96px !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0;
    flex-shrink: 0;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.35));
}
.dash-header-banner {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px 0 0;
    background-size: 100% 100% !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
}
.dash-header-user {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dash-header-logo {
        padding: 4px 8px 4px 10px;
    }
    .dash-header-logo .dashboard-logo {
        height: clamp(36px, 10vw, 56px) !important;
        max-width: 64px !important;
    }
    .dash-header-user h4 {
        font-size: 0.95rem !important;
    }
}

/* Compact text styling */
.content-header h4 {
    font-size: 1.1rem !important;
    margin: 0 !important;
    line-height: 1.2;
}

.content-header p {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

.content-header small {
    font-size: 0.75rem !important;
}

/* Remove padding top ketika ada banner */
.main-sidebar.has-banner {
    padding-top: 0 !important;
}

.main-sidebar.has-banner .sidebar-banner {
    margin-top: 0 !important;
    flex-shrink: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.9);
    transition: all 0.3s ease;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.875rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(46, 204, 113, 0.2) !important;
    color: white;
    border-left: 3px solid #2ecc71;
    padding-left: 0.7rem !important;
}

.sidebar .nav-link.active {
    background-color: rgba(46, 204, 113, 0.3) !important;
    color: white;
    border-left: 3px solid #2ecc71;
    font-weight: 600;
}

/* Nav icon spacing */
.sidebar .nav-link .nav-icon {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

/* Nav item spacing */
.sidebar .nav-item {
    margin-bottom: 0 !important;
}

/* Treeview menu spacing */
.sidebar .nav-treeview > .nav-item > .nav-link {
    padding: 0.35rem 0.5rem 0.35rem 2rem !important;
    font-size: 0.825rem;
}

.sidebar .nav-item.has-treeview.menu-open > .nav-treeview {
    display: block !important;
}

/* Brand link styling untuk sidebar hijau - compact */
.brand-link {
    border-bottom: 2px solid #2ecc71 !important;
    background: rgba(13, 77, 61, 0.5) !important;
    padding: 0.6rem 0.5rem !important;
    font-size: 1rem !important;
}

.brand-link:hover {
    background: rgba(13, 77, 61, 0.8) !important;
}

.brand-link .brand-image {
    max-height: 30px !important;
    width: 30px !important;
}

.brand-link .brand-text {
    font-size: 1rem !important;
}

/* User panel styling untuk sidebar hijau - compact */
.user-panel {
    border-bottom: 1px solid rgba(46, 204, 113, 0.3) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.user-panel .image img {
    width: 2rem !important;
    height: 2rem !important;
}

.user-panel .info {
    font-size: 0.875rem;
    line-height: 1.2;
}

.user-panel .info a {
    color: #2ecc71 !important;
}

.user-panel .info a small {
    font-size: 0.75rem;
}

/* Nav header untuk sidebar hijau - compact */
.nav-header {
    color: #2ecc71 !important;
    background-color: rgba(13, 77, 61, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem !important;
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
}

/* Content wrapper - COMPACT */
.content-wrapper {
    background-color: #f4f6f9;
    padding-top: 15px;
}

/* Compact main content section */
.content {
    padding-top: 0 !important;
}

.content .container-fluid {
    padding-top: 0;
}

/* Reduce row spacing */
.content .row {
    margin-bottom: 0.5rem;
}

/* Section spacing */
section.content {
    padding: 10px 15px;
}

/* Login page styling */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    width: 400px;
}

/* Form styling */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Alert styling */
.alert {
    border-radius: 0.25rem;
}

/* Breadcrumb styling - COMPACT */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

/* Chart container */
.row-chart-pair .card-header,
.row-chart-4 .card-header {
    min-height: 42px;
    display: flex;
    align-items: center;
}
.row-chart-4 .card-title {
    font-size: 12.5px;
    line-height: 1.25;
    margin-right: 4px;
    white-space: normal;
}
.row-chart-4 .chart-kecamatan-wrap {
    height: 150px;
}
.row-chart-4 .chart-distribusi {
    min-height: 150px;
    max-height: none;
    gap: 8px;
}
.row-chart-4 .chart-distribusi-canvas {
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
}
.row-chart-4 .chart-distribusi-legend {
    font-size: 11px;
    line-height: 1.55;
}
@media (min-width: 992px) {
    .row-chart-4 .col-lg-3 {
        padding-left: 8px;
        padding-right: 8px;
    }
}
.chart-kecamatan-wrap {
    height: 168px;
    position: relative;
}
.chart-kecamatan-wrap canvas {
    max-height: none !important;
}
.chart-distribusi {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 168px;
    max-height: 168px;
}
.chart-distribusi-canvas {
    width: 168px;
    height: 168px;
    flex: 0 0 168px;
    position: relative;
}
.chart-distribusi-canvas canvas {
    max-height: none !important;
}
.chart-distribusi-legend {
    flex: 1;
    font-size: 13px;
    line-height: 1.9;
    color: #333;
}
.chart-distribusi-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.chart-distribusi-legend .legend-dot.square {
    border-radius: 2px;
    width: 12px;
    height: 12px;
}
.chart-status-legend li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.chart-fixed-h canvas {
    max-height: none !important;
}

.dash-side-card {
    margin-bottom: 0.75rem;
}
.dash-side-card .card-header .card-title {
    font-size: 0.9rem;
}
.dash-aksi .btn {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    padding: 0.28rem 0.5rem;
    font-weight: 500;
}
.dash-aksi hr {
    margin: 0.4rem 0;
}
.dash-integrasi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f4f6f9;
    border-radius: 6px;
    margin-bottom: 6px;
}
.dash-integrasi-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex: 0 0 30px;
}
.dash-integrasi-item .name {
    display: block;
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
}
.dash-integrasi-item .status {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
}

/* Sidebar container - scrollable */
.sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 200px);
    flex: 1 1 auto;
    padding-bottom: 20px !important;
}

/* Sidebar with banner - adjust height untuk banner normal */
.main-sidebar.has-banner .sidebar {
    max-height: calc(100vh - 400px) !important;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.5);
}

/* Version Info at bottom of sidebar */
.sidebar-version-info {
    flex: 0 0 auto;
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 8px 15px;
    min-height: 40px;
    font-size: 13px;
    line-height: 1.4;
    background-color: #0a3d2e;
}

/* DataTables custom styling */
.dataTables_wrapper .dataTables_length select {
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Page title - COMPACT */
.content-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Stats card animation */
.info-box:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Navigation tabs */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Modal styling */
.modal-header {
    background: linear-gradient(90deg, #0d4d3d 0%, #1a6b54 100%);
    color: white;
}

.modal-header.bg-success {
    background: linear-gradient(90deg, #1a6b54 0%, #2ecc71 100%) !important;
}

.modal-header.bg-primary {
    background: linear-gradient(90deg, #0d4d3d 0%, #1a6b54 100%) !important;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Loading spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Print styles */
@media print {
    .main-sidebar,
    .main-header,
    .main-footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    .content-wrapper {
        margin: 0 !important;
    }
}

/* Responsive adjustments - COMPACT */
@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.3rem;
    }
    
    .content-header h4 {
        font-size: 1rem !important;
    }
    
    .info-box {
        margin-bottom: 0.75rem;
        min-height: 60px;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .content-header:not(.dashboard-index-header) {
        min-height: 70px !important;
        max-height: 70px !important;
    }
    
    .dashboard-logo {
        width: 48px !important;
        height: 48px !important;
    }

    .content-header.dashboard-index-header {
        min-height: 72px;
        height: clamp(72px, 16vw, 96px);
        max-height: none !important;
        overflow: hidden;
    }
    .content-header.dashboard-index-header .dash-header-inner {
        height: 100%;
    }
    .content-header.dashboard-index-header .dashboard-logo {
        width: auto !important;
        height: clamp(36px, 10vw, 56px) !important;
        max-width: 64px !important;
        max-height: 86% !important;
        margin: 0 !important;
    }
}

/* ========================================
   ADDITIONAL GREEN THEME ENHANCEMENTS
   ======================================== */

/* Button enhancements dengan tema hijau */
.btn-success {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 107, 84, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 77, 61, 0.3);
}

/* Info box icons dengan gradient hijau */
.info-box .info-box-icon.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #1a6b54 100%) !important;
}

.info-box .info-box-icon.bg-success {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%) !important;
}

.info-box .info-box-icon.bg-primary {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%) !important;
}

/* Small box dengan tema hijau */
.small-box:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 77, 61, 0.3);
}

.small-box.bg-success {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%) !important;
}

.small-box.bg-info {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%) !important;
}

/* Breadcrumb dengan aksen hijau */
.breadcrumb-item.active {
    color: #1a6b54;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #0d4d3d;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2ecc71;
    text-decoration: none;
}

/* Alert success dengan gradient hijau */
.alert-success {
    background: linear-gradient(135deg, rgba(26, 107, 84, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-left: 4px solid #1a6b54;
    color: #0d4d3d;
}

/* Progress bar hijau */
.progress-bar.bg-success {
    background: linear-gradient(90deg, #1a6b54 0%, #2ecc71 100%) !important;
}

/* Link hover dengan warna hijau */
a:hover {
    color: #2ecc71;
}

/* Form focus dengan border hijau */
.form-control:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 0.2rem rgba(26, 107, 84, 0.25);
}

/* Pagination dengan tema hijau */
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%);
    border-color: #1a6b54;
}

.pagination .page-link:hover {
    color: #2ecc71;
    background-color: rgba(26, 107, 84, 0.1);
    border-color: #2ecc71;
}

/* Table hover dengan aksen hijau */
.table-hover tbody tr:hover {
    background-color: rgba(26, 107, 84, 0.05);
}

/* Dropdown menu dengan aksen hijau */
.dropdown-item:hover {
    background-color: rgba(26, 107, 84, 0.1);
    color: #0d4d3d;
}

/* Nav pills dengan tema hijau */
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%);
}

/* Text muted dengan warna hijau gelap */
.text-success {
    color: #1a6b54 !important;
}

/* Border hijau untuk elements */
.border-success {
    border-color: #2ecc71 !important;
}

/* Background hijau untuk hover states */
.list-group-item:hover {
    background-color: rgba(26, 107, 84, 0.05);
}

/* Navbar dropdown dengan aksen hijau */
.navbar .dropdown-menu {
    border-top: 3px solid #2ecc71;
}

/* Footer dengan gradient hijau (optional) */
.main-footer {
    border-top: 3px solid #2ecc71;
}

/* Custom checkbox dengan warna hijau */
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%);
    border-color: #1a6b54;
}

/* Switch toggle dengan warna hijau */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%);
    border-color: #1a6b54;
}

/* Tooltip dengan background hijau */
.tooltip-inner {
    background-color: #0d4d3d;
}

/* Popover dengan border hijau */
.popover {
    border-color: #2ecc71;
}

.popover-header {
    background: linear-gradient(90deg, #0d4d3d 0%, #1a6b54 100%);
    color: white;
}

/* Accordion dengan aksen hijau */
.accordion .card-header {
    background-color: rgba(26, 107, 84, 0.05);
}

.accordion .card-header:hover {
    background-color: rgba(26, 107, 84, 0.1);
}

/* Timeline dengan aksen hijau (jika digunakan) */
.timeline::before {
    background: linear-gradient(180deg, #0d4d3d 0%, #2ecc71 100%);
}

/* Widget styling dengan tema hijau */
.widget-user .widget-user-header {
    background: linear-gradient(135deg, #0d4d3d 0%, #1a6b54 100%);
}

/* Calendar events dengan warna hijau */
.fc-event {
    background: linear-gradient(135deg, #1a6b54 0%, #2ecc71 100%);
    border-color: #1a6b54;
}

/* Chart legend dengan warna hijau dominan */
.chart-legend li span {
    border-color: #1a6b54;
}

/* ========================================
   SIDEBAR BANNER CUSTOM STYLING
   ======================================== */

/* Sidebar banner container - Full width, no spacing */
.sidebar-banner {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: hidden;
    display: block;
    width: 100%;
    border-bottom: 3px solid #2ecc71;
    line-height: 0;
    position: relative;
}

/* Banner link - Remove all spacing */
.sidebar-banner a {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border: none !important;
}

/* Banner image - Full width autosize (normal) */
.sidebar-banner img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    max-width: 100% !important;
    vertical-align: top;
    line-height: 0;
}

/* Remove default spacing dari aside ketika ada banner */
.main-sidebar.has-banner {
    padding-top: 0 !important;
}

.main-sidebar.has-banner .sidebar-banner {
    margin-top: 0 !important;
}

/* Adjust sidebar menu spacing ketika ada banner */
.sidebar-banner + .sidebar {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

/* Remove any default margins from sidebar elements */
.main-sidebar.has-banner > .sidebar-banner:first-child {
    margin-top: 0 !important;
}

/* Ensure no gaps between banner and menu */
.main-sidebar.has-banner .sidebar {
    padding-top: 0 !important;
}

.main-sidebar.has-banner .sidebar .nav {
    padding-top: 10px !important;
}

/* Override margin-top dari nav menu ketika ada banner */
.main-sidebar.has-banner .sidebar nav {
    margin-top: 0 !important;
}

.main-sidebar.has-banner .sidebar nav.mt-2 {
    margin-top: 0.25rem !important;
}

/* ========================================
   COMPACT LIST VIEW (semua tabel data di konten)
   ======================================== */

.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) {
    min-height: unset !important;
    max-height: none !important;
    padding: 8px 15px !important;
    margin: 0 0 8px 0 !important;
    width: auto !important;
    background: transparent !important;
}

.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) h1,
.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) h4,
.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) p,
.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) small,
.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) .breadcrumb {
    text-shadow: none !important;
}

.content-wrapper > .content-header:not([style]):not(.dashboard-index-header) h1 {
    font-size: 1.25rem !important;
}

.content .card-header {
    padding: 0.4rem 0.75rem;
}

.content .card-header .card-title {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.content .card-header .btn-sm {
    padding: 0.15rem 0.45rem;
    font-size: 12px;
}

.btn-xs {
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.25;
    border-radius: 0.2rem;
}

.content .card-body:has(> table),
.content .card-body:has(> .table-responsive),
.content .card-body:has(.dataTables_wrapper),
.content .card-body:has(form + table),
.content .card-body:has(form + .table-responsive) {
    padding: 0.5rem 0.65rem;
}

.content table.table:not(.table-borderless) {
    font-size: 12px;
    margin-bottom: 0;
}

.content table.table:not(.table-borderless) thead th,
.content table.table:not(.table-borderless) tbody td {
    padding: 4px 8px;
    vertical-align: middle;
}

.content table.table:not(.table-borderless) thead th {
    white-space: nowrap;
    font-size: 12px;
}

.content table.table:not(.table-borderless) .badge {
    font-size: 11px;
    padding: 2px 6px;
    font-weight: 500;
}

.content table td:last-child {
    white-space: nowrap;
}

.content table td .btn,
.content table td .btn-sm,
.content table td .btn-xs {
    padding: 1px 5px;
    font-size: 11px;
    line-height: 1.25;
}

.content table td .btn + .btn {
    margin-left: 2px;
}

.content .card-body:has(table) form .form-control {
    height: calc(1.5em + 0.45rem + 2px);
    padding: 0.15rem 0.45rem;
    font-size: 12px;
}

.content .card-body:has(table) form label {
    font-size: 12px;
    margin-bottom: 0.15rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 12px;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    height: 28px;
    padding: 2px 6px;
    font-size: 12px;
}

/* Compact form pages (tambah/edit aparatur) */
.page-form-compact .content-header h1 {
    font-size: 1.2rem !important;
}
.page-form-compact .content-header p {
    font-size: 12px !important;
    text-shadow: none !important;
}
.page-form-compact .card {
    margin-bottom: 0.6rem;
}
.page-form-compact .card-header {
    padding: 0.35rem 0.7rem;
}
.page-form-compact .card-title {
    font-size: 0.92rem;
    line-height: 1.4;
}
.page-form-compact .card-body {
    padding: 0.55rem 0.75rem;
}
.page-form-compact .form-group {
    margin-bottom: 0.4rem;
}
.page-form-compact .col-form-label {
    font-size: 12px;
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
    line-height: 1.25;
}
.page-form-compact .form-control,
.page-form-compact select.form-control,
.page-form-compact textarea.form-control {
    height: calc(1.5em + 0.38rem + 2px);
    padding: 0.18rem 0.4rem;
    font-size: 12.5px;
}
.page-form-compact textarea.form-control {
    height: auto;
}
.page-form-compact .custom-file,
.page-form-compact .custom-file-label,
.page-form-compact .custom-file-input {
    height: calc(1.5em + 0.38rem + 2px);
    font-size: 12.5px;
}
.page-form-compact .custom-file-label {
    padding: 0.2rem 0.5rem;
    line-height: 1.45;
}
.page-form-compact .custom-file-label::after {
    height: calc(1.5em + 0.38rem + 2px);
    padding: 0.2rem 0.5rem;
    line-height: 1.45;
    font-size: 12px;
}
.page-form-compact small {
    font-size: 11px;
    line-height: 1.25;
}
.page-form-compact .form-check-inline {
    margin-right: 0.75rem;
}
.page-form-compact .form-check-label {
    font-size: 12.5px;
}
.page-form-compact .btn-lg {
    padding: 0.28rem 0.7rem;
    font-size: 13px;
}
.page-form-compact #previewFoto {
    max-height: 160px !important;
}
.page-form-compact .sticky-top {
    top: 58px !important;
}

/* Pengajuan pengangkatan — wizard 5 langkah */
.pgk-page .pgk-step-label {
    font-size: 11px;
}
.pgk-surat {
    font-size: 14px;
    line-height: 1.5;
}
.pgk-page {
    max-width: 960px;
}
.pgk-page-dash {
    max-width: none;
}
.pgk-mini {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.pgk-mini .pgk-head {
    margin-bottom: 0.45rem;
    gap: 6px;
}
.pgk-mini .pgk-head-icon {
    width: 22px;
    height: 22px;
    font-size: 11px;
    border-radius: 5px;
}
.pgk-mini .pgk-head h1 {
    font-size: 0.92rem;
}
.pgk-mini .pgk-head-meta {
    margin-left: auto;
    font-size: 10px;
    color: #6c757d;
    font-weight: 600;
}
.pgk-mini .pgk-card {
    padding: 0.5rem 0.65rem 0.45rem;
    flex: 1 1 auto;
}
.pgk-mini .pgk-stepper {
    margin-bottom: 0.45rem;
    padding: 0;
}
.pgk-mini .pgk-step-num {
    width: 18px;
    height: 18px;
    line-height: 16px;
    font-size: 10px;
    margin-bottom: 2px;
}
.pgk-mini .pgk-step:not(:last-child)::after {
    top: 8px;
    left: calc(50% + 12px);
    right: calc(-50% + 12px);
}
.pgk-mini .pgk-step-label {
    font-size: 9px;
}
.pgk-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
.pgk-info > div {
    background: #f4f6f9;
    border-radius: 4px;
    padding: 4px 8px;
}
.pgk-info span {
    display: block;
    font-size: 10px;
    color: #6c757d;
    line-height: 1.2;
}
.pgk-info strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}
.pgk-info-full {
    grid-column: 1 / -1;
}
.pgk-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.pgk-head-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.pgk-head h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #28a745;
    letter-spacing: -0.02em;
}
.pgk-card {
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 10px;
    padding: 1.5rem 1.6rem 1.25rem;
    box-shadow: 0 1px 8px rgba(40, 167, 69, 0.06);
}
.pgk-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 1.75rem;
    padding: 0 4px;
}
.pgk-step {
    flex: 1;
    position: relative;
    text-align: center;
    z-index: 1;
}
.pgk-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: #e2e6ea;
    z-index: 0;
}
.pgk-step.is-done:not(:last-child)::after,
.pgk-step.is-active:not(:last-child)::after {
    background: #28a745;
}
.pgk-step.is-active:not(:last-child)::after {
    background: linear-gradient(90deg, #28a745 0 50%, #e2e6ea 50%);
}
.pgk-step-num {
    width: 32px;
    height: 32px;
    line-height: 30px;
    border-radius: 50%;
    margin: 0 auto 8px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #cfd6d3;
    background: #fff;
    color: #495057;
    position: relative;
    z-index: 1;
}
.pgk-step.is-active .pgk-step-num,
.pgk-step.is-done .pgk-step-num {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
.pgk-step-label {
    display: block;
    font-size: 12.5px;
    color: #6c757d;
    font-weight: 500;
}
.pgk-step.is-active .pgk-step-label {
    color: #28a745;
    font-weight: 600;
}
.pgk-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #28a745;
    margin: 0 0 1.1rem;
}
.pgk-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.35rem;
}
.pgk-form .form-control {
    border-radius: 6px;
    border-color: #dee2e6;
    min-height: 38px;
}
.pgk-form textarea.form-control {
    min-height: 88px;
}
.pgk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 1.25rem;
    padding-top: 0.25rem;
}
.pgk-actions .btn-success {
    min-width: 132px;
}
.pgk-panel[hidden] {
    display: none !important;
}
.pgk-jenis {
    border: 1px solid #e8ece9;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
    background: #fbfefc;
}
.pgk-review dt {
    font-weight: 600;
    color: #6c757d;
    font-size: 12.5px;
}
.pgk-review dd {
    margin-bottom: 0.75rem;
    font-size: 14px;
}
.pgk-done {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}
.pgk-done-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 28px;
    line-height: 64px;
    margin: 0 auto 1rem;
}

/* ========================================
   END OF GREEN THEME ENHANCEMENTS
   ======================================== */
