body { margin: 0; font-family: Inter, Arial, sans-serif; background: #f4f6f8; color: #202124; }
a { color: inherit; text-decoration: none; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #e3e8ef; border-radius: 8px; box-sizing: border-box; background: #fff; }
button { border: none; border-radius: 8px; padding: 10px 14px; background: #11a8a7; color: #fff; cursor: pointer; font-weight: 600; }
.btn-secondary { background: #fff; color: #202124; border: 1px solid #e3e8ef; }
.error { color: #d93025; font-size: 13px; }
.success { color: #188038; font-size: 13px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #eceff4; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08); }
.auth-logo { text-align: center; font-size: 26px; color: #11a8a7; font-weight: 800; margin-bottom: 8px; text-transform: lowercase; }
.auth-sub { text-align: center; margin: 0 0 20px; color: #6b7280; font-size: 14px; }
.auth-card form { display: grid; gap: 10px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e8ecf3; display: flex; flex-direction: column; }
.brand { padding: 18px 16px; font-weight: 800; color: #11a8a7; text-transform: lowercase; border-bottom: 1px solid #eef2f7; }
.menu { padding: 10px 8px; display: grid; gap: 3px; }
.menu-item { padding: 10px 12px; border-radius: 8px; color: #4b5563; font-size: 14px; }
.menu-item.active, .menu-item:hover { background: #e7f7f7; color: #0f172a; }
.sidebar-user { margin-top: auto; padding: 14px; border-top: 1px solid #eef2f7; display: grid; font-size: 13px; color: #6b7280; }

.main { flex: 1; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid #e8ecf3; height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { font-size: 18px; margin: 0; }
.org-chip { background: #f8fafc; border: 1px solid #e5eaf1; border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.content { padding: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat-card, .panel { background: #fff; border: 1px solid #e7ecf2; border-radius: 12px; padding: 14px; }
.stat-card .value { font-size: 30px; font-weight: 700; margin-top: 8px; }
.panel h2 { margin: 0 0 10px; font-size: 18px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.table-wrap { background: #fff; border: 1px solid #e7ecf2; border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { font-size: 14px; text-align: left; padding: 12px; border-bottom: 1px solid #eff3f7; }
th { background: #fafbfc; color: #6b7280; font-weight: 600; }
.badge { border-radius: 999px; padding: 3px 8px; font-size: 12px; }
.badge.active, .badge.done, .badge.paid { background: #dbf5ee; color: #0f766e; }
.badge.pending { background: #fef9d8; color: #8a6d1a; }
.badge.overdue, .badge.rejected { background: #fee2e2; color: #b91c1c; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 700px; background: #fff; border-radius: 12px; border: 1px solid #e4e9f0; padding: 16px; }
.modal h3 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.mb12 { margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { width: 84px; }
  .brand { font-size: 12px; }
  .menu-item { font-size: 0; }
}
