body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    /* Light grey background for the overall page */
}

.header-banner {
    background-color: #00FFFF;
    /* Bright Cyan */
    padding: 20px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    /* For absolute positioning of logos */
    height: 100px;
    /* Adjust height as needed */
}

.logo-container {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.telkomsel-logo {
    height: 100px;
    /* Adjust size as needed */
    margin-right: 15px;
}

.pt-dsm-logo {
    height: 200px;
    /* Adjust size as needed */
    margin-left: 1200px;
}

.header-title {
    color: rgb(0, 0, 0);
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto;
    /* Center the title */
    text-align: center;
}

.dashboard-widgets {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: white;
    /* White background for the widgets section */
    flex-wrap: wrap;
    /* Allow widgets to wrap on smaller screens */
}

.widget {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    /* Allow widgets to grow and shrink */
    min-width: 200px;
    /* Minimum width for each widget */
    max-width: 280px;
    /* Max width to prevent them from getting too wide */
}

.widget-label {
    font-size: 1.1em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.widget-value {
    font-size: 3em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
}

.widget-value-large {
    font-size: 2.5em;
    /* Slightly smaller for multi-line values */
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;
    display: flex;
    /* For aligning sub-values */
    align-items: baseline;
    /* Align at the bottom of the text */
    justify-content: center;
}

.widget-unit {
    font-size: 0.9em;
    color: red;
    /* As per image */
}

.widget-unit-bottom {
    font-size: 0.9em;
    color: #000000;
}

.sub-value-small {
    font-size: 0.6em;
    /* Smaller font for sub-values like percentages */
    font-weight: normal;
    margin-left: 5px;
    /* Space between main value and sub-value */
    display: flex;
    flex-direction: column;
    /* Stack the percentage and label */
    align-items: flex-start;
    /* Align text to the start */
    line-height: 1;
    /* Tighter line height for stacked text */
}

.sub-value-small span {
    display: block;
    /* Ensure each part is on its own line */
}

.sub-value-green {
    color: green;
}

.sub-value-red {
    color: red;
}

/* --- Styling khusus untuk widget Load TTC --- */
.widget .load-ttc-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    width: 100%;
}

.widget .load-ttc-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.widget .load-ttc-main-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #000000;
    margin-left: 20px;
}

.widget .load-ttc-main-unit {
    font-size: 1.2em;
    color: #ff0019;
    /* Warna merah sesuai contoh */
    font-weight: bold;
    margin-top: -10px;
    margin-left: 20px;
    /* Atur posisi agar lebih dekat ke value */
}

.widget .load-ttc-sub-value {
    font-size: 1.9em;
    font-weight: bold;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

.widget .load-ttc-sub-label {
    font-size: 0.8em;
    font-weight: normal;
    margin-top: -5px;
    color: #ff0019;
    margin-right: 10px;
}

/* Update CSS Load TTC */
.widget .load-ttc-sub-label-pln {
    color: #ff0000;
    font-size: 0.8em;
    font-weight: normal;
    margin-top: -5px;
}

.widget .load-ttc-sub-label-genset {
    color: #ff0019;
    font-size: 0.8em;
    font-weight: normal;
    margin-top: -5px;
}

/* --- Styling khusus untuk widget dengan 2 kolom (BBM, Lalulintas) --- */
.widget .two-column-details {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    width: 100%;
}

.widget .two-column-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.widget .values-row {
    margin-bottom: 5px;
}

.widget .two-column-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #000000;
    flex: 1;
    text-align: center;
}

.widget .two-column-unit {
    font-size: 1em;
    color: #ff0019;
    /* Warna merah sesuai contoh */
    font-weight: bold;
    flex: 1;
    text-align: center;
}

/* --- Dashboard Section 2 Styles --- */
.dashboard-section-2 {
    background-color: #00FFFF;
    /* Bright Cyan, same as header banner */
    padding: 20px;
    margin-top: 20px;
}

.card-grid {
    display: grid;
    /* Mengatur grid untuk memiliki tepat 4 kolom dengan lebar yang sama */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
    margin: 0;
    padding: 0;
}

/* --- Styling khusus untuk widget Tagihan Listrik --- */
.tagihan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 20px;
    /* Anda bisa menambahkan padding, margin, atau border-radius di sini jika perlu */
}

.tagihan-details {
    flex-grow: 1;
    /* Membuat div ini mengambil seluruh sisa ruang vertikal */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Pusatkan isi secara vertikal */
    align-items: center;
    /* Pusatkan isi secara horizontal */
    width: 100%;
    /* Pastikan mengambil lebar penuh */
}

.tagihan-value {
    font-size: 2.0em;
    font-weight: bold;
    margin: 0;
}

.tagihan-selisih {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0;
}

.tagihan-persentase {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.tagihan-red {
    color: #dc3545;
    /* Warna merah */
}

.tagihan-green {
    color: #28a745;
    /* Warna hijau */
}

/* Chart container styles */
.chart-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.card data-bbm-solar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.chart-container {
    width: 100%;
    height: 250px;
    /* Fixed height for charts */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* For doughnut chart center text */
}

.chart-container canvas {
    width: 100%;
    height: 250px;
}

/* Jam Nyala PLN Doughnut Chart specific styles */
.doughnut-chart-container {
    position: relative;
}

.doughnut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    /* Allows clicks to pass through to the canvas */
}

