* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f6fa; color: #2c3e50; min-height: 100vh; }
.container { max-width: 480px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
p { font-size: 14px; color: #7f8c8d; margin-bottom: 8px; }
label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 15px; margin-bottom: 12px; transition: border-color 0.2s; background: #fff; }
input:focus, select:focus { border-color: #3498db; outline: none; }
.btn { display: block; width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; transition: opacity 0.2s; }
.btn:active { opacity: 0.8; }
.btn-primary { background: #3498db; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #3498db; color: #3498db; }
.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; display: inline-block; }
.btn-block + .btn-block { margin-top: 8px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #95a5a6; }
.text-success { color: #27ae60; }
.text-danger { color: #e74c3c; }
.text-warning { color: #f39c12; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 8px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stat-box { background: #f8f9fa; border-radius: 10px; padding: 16px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: #2c3e50; }
.stat-label { font-size: 12px; color: #7f8c8d; margin-top: 4px; }

.header { background: #2c3e50; color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.header-title { font-size: 18px; font-weight: 700; }
.header-user { font-size: 13px; opacity: 0.8; }
.nav-bar { background: #fff; border-top: 1px solid #eee; position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 8px 0; box-shadow: 0 -2px 8px rgba(0,0,0,0.05); max-width: 480px; margin: 0 auto; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 16px; color: #95a5a6; text-decoration: none; font-size: 11px; cursor: pointer; border: none; background: none; }
.nav-item.active { color: #3498db; }
.nav-icon { font-size: 22px; line-height: 1; }
.page { padding-bottom: 80px; }

.alert { padding: 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.alert-error { background: #fde8e8; color: #c0392b; }
.alert-success { background: #e8f8f0; color: #27ae60; }
.alert-info { background: #e8f4fd; color: #2980b9; }

.report-period { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8f9fa; border-radius: 8px; margin-bottom: 8px; }
.report-period .period-label { font-weight: 600; min-width: 80px; }
.report-status { margin-left: auto; font-size: 13px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #eee; }
th { font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; padding: 24px; }
.modal h2 { margin-bottom: 16px; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-success { background: #e8f8f0; color: #27ae60; }
.badge-warning { background: #fef5e7; color: #f39c12; }
.badge-danger { background: #fde8e8; color: #e74c3c; }
.badge-info { background: #e8f4fd; color: #2980b9; }

.admin-page .container { max-width: 100%; padding: 20px 24px; }
.admin-page .header { max-width: 100%; border-radius: 0; }
.admin-page .nav-bar { max-width: 100%; position: static; border-top: 1px solid #eee; box-shadow: none; }
.admin-page .page { padding-bottom: 24px; }
.admin-page .stat-box { padding: 20px; }
.admin-page .stat-value { font-size: 32px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: #f8f9fa; padding: 10px 12px; text-align: left; font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; border-bottom: 2px solid #dee2e6; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: middle; }
.data-table tr:hover td { background: #f8f9fa; }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.table-card { padding: 0; overflow-x: auto; }
.table-card .data-table { border: none; }
.table-card .data-table th:first-child { padding-left: 20px; }
.table-card .data-table td:first-child { padding-left: 20px; }
.table-card .data-table th:last-child { padding-right: 20px; }
.table-card .data-table td:last-child { padding-right: 20px; }
.filter-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filter-bar label { margin-bottom: 2px; white-space: nowrap; }
.filter-bar input, .filter-bar select { width: auto; min-width: 150px; margin-bottom: 0; }
.filter-bar .btn { width: auto; padding: 12px 24px; margin-bottom: 0; }
.admin-header { background: linear-gradient(135deg,#2c3e50,#34495e); color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-header .header-title { font-size: 20px; }
.admin-nav { background: #fff; border-bottom: 1px solid #eee; display: flex; gap: 0; padding: 0 24px; }
.admin-nav .nav-item { flex-direction: row; gap: 6px; padding: 12px 20px; font-size: 13px; border-bottom: 2px solid transparent; color: #7f8c8d; }
.admin-nav .nav-item.active { color: #3498db; border-bottom-color: #3498db; }
.admin-nav .nav-icon { font-size: 16px; }
.collector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 768px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input, .filter-bar select { width: 100%; min-width: 0; }
  .filter-bar .btn { width: 100%; }
  .collector-grid { grid-template-columns: 1fr; }
}
