  /* --- General Styles --- */
  body {
    /* NEW: Default background image (Desk/Accounts Theme) */
    background: url('https://images.unsplash.com/photo-1587614203976-365c7d669aae?auto=format&fit=crop&w=2000&q=80') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
}

.company-header {
    background: linear-gradient(90deg, #1F3A93, #A67B5B);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    /* Base font size for paragraph */
    line-height: 1.4;
    /* Adjust line height for readability */
    margin-bottom: 15px;
    /* Ensure space below header */
}

/* Ensure h5 is larger and visible */
.company-header h5 {
    font-size: 1.6rem !important;
    /* Larger font size for name */
    font-weight: bold;
    margin-bottom: 5px !important;
    /* Space between name and registry */
    color: #ffffff;
    /* Ensure white color */
    display: block !important;
    /* Ensure it's displayed */
    opacity: 1 !important;
    /* Ensure full opacity */
}

/* Ensure p is visible */
.company-header p {
    margin-bottom: 3px !important;
    /* Small space between lines */
    font-size: 1rem;
    /* Slightly smaller than base */
    color: #f0f0f0;
    /* Slightly off-white for contrast */
    display: block !important;
    /* Ensure it's displayed */
    opacity: 1 !important;
    /* Ensure full opacity */
}

.main-buttons .btn {
    min-width: 130px;
    text-align: center;
}

.main-buttons .btn i {
    font-size: 3rem;
    margin-bottom: 5px;
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    min-width: 250px;
}

/* --- Table Styles --- */
/* ... (table styles remain the same) ... */
.list-table th {
    background-color: #f8f9fa;
}

.report-table th {
    background-color: #1e88e5;
    color: white;
    font-weight: bold;
}

.report-table tfoot td {
    font-weight: bold;
    background-color: #f8f9fa;
}

.voucher-table,
.list-table,
.report-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 15px;
}

.voucher-table th,
.voucher-table td,
.list-table th,
.list-table td,
.report-table th,
.report-table td {
    border: 1px solid #dee2e6;
    text-align: center;
    padding: 8px;
    vertical-align: middle;
}


/* --- Modal Styling (Green Background, Blue Border) --- */
.modal-content {
    background-color: #e8f5e9;
    border: 1.5px solid #0d6efd;
}

#passwordPromptModal .modal-content {
    background-color: #a5d6a7;
    border-color: #1a237e;
}

#passwordPromptModal .modal-header {
    background-color: #388e3c;
    color: white;
}

/* Style for readonly ID fields */
input[readonly].form-control {
    border: none !important;
    background-color: #e9ecef !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    opacity: 1;
    cursor: default;
    color: #495057;
    box-shadow: none;
}

.form-control-plaintext {
    border: none !important;
    background-color: #e9ecef !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}


/* --- Print Styles --- */
@media print {

    /* ... (same comprehensive print styles as before) ... */
    .no-print {
        display: none !important;
    }

    body {
        margin: 0;
        background: #fff !important;
    }

    .modal-content {
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
    }

    .company-header {
        background: #eee !important;
        color: #000 !important;
        margin-bottom: 10px !important;
        padding: 5px !important;
    }

    .table,
    .report-table,
    .list-table {
        border: 1px solid #000 !important;
        border-collapse: collapse !important;
        width: 100% !important;
        font-size: 10pt;
        margin-bottom: 10px !important;
    }

    .table th,
    .table td,
    .report-table th,
    .report-table td,
    .list-table th,
    .list-table td {
        border: 1px solid #666 !important;
        padding: 4px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .table th,
    .report-table th,
    .list-table th {
        background-color: #e9ecef !important;
        color: #000 !important;
        font-weight: bold !important;
    }

    img#globalCompanyLogo,
    img.modal-company-logo {
        max-width: 80px !important;
        max-height: 80px !important;
        display: block !important;
    }

    .modal-footer,
    .btn-close,
    .input-group,
    .alert {
        display: none !important;
    }

    .modal-body {
        padding: 5px !important;
    }

    input[readonly],
    input.form-control-plaintext {
        border: none !important;
        background: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .form-control-plaintext {
        border: none !important;
        background: none !important;
    }

    /* Report Specific Print Styles */
    #memberStatementReportModal .modal-body,
    #departmentStatementReportModal .modal-body {
        padding: 5px;
    }

    #memberStatementReportModal .report-criteria,
    #departmentStatementReportModal .report-criteria {
        display: block !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 5px !important;
        font-size: 9pt !important;
    }

    .report-table tfoot td {
        background-color: #f1f1f1 !important;
        font-weight: bold !important;
        border-top: 2px solid #000 !important;
    }

    .report-table .balance-col {
        font-weight: bold;
    }

    .report-table .debit-col {
        color: #c00 !important;
    }

    .report-table .credit-col {
        color: #080 !important;
    }

    #reportTitlePrint,
    #deptReportTitlePrint {
        display: block !important;
        font-weight: bold;
        margin-bottom: 5px;
    }

    #reportCriteriaPrint,
    #deptReportCriteriaPrint {
        display: block !important;
    }

    .table-responsive {
        overflow-x: auto;
        white-space: nowrap;
    }

    #membersDepartmentsTable th,
    #membersDepartmentsTable td {
        min-width: 100px;
        /* يمكن تعديله حسب العرض المناسب */
    }

 
  
    

}
.negative-number {
    color: red !important;
    font-weight: bold;
}

#customAlert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* خلفية شفافة */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.custom-alert-content {
    background-color: #ff4d4d; /* خلفية حمراء */
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
#paymentDate {
    text-align: right;
}

/* الزر الأزرق الأساسي */
.btn-custom {
  color: #0056b3;
  background-color: transparent;
  border-color: #0056b3;
  transition: all 0.3s ease;
  opacity: 1;
}

/* عند مرور الماوس */
.btn-custom:hover {
  color: #fff;
  background-color: #0056b3;
  border-color: #0056b3;
}

/* عند الضغط */
.btn-custom:active,
.btn-custom.dropdown-toggle:active,
.btn-custom.show,
.btn-group.show > .btn-custom,
.btn-custom[aria-expanded="true"] {
  color: #fff !important;
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
  box-shadow: none;
}

/* عند التركيز */
.btn-custom:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

/* عند التعطيل */
.btn-custom.disabled,
.btn-custom:disabled {
  color: rgba(0, 86, 179, 0.5);
  border-color: rgba(0, 86, 179, 0.5);
  cursor: not-allowed;
  opacity: 1;
}


  #deleteConfirmModal{
z-index: 1985894;
  }
  
/* الشكل الأساسي */
.btn-custom2 {
  color: black;
  background-color: transparent;
  border-color: black;
  transition: all 0.3s ease;
  opacity: 1;
}

/* الشكل عند المرور */
.btn-custom2:hover {
  color: #fff;
  background-color: black;
  border-color: black;
}

/* الشكل عند التفعيل (القائمة مفتوحة) */
.btn-group.show > .btn-custom2,
.btn-custom2[aria-expanded="true"] {
  color: #fff !important;
  background-color: black !important;
  border-color: black !important;
}

/* تأثير عند التركيز */
.btn-custom2:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

/* الزر المعطل */
.btn-custom2.disabled,
.btn-custom2:disabled {
  color: rgba(0, 0, 0, 0.5);        /* أسود شفاف */
  border-color: rgba(0, 0, 0, 0.5); /* أسود شفاف */
  cursor: not-allowed;
  opacity: 1; /* نثبت الشفافية نفسها */
}
