* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f5f7fa; color: #2c3e50; }

.navbar { display: flex; align-items: center; justify-content: space-between;
    background: #2c3e50; color: white; padding: 12px 24px; }
.nav-brand { font-size: 18px; font-weight: bold; }
.nav-links a { color: #ecf0f1; text-decoration: none; margin: 0 12px; font-size: 14px; }
.nav-links a:hover { color: #3498db; }
.nav-user { font-size: 13px; }
.nav-user a { color: #e74c3c; margin-left: 10px; text-decoration: none; }

.container { max-width: 1400px; margin: 24px auto; padding: 0 24px; }
h1 { margin-bottom: 20px; font-size: 24px; }
h2 { margin: 24px 0 12px; font-size: 18px; }
.branch-info { color: #7f8c8d; margin-bottom: 16px; }

.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: white; padding: 14px; border-radius: 8px; margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.filters-row input, .filters-row select {
    padding: 6px 10px; border: 1px solid #d1d8e0; border-radius: 4px; }
.filters-row button { padding: 6px 16px; background: #3498db; color: white;
    border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.filters-row button:hover { background: #2980b9; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; padding: 18px; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.stat-card .label { font-size: 12px; color: #7f8c8d; margin-bottom: 8px; }
.stat-card .value { font-size: 22px; font-weight: bold; color: #27ae60; }

.chart-box { background: white; padding: 20px; border-radius: 8px;
    margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); height: 400px; }

.data-table { width: 100%; background: white; border-collapse: collapse;
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.data-table th, .data-table td { padding: 10px 12px; text-align: left;
    border-bottom: 1px solid #ecf0f1; font-size: 13px; }
.data-table th { background: #34495e; color: white; font-weight: 600; }
.data-table tbody tr:hover { background: #f8f9fa; }

.login-card { max-width: 400px; margin: 80px auto; background: white;
    padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.login-card h1 { text-align: center; margin-bottom: 8px; }
.login-card .subtitle { text-align: center; color: #7f8c8d; margin-bottom: 30px; }
.login-card label { display: block; margin-top: 16px; font-size: 13px; color: #34495e; }
.login-card input { width: 100%; padding: 10px; margin-top: 6px;
    border: 1px solid #d1d8e0; border-radius: 6px; font-size: 14px; }
.login-card button { width: 100%; margin-top: 24px; padding: 12px;
    background: #27ae60; color: white; border: none;
    border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: bold; }
.login-card button:hover { background: #219955; }
.login-card .hint { text-align: center; color: #95a5a6; font-size: 12px; margin-top: 16px; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.flash.danger { background: #ffe6e6; color: #c0392b; border: 1px solid #e74c3c; }
.flash.success { background: #e6f7ec; color: #1e8449; border: 1px solid #27ae60; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; }
.modal-content { background: white; max-width: 700px; margin: 80px auto;
    padding: 24px; border-radius: 8px; max-height: 80vh; overflow-y: auto;
    position: relative; }
.modal-content .close { position: absolute; top: 12px; right: 16px;
    font-size: 28px; cursor: pointer; color: #7f8c8d; }
.modal-content h3 { margin-top: 16px; }
