:root {
  --color-accent: #0B6E8F;
  --color-dark: #222222;
  --color-border: #CCCCCC;
  --color-text-muted: #A8A8A8;
  --color-success: #2E7D5B;
  --color-error: #C00000;
  --color-bg: #FFFFFF;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Calibri', Arial, sans-serif;
  color: var(--color-dark);
  background: #F7F8FA;
}

.topbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-title { font-size: 18px; font-weight: 700; }

.content { padding: 24px; max-width: 1100px; margin: 0 auto; }

.module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.module-header h2 { margin: 0; font-size: 20px; }

.btn {
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-outline { background: transparent; color: var(--color-accent); }
.btn-danger { border-color: var(--color-error); color: var(--color-error); background: transparent; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-sm { padding: 6px 12px; }

.filters-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.filter-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
}

.table-wrapper {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
th { background: #F0F2F4; font-weight: 700; color: var(--color-dark); }
tr:last-child td { border-bottom: none; }

.badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-ok { background: #E4F3EC; color: var(--color-success); }
.badge-off { background: #F0F0F0; color: var(--color-text-muted); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
}
.form-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--color-accent); margin: 16px 0 8px; }
.req { color: var(--color-error); }
.error-message { color: var(--color-error); font-size: 13px; margin-top: 8px; }
.error-message.hidden { display: none; }

.hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.hidden { display: none !important; }
