* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f3f6fb; color: #18202a; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #0f172a; color: #fff; padding: 24px 18px; }
.brand { font-size: 20px; font-weight: 700; margin-bottom: 28px; }
.nav-list { display: flex; flex-direction: column; gap: 8px; }
.nav-list a { color: #cbd5e1; padding: 10px 12px; border-radius: 10px; }
.nav-list a.active, .nav-list a:hover { background: #1e293b; color: #fff; text-decoration: none; }
.main-content { padding: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.topbar h1 { margin: 0 0 4px 0; font-size: 28px; }
.muted { margin: 0; color: #64748b; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-chip { background: #fff; border: 1px solid #dbe3ef; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.user-chip small { color: #64748b; }
.notice { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.notice.success { background: #e8f8ef; color: #166534; border: 1px solid #b7e4c7; }
.notice.error { background: #fdecec; color: #991b1b; border: 1px solid #f5c2c2; }
.card, .stat-card { background: #fff; border: 1px solid #dbe3ef; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card span { display: block; color: #64748b; margin-bottom: 8px; }
.stat-card strong { font-size: 30px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; }
.page-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.form-card { max-width: 1100px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.form-group.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cdd8e6; border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-secondary { background: #e2e8f0; color: #0f172a; }
.btn-danger { background: #dc2626; color: #fff; }
.w-full { width: 100%; }
.inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: #dc2626; cursor: pointer; font: inherit; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge.active, .badge.available, .badge.new { background: #dcfce7; color: #166534; }
.badge.inactive, .badge.cancelled { background: #fee2e2; color: #991b1b; }
.badge.in_use, .badge.in_progress, .badge.planned { background: #dbeafe; color: #1d4ed8; }
.badge.maintenance, .badge.done { background: #fef3c7; color: #92400e; }
.clean-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.login-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 420px; }
.footer { color: #64748b; font-size: 14px; margin-top: 24px; }
table.dataTable thead th, table.dataTable tbody td { white-space: nowrap; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 10px; }
  .grid-2-col, .form-grid { grid-template-columns: 1fr; }
}
