.da-wrapper {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    padding: 20px;
}

.da-wrapper * {
    box-sizing: border-box;
}

.da-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.da-wrapper .header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.da-wrapper .header h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: white;
}

.da-wrapper .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.da-wrapper .action-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
}

.da-wrapper .action-btn:hover {
    background: white;
    color: #2d3748;
}

.da-wrapper .date-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.da-wrapper .date-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.da-wrapper .current-date {
    font-weight: 700;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 8px;
}

.da-wrapper .main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

@media (min-width: 768px) {
    .da-wrapper .main-content {
        grid-template-columns: 1fr 1fr;
    }
    .da-wrapper .cashout-section, .da-wrapper .grand-total-section {
        grid-column: 1 / -1;
    }
}

.da-wrapper .section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.da-wrapper .section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #cbd5e0;
}

.da-wrapper .sell-section .section-header { border-color: #48bb78; }
.da-wrapper .purchase-section .section-header { border-color: #f56565; }
.da-wrapper .cashout-section .section-header { border-color: #ed8936; }

.da-wrapper .section-title {
    font-size: 1.3em;
    font-weight: 700;
}

.da-wrapper .entry-form {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.da-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.da-wrapper input, .da-wrapper select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
}

.da-wrapper .add-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.da-wrapper .add-btn:active { transform: scale(0.98); }

.da-wrapper .sell-section .add-btn { background: #48bb78; }
.da-wrapper .purchase-section .add-btn { background: #f56565; }
.da-wrapper .cashout-section .add-btn { background: #ed8936; }

.da-wrapper .payment-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.da-wrapper .payment-card {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.da-wrapper .payment-label { font-size: 0.8em; color: #718096; }
.da-wrapper .payment-value { font-weight: 700; font-size: 1.1em; }

.da-wrapper .entries-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.da-wrapper .entry-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.da-wrapper .entry-name { font-weight: 600; }
.da-wrapper .entry-amount { font-weight: 700; color: #2d3748; }

.da-wrapper .delete-btn {
    background: #feb2b2;
    color: #9b2c2c;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
}

.da-wrapper .total-box {
    background: #2d3748;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.da-wrapper .grand-total-section {
    background: #1a202c;
    color: white;
    padding: 25px;
    border-radius: 15px;
}

.da-wrapper .toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.da-wrapper .toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.da-wrapper .toggle-switch {
    width: 44px;
    height: 24px;
    background: #4a5568;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.da-wrapper .toggle-switch.active { background: #48bb78; }

.da-wrapper .toggle-slider {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: 0.3s;
}

.da-wrapper .toggle-switch.active .toggle-slider { left: 23px; }

.da-wrapper .grand-total-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.da-wrapper .total-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.da-wrapper .total-value { font-size: 1.4em; font-weight: 700; }

.da-wrapper .final-total {
    background: #48bb78;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.da-wrapper .final-total-value { font-size: 2.5em; font-weight: 800; }

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

.da-wrapper .modal.active { display: flex; }

.da-wrapper .modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    padding: 30px;
}

.da-wrapper .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.da-wrapper .close-btn {
    background: #e2e8f0;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.da-wrapper .payment-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.da-wrapper .cash-badge { background: #c6f6d5; color: #22543d; }
.da-wrapper .online-badge { background: #bee3f8; color: #1a365d; }
.da-wrapper .pending-badge { background: #feebc8; color: #7c2d12; }
.da-wrapper .kharch-badge { background: #fed7d7; color: #742a2a; }
.da-wrapper .advance-badge { background: #e9d8fd; color: #44337a; }

/* P&L Dashboard Table Styles */
.pl-dashboard table {
    border-collapse: separate;
    border-spacing: 0;
}

.pl-dashboard th {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8em;
    border-bottom: 2px solid #e2e8f0;
}

.pl-dashboard tr:hover td {
    background-color: #f1f5f9;
}

.pl-dashboard td {
    transition: background-color 0.2s;
}

.pl-dashboard .summary-card {
    transition: transform 0.3s ease;
}

.pl-dashboard .summary-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .pl-dashboard table {
        font-size: 0.75em;
    }
    .pl-dashboard th, .pl-dashboard td {
        padding: 5px !important;
    }
}
