/* Main Container */
.iet-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: #333;
}

/* Form Styling */
.iet-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.iet-form h3 {
    margin-top: 0;
    color: #097969;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #097969;
    font-weight: 600;
}

.iet-form-group {
    margin-bottom: 15px;
}

.iet-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.iet-form-group select,
.iet-form-group input[type="number"],
.iet-form-group input[type="text"],
.iet-form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.iet-btn {
    background-color: #097969;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.iet-btn:hover {
    background-color: #075e4b;
}

/* Tabs */
.iet-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.iet-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-right: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.iet-tab-btn.active {
    color: #097969;
    border-bottom-color: #097969;
    font-weight: 600;
}

.iet-tab-content {
    display: none;
}

.iet-tab-content.active {
    display: block;
}

/* Filters */
.iet-filters, .iet-date-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.iet-filters input, 
.iet-filters select,
.iet-date-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* Tables */
.iet-table, .iet-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iet-table th, 
.iet-table td,
.iet-history-table th,
.iet-history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
}

.iet-table th,
.iet-history-table th {
    background-color: #097969;
    color: white;
    font-weight: 500;
}

.iet-table tbody tr:hover,
.iet-history-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Delete Button */
.iet-delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.iet-delete-btn:hover {
    background-color: #c0392b;
}

/* Summary */
.iet-summary {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.iet-summary-title {
    margin-top: 0;
    color: #097969;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #097969;
    font-weight: 600;
    text-decoration: underline;
}

.iet-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 500;
}

.iet-filtered-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #097969;
}

.iet-profit {
    color: #27ae60;
}

.iet-loss {
    color: #e74c3c;
}

.iet-amount-words {
    font-style: italic;
    color: #555;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

/* Graph Container */
.iet-graph-container {
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iet-container {
        padding: 15px;
    }
    
    .iet-form-group {
        margin-bottom: 10px;
    }
    
    .iet-filters, .iet-date-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .iet-table, .iet-history-table {
        display: block;
        overflow-x: auto;
    }
    
    .iet-summary-item {
        flex-direction: column;
    }
    
    .iet-summary-item span:last-child {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .iet-tabs {
        flex-direction: column;
    }
    
    .iet-tab-btn {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .iet-form {
        padding: 15px;
    }
    
    .iet-graph-container {
        height: 300px;
    }
    
    .iet-table td, .iet-history-table td {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    .iet-delete-btn {
        padding: 3px 6px;
        font-size: 12px;
    }
    
    .iet-summary-item {
        font-size: 18px;
    }
}