html {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  /* Scales smoothly between 11px and 13px based on viewport */
  font-size: clamp(11px, 0.85vw + 0.3rem, 13px);
}

table thead th {
  text-align: left;
  color : #EDFFFB;
  background: #1e824c;
  white-space: nowrap;
  font-size:14px;
}

.table td, .table th {
  padding: .45rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.form-control-info {
    background-color: transparent !important;
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    padding-left: 0;
    color: #495057;
    cursor: default;
}

.form-control-info:focus {
    border-bottom-color: #80bdff;
    box-shadow: none;
    outline: 0;
    background-color: transparent !important;
}


/* Modern Compact Table Styles */
/*
table thead th {
  text-align: left;
  color: #fff;
  background: #1e824c;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  border: none;
}

.table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

.table td, .table th {
  padding: 6px 12px;
  vertical-align: middle;
  border-top: none;
  border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.table tbody tr:last-child td {
  border-bottom: none;
}
  */

.modern-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.modern-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modern-stat-card.card-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-stat-card.card-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.modern-stat-card.card-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modern-stat-card.card-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modern-stat-card.card-red {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.modern-stat-card .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.modern-stat-card .stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 500;
}

.modern-stat-card .stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 3.5rem;
    opacity: 0.3;
}

.modern-stat-card .stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
}

.modern-stat-card .stat-footer a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.modern-chart-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.modern-chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modern-chart-card.chart-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-chart-card.chart-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.modern-chart-card.chart-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.modern-chart-card.chart-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modern-chart-card .chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.modern-chart-card .chart-container {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
}


.modern-chart-card-reversed {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    color: #333;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-chart-card-reversed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modern-chart-card-reversed .chart-title {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
}

.modern-chart-card-reversed .chart-container {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
}

