/* DMS Dashboard Styles */
/*KPIS Dial Chart*/
.gauge-container {
             position: relative;
             width: 200px;
             height: 120px;
             margin: 0 auto;
             display: flex;
             align-items: center;
             justify-content: center;
             overflow: visible;
}

.gauge-container::before {
            content: '';
            position: absolute;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0,0,0,0.1) 100%, rgba(0,0,0,0.1) 100%);
            z-index: -1;
            box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

/* Modal Styles */
.cda-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.cda-modal-content {
    background-color: #fefefe;
   margin: 40px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    border-radius: 5px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 4px 32px rgba(0,0,0,0.2);
}

.cda-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.cda-close:hover,
.cda-close:focus {
    color: #000;
    text-decoration: none;
}

#cda-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

#cda-modal-body {
    margin-top: 20px;
}

/* Table styles for modal content */
#cda-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#cda-modal-body th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

#cda-modal-body td {
    padding: 8px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

#cda-modal-body tr:nth-child(even) {
    background-color: #f8f9fa;
}

#cda-modal-body tr:hover {
    background-color: #e9ecef;
}

/* Responsive modal */
@media (max-width: 768px) {
    .cda-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    #cda-modal-body {
        font-size: 14px;
    }
    
    #cda-modal-body th,
    #cda-modal-body td {
        padding: 6px 4px;
    }
}

/* Kebab menu styles for chart export */
.chart-menu-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10; /* Increased z-index */
}
.chart-menu-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}
.chart-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 140px;
  margin-top: 4px;
}
.chart-menu-wrapper.open .chart-menu-dropdown {
  display: block !important;
}
.chart-menu-dropdown button {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
}
.chart-menu-dropdown button:hover {
  background: #f5f5f5;
}

/* Styles for the modal filter container */
.vms-modal-filters {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    align-items: flex-end; 
    margin-bottom: 20px; 
    padding: 15px; 
    background-color: #f9f9f9; 
    border-bottom: 1px solid #eee;

/* Styles for individual filter groups */
    box-sizing: border-box; 
}
.vms-filter-group {
    display: flex; 
    flex-direction: column; 
     min-width: 150px
}

.vms-filter-group label {
    margin-bottom: 5px; /* Space between label and input */
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* Prevent label text from wrapping */
}

.vms-modal-filters input[type="text"],
.vms-modal-filters input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 150px; 
    box-sizing: border-box; 
}

/* Styles for the buttons container */
.vms-filter-buttons {
    display: flex; 
    gap: 10px; 
    align-self: flex-end; 
    margin-left: auto;
}

.vms-filter-buttons button {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
}

.vms-filter-buttons button:hover {
    background-color: #d0d0d0;
}

.chart-menu-dropdown button {
    font-size: 12px;
    padding: 4px 8px;
    margin-bottom: 2px;
  }

  #DonationByCampaignMonthContainer,
#DonationByCampaignYearContainer {
    flex: 1 1 100% !important; /* Force full width */
    max-width: 100% !important; /* Ensure it expands to full width */
}