/* accounting.css */

/* Balance text colors */
.balance-positive { color: green; font-weight: bold; }
.balance-negative { color: red; font-weight: bold; }
.balance-zero { color: #6c757d; font-weight: bold; }

/* Switch */
.form-switch .form-check-input {
    width: 3em;
    margin-left: 2.5em;
}

.toggle-label {
    font-weight: 500;
    margin-right: 10px;
}

/* Denomination section */
.denomination-section {
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

/* Calculator table */
.calculator-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.calculator-table,
.calculator-table th,
.calculator-table td {
    border: 1px solid #7c2bc1;
}

.calculator-table th,
.calculator-table td {
    padding: 8px;
    text-align: left;
}

.calculator-input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.total-row {
    font-weight: bold;
    background-color: #f8f9fa;
}

.match {
    background-color: #d4edda;
}

.mismatch {
    background-color: #f8d7da;
}

/* Denomination inline */
.denomination-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.denomination-item {
    display: flex;
    align-items: center;
    border: 1px solid #7c2bc1;
    border-radius: 5px;
    padding: 5px 10px;
    background-color: #f8f9fa;
}

.denomination-label {
    margin-right: 5px;
    font-weight: 500;
}

.denomination-input {
    width: 60px;
    text-align: center;
    margin-right: 5px;
}

.denomination-value {
    font-weight: bold;
    min-width: 80px;
}

/* Tabs */
.nav-tabs .nav-link.active {
    color: #7c2bc1;
    border-color: #7c2bc1 #7c2bc1 #fff;
}

.nav-tabs .nav-link {
    color: #6c757d;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #7c2bc1;
    color: #7c2bc1;
}

/* Tables for summary */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

th,
td {
    padding: 10px;
    border: 1px solid #7c2bc1;
}

th {
    background-color: #7c2bc1;
    color: white;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

/* Difference label */
#difference {
    font-weight: bold;
    margin-top: 10px;
}

/* File upload container */
.file-upload-container {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #7c2bc1;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.file-upload-label {
    font-weight: normal;
    margin-bottom: 5px;
    color: #6c757d;
}

/* Disclaimer box */
.disclaimer-box {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.disclaimer-box h3 {
    color: #7c2bc1;
    margin-top: 0;
}

/* Details/summary */
details summary {
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    background-color: #7c2bc1;
    color: white;
    border-radius: 4px;
    margin-top: 15px;
}

details[open] summary {
    border-bottom: 1px solid #ccc;
}

details table {
    margin-top: 10px;
}

/* Popup background */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup box */
.popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

/* Progress bar */
.progress {
    width: 100%;
    height: 10px;
    background: #eee;
    margin-top: 10px;
    border-radius: 5px;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #7333EB;
    border-radius: 5px;
    transition: width 1s linear;
}
