.btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: #ecf0f1;
    color: #2c3e50;
    cursor: pointer;
    font-size: 14px;
}
.btn:hover {
    background: #dde4e6;
}
.muted {
    color: #888;
}
.inline-form {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
.period-date-group {
    display: none;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay[hidden] {
    display: none;
}
.modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.modal-text {
    margin: 0 0 16px;
    line-height: 1.4;
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f6f7;
    color: #222;
}
header {
    background: #2c3e50;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
header .brand {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    margin-right: 16px;
}
header a {
    color: #d5dce4;
    text-decoration: none;
    margin-right: 14px;
}
header a:hover {
    color: #fff;
}
main {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}
h1 {
    font-size: 22px;
}
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
th {
    background: #ecf0f1;
}
form {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}
input, select, textarea {
    margin: 4px 4px 4px 0;
    padding: 6px;
}
.btn {
    display: inline-block;
    background: #2980b9;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.btn:hover {
    background: #2471a3;
}
.btn-danger {
    background: #c0392b;
}
.btn-danger:hover {
    background: #a93226;
}
.stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
    flex: 1;
    min-width: 160px;
    border: 1px solid #e0e0e0;
}
.stat-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #555;
}
.stat-card .value {
    font-size: 24px;
    font-weight: bold;
}
.error {
    color: #c0392b;
}
.muted {
    color: #777;
}
.field-content {
    width: 100%;
    box-sizing: border-box;
}