.modern-chart-card-reversed.chart-blue .chart-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-chart-card-reversed.chart-green .chart-title {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-chart-card-reversed.chart-orange .chart-title {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-chart-card-reversed.chart-cyan .chart-title {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stacked-row {
  line-height: 1.2;
}
.stacked-row div:first-child {
  font-weight: bold;
}
.stacked-row div:last-child {
  font-size: 1em;
  color: #666;
}

.main-sidebar {
  background: #12502f;
}

.label {
  text-align: left;
  font-weight: bold;
  color: #1e364e;
}

.modal-header {
  padding-top:5px;
  height: 40px;
  background-color: #1e824c;
  color:#EDFFFB;
}

.judul {
  font-size: 1.5em;
  font-weight: bold;
  vertical-align: middle;
  color: #1e824c;
  
}

div.dt-buttons {
  float: right;
  margin-left:10px;
}


ul.nav a:hover { 
  color: #fff !important;
  font-weight:bold !important;
}


.nav-pills .nav-link {
  color: #FFFFFF;
}

.nav-pills .nav-link.active {
  color: #fff;
  background-color: rgba(2, 59, 2, 0.9);
}

div.search-title {
  color: #000!important;
}

strong.text-light {
  color: #000!important;
}

.pcare-form label {
  background-color: #154397;
  color: #fff;
  display: block; /* Ensure the label takes up the full width */
  padding: 5px; /* Adjust padding as needed */
}

.warning-form label {
  background-color: darkred;
  color: #fff;
  display: block; /* Ensure the label takes up the full width */
  padding: 5px; /* Adjust padding as needed */
}

.pcare-form-notice p {
  background-color: lightskyblue;
  display: block; /* Ensure the label takes up the full width */
  padding: 5px; /* Adjust padding as needed */
}

.error-message {
  color: red;
  display: none;
}
.invalid {
  border-color: red;
}

.form-highlight div {
  background-color: lightskyblue;
}
.form-highlight label {
  color: black;
}

.required-label::after {
  content: " *";
  color: red;
  font-weight: bold;
}

.warningstokobat-row { background-color: #f8d7da !important; }

.rowcolor-red { background-color: #f8d7da !important; }

.rowcolor-yellow { background-color: #ffeeba !important; }

.red-row {
  background-color: #ffcccb !important; /* Light red */
}
.green-row {
  background-color: #90EE90 !important; /* Light green */
}
.yellow-row {
  background-color: #ffff9a !important; /* Light yellow */
}

/* Style for expanded rows */
.table-striped > tbody > tr.expanded-row,
.table-striped > tbody > tr.expanded-row:nth-of-type(odd),
.table-striped > tbody > tr.expanded-row:nth-of-type(even) {
    background-color: #ffffd0 !important; /* Light yellow */
}

/* Hover effect for expanded rows */
.table-striped > tbody > tr.expanded-row:hover,
.table-striped > tbody > tr.expanded-row:nth-of-type(odd):hover,
.table-striped > tbody > tr.expanded-row:nth-of-type(even):hover {
    background-color: #ffff9f !important; /* Slightly darker yellow for hover */
}

/* Style for child rows */
.table-striped > tbody > tr.child {
    background-color: #fffff0 !important; /* Very light yellow */
}

.expanded-row,
.expanded-row + tr {
    background-color: #ffffd0 !important; /* Light yellow */
}

.expanded-row:hover,
.expanded-row + tr:hover {
    background-color: #ffff9f !important; /* Slightly darker yellow for hover */
}

.row-details {
    padding: 4px;
    background-color: #ffffd0; /* Light yellow, same as expanded row */
}

/* Remove borders from child rows */
.dataTable tr.child {
    border: none !important;
}

.dataTable tr.child td {
    border: none !important;
    padding: 0 !important;
}

/* Overlay styles */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  z-index: 1000; /* Just below the loader */
  display: none; /* Hide by default */
}

/* Loader styles */
#loader {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001; /* Above the overlay */
  display: none; /* Hide by default */
}

/* Blur effect applied only to the content */
.blurred #content {
  filter: blur(5px);
  pointer-events: none; /* Disable clicks */
}

.badge-lg {
  font-size: 14px;
  padding: 2px 12px;
}

.highlight-group {
    background: #fffbe6;
    border: 2px solid #ffc107;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255,193,7,0.08);
    padding: 10px 10px;
}

.cf-turnstile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
}

.cf-turnstile iframe {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

tr.selected .dropdown-menu .dropdown-item {
    background-color: #fff !important;
    color: #212529 !important;
}
tr.selected .dropdown-menu .dropdown-item:hover,
tr.selected .dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* ---------------------------------------------------
MEDIAQUERIES
----------------------------------------------------- */
@media (max-width: 768px) {
  
  .label {
    text-align:left;
    font-weight: bold;
    color: #1e364e;
  }
  
  
  .col {
    width: 100%;
    
  }
  
}

@media (max-width: 400px) {
    .cf-turnstile {
        transform: scale(0.85);
        transform-origin: top center;
    }
}

[class*="sidebar-dark-"] .list-unstyled > .nav-item > .nav-link.active, [class*="sidebar-dark-"] .list-unstyled > .nav-item > .nav-link.active:hover, [class*="sidebar-dark-"] .list-unstyled > .nav-item > .nav-link.active:focus {
  background-color: rgba(58, 0, 41, 0.9);
  color: #fff;
}

[class*="sidebar-dark-"] .list-unstyled > .nav-item > .nav-link:hover, [class*="sidebar-dark-"] .list-unstyled > .nav-item > .nav-link:focus {
  background-color: rgba(58, 0, 41, 0.9);
  color: #fff;
}

[class*="sidebar-dark-"] .nav-sidebar > .nav-item.menu-open > .nav-link,
[class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover > .nav-link,
[class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link:focus {
  background-color: rgba(58, 0, 41, 0.9);
  color: #fff;
}

p.inlinex {
  display: inline;
}

.inline {
  display: inline;
  width: auto;
  outline: 0;
  border-width: 0 0 2px;
  border-color: black
}

input:read-only {
  background-color: none;
}

.center-text {
  text-align: center;
}

.full-text {
  width: auto;
}

table.icmodal {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td.icmodal, th.icmodal, tr.icmodal {
  border: 1px solid #000;
  text-align: left;
  padding: 8px;
}

.warning-section {
  background-color: red;
  color: #FFFFFF;
}

.login-box,
.register-box {
  width: 65%;
}

@media (max-width: 576px) {
  .login-box,
  .register-box {
    margin-top: .5rem;
    width: 90%;
  }
}

.modern-form-control,
.modern-form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    padding: 0.4rem 0.75rem;
}

.modern-form-control:focus,
.modern-form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.modern-btn-primary {
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.modern-form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.modern-card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    border-radius: 8px;
}

.modern-card-body {
    padding: 1rem;
}

.gap-3 {
    gap: 1rem;
}

@media (max-width: 768px) {
    .modern-form-responsive {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .modern-form-responsive .form-group,
    .modern-form-responsive .btn {
        width: 100%;
    }
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    width: auto;
}