* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    background: #f5f5f5;
    padding: 20px;
}

.container { max-width: 1200px; margin: 0 auto; }

h2 { margin-bottom: 16px; color: #333; }

.filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; color: #666; }

.filter-divider {
    color: #999;
    font-size: 12px;
    padding-bottom: 6px;
}

select, input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    height: 34px;
}

button {
    padding: 6px 16px;
    height: 34px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#searchBtn { background: #4CAF50; color: #fff; }
#searchBtn:hover { background: #43a047; }
#clearBtn { background: #e0e0e0; color: #333; }
#clearBtn:hover { background: #bdbdbd; }

#status { margin-bottom: 8px; color: #888; font-size: 13px; min-height: 18px; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

th, td { padding: 8px 12px; border-bottom: 1px solid #e0e0e0; text-align: left; }

th {
    background: #4CAF50;
    color: #fff;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th:hover { background: #43a047; }
th.sort-asc::after  { content: ' ▲'; font-size: 11px; }
th.sort-desc::after { content: ' ▼'; font-size: 11px; }

tr:nth-child(even) { background: #f9f9f9; }
.actions button { margin: 0 2px; padding: 4px 8px; font-size: 12px; }
.actions button:disabled { opacity: 0.5; cursor: not-allowed; }

input.editing { width: 100%; border: 2px solid #4CAF50; padding: 4px; }
