:root {
    --primary-bg: #f5f5f5;
    --card-bg: #ffffff;
    --primary-blue: #1976d2;
    --header-black: #000000;
    --text-main: #333333;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --table-header-bg: #000000;
    --table-header-text: #ffffff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 98%;
    max-width: 98%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header */
.main-header {
    background-color: var(--card-bg);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.main-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--header-black);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs span {
    cursor: pointer;
}

.breadcrumbs span:hover {
    color: var(--primary-blue);
}

/* Card Style */
.card {
    background-color: var(--card-bg);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header-bar {
    background-color: var(--header-black);
    padding: 10px 20px;
}

.card-header-bar h2 {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-content {
    padding: 20px;
}

/* Filters */
.filters-top,
.table-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.filter-item select,
.filter-item input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
    min-width: 120px;
}

/* Buttons */
.btn-export {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid rgba(25, 118, 210, 0.5);
    color: var(--primary-blue);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 5px;
}

.btn-export:hover {
    background-color: rgba(25, 118, 210, 0.04);
    border-color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #1565c0;
}

/* Tables */
.summary-table-wrapper,
.main-table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.summary-table thead th {
    background-color: #f0f0f0;
    color: var(--text-main);
    font-weight: 700;
}

.main-table thead th {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    font-weight: 500;
    text-transform: uppercase;
}

.main-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.main-table tbody tr:hover {
    background-color: #f0f7ff;
}

.btn-detail {
    color: var(--primary-blue);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {

    .filters-top,
    .table-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .export-buttons {
        display: flex;
        justify-content: center;
    }
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 95%;
    max-width: 900px;
    margin: 0;
    padding: 0;
    animation: slideDown 0.3s ease-out;
}

.modal-header {
    background-color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 4px 0 0;
}

.modal-header h2 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    border-top: 2px solid var(--primary-blue);
    background-color: white;
    border-radius: 0 0 4px 4px;
}

.detail-item {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-item strong {
    font-weight: bold;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
