/* cp_project/core/static/css/custom.css */

h5.custom-color {
    color: #ff0000;
    }
label {
    margin-right: 15px;
    color: blue;
}
/* label { color: blue; } */
input { border: 1px solid #ADD8E6; }
.text-blue {
      color: blue;
  }

.section-box {
    border: 1px solid #000;
    padding: 10px;
    background-color: #f9f9f9;
}

.section-title {
    color: blue;
    margin: 0;
}

/* Style for submit buttons */
.btn-primary {
    background-color: #0066cc;
    border-color: #004d99;
}
.btn-primary:hover {
    background-color: #004d99;
    border-color: #003366;
}

/* Style for form inputs */
.form-control {
    border-color: #ccc;
    border-radius: 4px;
}
.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

/* Center align headers */
h5 {
    text-align: center;
    color: #333;
}

/* Add spacing to rows */
.row.g-2 {
    margin-bottom: 10px;
}

/* Custom error styling */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.msg-error {
    color: #dc3545 !important;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: .375rem;
    padding: .75rem 1.25rem;
}

/* Table Totals Styling */
.table-header {
    background-color: #f8f9fa;
    padding: 12px 16px;
    margin: 0;
    font-weight: bold;
    border: 3px solid #333;
    border-bottom: none;
    text-align: center;
    font-size: 1.1rem;
}

.table-totals {
    width: 100%;
    border-collapse: collapse;
    border: 3px solid #333;
    margin-bottom: 20px;
}

.table-totals th,
.table-totals td {
    border: 1px solid #666;
    padding: 10px 12px;
    text-align: right;
}

.table-totals th {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: center;
}

.table-totals td {
    font-weight: 500;
}
/* Subtle Audit History Table */
.audit-header {
    background-color: #f8f9fa;
    padding: 8px 12px;
    margin: 25px 0 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    border: 2px solid #ddd;
    border-bottom: none;
    text-align: center;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #ddd;
    font-size: 0.90rem;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.audit-table th,
.audit-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    text-align: left;
}

.audit-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-style: normal;
    color: #444;
    width: 20%;
}

.audit-table td:first-child {
    font-weight: 600;
    font-style: normal;
    background-color: #fafafa;
}

/* At the very bottom of custom.css */
@import url('theme.css');   /* pulls in the variables */

body, html {
  background-color: var(--primary-bg) !important;
}