.doughnut-center-text .main-text {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.2;
}

.doughnut-center-text .percentage {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.doughnut-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    flex-wrap: wrap;
    /* Allow legend items to wrap */
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
}

.legend-color.jam-nyala {
    background-color: #00FFFF;
    /* Bright Cyan */
}

.legend-color.jam-padam {
    background-color: #E0E0E0;
    /* Light Grey */
}

/* --- Dashboard Section 3 Styles (similar to section 2 for consistency) --- */
.dashboard-section-3 {
    background-color: #00FFFF;
    /* Bright Cyan, same as header banner */
    padding: 20px;
    margin-top: 20px;
    /* Space from the previous section */
}

.dashboard-section-3 .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* Adjust min-width for larger charts */
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section-3 .card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-section-3 .chart-container {
    width: 100%;
    height: 300px;
    /* Slightly taller for these charts */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Dashboard Section 4 Styles (similar to sections 2 & 3) --- */
.dashboard-section-4 {
    background-color: #00FFFF;
    /* Bright Cyan */
    padding: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
    /* Add some padding at the bottom for the last section */
}

.dashboard-section-4 .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Adjust min-width */
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section-4 .card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-section-4 .chart-container {
    width: 100%;
    height: 400px;
    /* Adjust height as needed for clarity */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Dashboard Section 5 Styles --- */
.dashboard-section-5 {
    background-color: #00FFFF;
    /* Bright Cyan */
    padding: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
    /* Ensure sufficient bottom padding */
}

.dashboard-section-5 .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Adjust min-width */
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section-5 .card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-section-5 .chart-container {
    width: 100%;
    height: 300px;
    /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Dashboard Section 6 Styles --- */
.dashboard-section-6 {
    background-color: #00FFFF;
    /* Bright Cyan */
    padding: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
    /* Ensure sufficient bottom padding for the final section */
}

.dashboard-section-6 .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Adjust min-width */
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section-6 .card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-section-6 .chart-container {
    width: 100%;
    height: 350px;
    /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Dashboard Section 7 Styles --- */
.dashboard-section-7 {
    background-color: #00FFFF;
    /* Bright Cyan */
    padding: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
    /* Final padding for the entire page */
}

.dashboard-section-7 .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Adjust min-width */
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section-7 .card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-section-7 .chart-container {
    width: 100%;
    height: 300px;
    /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Dashboard Section 8 Styles --- */
.dashboard-section-8 {
    background-color: #00FFFF;
    /* Bright Cyan */
    padding: 20px;
    margin-top: 20px;
    padding-bottom: 40px;
    /* Final padding for the entire page */
}

.dashboard-section-8 .card-grid {
    /* Menyesuaikan minmax agar terlihat baik dengan 2 item */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* Menggunakan 400px agar 2 kolom muat */
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-section-8 .card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-section-8 .chart-container {
    width: 100%;
    height: 300px;
    /* Default height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Checklist Maintenance specific styles (tidak ada perubahan dari sebelumnya) */
.checklist-maintenance-card {
    text-align: left;
    /* Align text to the left */
    align-items: flex-start;
    /* Align content to the start */
}

.checklist-items {
    list-style: none;
    /* Remove default bullet points */
    padding: 0;
    margin: 10px 0;
    width: 100%;
    /* Take full width of card */
}

.checklist-items li {
    display: flex;
    justify-content: space-between;
    /* Space out item name and checkbox */
    align-items: center;
    padding: 8px 0;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px dashed #eee;
    /* Subtle separator */
}

.checklist-items li:last-child {
    border-bottom: none;
    /* No border for the last item */
}

.checklist-status img {
    height: 20px;
    /* Size of checkbox images */
    width: 20px;
    margin-left: 10px;
}

/* Perijinan TTC Doughnut Chart specific styles (tidak ada perubahan dari sebelumnya) */
.perijinan-ttc-card .doughnut-center-text .main-text {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.2;
}

.perijinan-ttc-card .doughnut-center-text .percentage {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.perijinan-ttc-card .doughnut-legend {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align items to start for multi-line legend */
    flex-direction: column;
    /* Stack legend items vertically */
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    padding-left: 20px;
    /* Indent legend for better alignment if chart is small */
}

.perijinan-ttc-card .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    /* Space between legend items */
}

.perijinan-ttc-card .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.perijinan-ttc-card .legend-color.berlaku {
    background-color: #00FFFF;
    /* Bright Cyan */
}

.perijinan-ttc-card .legend-color.expired {
    background-color: orange;
    /* Orange */
}

.perijinan-ttc-card .legend-color.belum-ada {
    background-color: #E0E0E0;
    /* Light Grey */
}

.perijinan-ttc-card .legend-color.tidak-berlaku {
    background-color: #FF6347;
    /* Tomato or similar red */
}
