.assocledger-root {
    max-width: 900px;
    margin: 20px auto;
    background: #FFFDF7;
    border: 1px solid #E8D4B0;
    border-radius: 10px;
    padding: 18px;
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #3a2c1a;
}

.al-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #E8D4B0;
    padding-bottom: 12px;
}

.al-tab-btn {
    background: #FFF6E8;
    border: 1px solid #C97A1E;
    color: #A6531A;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.al-tab-btn.active,
.al-tab-btn:hover {
    background: #C97A1E;
    color: #FFFDF7;
}

.al-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #A6531A;
    margin: 10px 0 14px;
}

.al-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.al-field { display: flex; flex-direction: column; gap: 4px; }
.al-field.full { grid-column: 1 / -1; }

.al-field label {
    font-weight: 700;
    color: #3a2c1a;
    font-size: 13px;
}

.al-field input,
.al-field select,
.al-field textarea {
    border: 1px solid #D8B888;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: 15px;
    font-weight: 700;
    color: #3a2c1a;
    background: #FFFFFF;
}

.al-field input:focus,
.al-field select:focus,
.al-field textarea:focus {
    background: #FFF9C4;
    outline: none;
    border-color: #C97A1E;
}

.al-field textarea { min-height: 70px; resize: vertical; }

.al-btn {
    background: #C97A1E;
    color: #FFFDF7;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
.al-btn:hover { background: #A6531A; }

.al-btn.al-btn-green { background: #3E8E41; }
.al-btn.al-btn-green:hover { background: #2E6E31; }
.al-btn.al-btn-orange { background: #E08A00; }
.al-btn.al-btn-orange:hover { background: #B86D00; }
.al-btn.al-btn-red { background: #C0392B; }
.al-btn.al-btn-red:hover { background: #98281D; }
.al-btn.al-btn-small { padding: 6px 12px; font-size: 12px; }

.al-msg { padding: 10px 12px; border-radius: 6px; font-weight: 700; margin-bottom: 12px; font-size: 14px; }
.al-msg.success { background: #E4F5E4; color: #2E6E31; border: 1px solid #3E8E41; }
.al-msg.error { background: #FBE4E1; color: #98281D; border: 1px solid #C0392B; }

.al-pin-box {
    max-width: 260px;
    margin: 30px auto;
    text-align: center;
}
.al-pin-box input {
    text-align: center;
    letter-spacing: 6px;
    font-size: 20px;
}

/* Stat boxes */
.al-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.al-stat-box {
    background: #FFF6E8;
    border: 1px solid #E8D4B0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.al-stat-box .al-stat-label { font-size: 12px; color: #A6531A; font-weight: 700; }
.al-stat-box .al-stat-value { font-size: 18px; font-weight: 700; color: #3a2c1a; margin-top: 4px; }

/* Filter bar */
.al-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}
.al-filter-bar select,
.al-filter-bar input[type="text"] {
    border: 1px solid #D8B888;
    border-radius: 6px;
    padding: 7px 10px;
    font-weight: 700;
    color: #3a2c1a;
}

/* Table */
.al-table-wrap { overflow-x: auto; }
table.al-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}
table.al-table th {
    background: #FFF6E8;
    color: #A6531A;
    font-weight: 700;
    font-size: 13px;
    padding: 8px;
    border-bottom: 2px solid #E8D4B0;
    text-align: left;
    white-space: nowrap;
}
table.al-table td {
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #3a2c1a;
    border-bottom: 1px solid #F0E4CC;
    word-break: break-word;
}
table.al-table tr:hover { background: #FFFBEE; }

.al-badge { padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.al-badge.charges { background: #FBE4E1; color: #98281D; }
.al-badge.payment { background: #E4F5E4; color: #2E6E31; }

.al-row-actions { display: flex; gap: 6px; }

.al-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }

.al-edit-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: #FFF9C4;
    padding: 8px;
    border-radius: 6px;
}

@media (max-width: 640px) {
    .al-form-grid { grid-template-columns: 1fr; }
    .al-stats { grid-template-columns: repeat(2, 1fr); }
}
