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

.navbar { background: #1a252f; color: #fff; padding: 12px 24px; display: flex;
          align-items: center; gap: 24px; justify-content: space-between; }
.navbar .brand { color: #f39c12; font-weight: bold; font-size: 18px; text-decoration: none; }
.navbar ul { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; }
.navbar a { color: #ecf0f1; text-decoration: none; padding: 6px 10px;
            border-radius: 4px; font-size: 14px; }
.navbar a:hover { background: #34495e; }

.user-info { display: flex; align-items: center; gap: 10px;
             font-size: 13px; color: #ecf0f1; }
.user-info .user-name { font-weight: 600; }
.btn-logout { background: #e74c3c; color: #fff !important; padding: 5px 12px;
              border-radius: 6px; font-size: 12px; text-decoration: none; }
.btn-logout:hover { background: #c0392b; }

.container { max-width: 1300px; margin: 24px auto; padding: 0 16px; }
.page-header { display: flex; justify-content: space-between; align-items: center;
               margin-bottom: 16px; }
h2 { margin-bottom: 16px; color: #1a252f; }
h3 { margin: 24px 0 12px; color: #34495e; }
.welcome-text { color: #666; margin-bottom: 20px; }

.table { width: 100%; border-collapse: collapse; background: #fff;
         border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.table th, .table td { padding: 10px 12px; text-align: left;
                       border-bottom: 1px solid #eaecef; font-size: 13px; }
.table th { background: #f8fafc; font-weight: 600; color: #555; }
.table tr:hover { background: #f9fbfd; }
.table tr.total { background: #fff8e1; font-weight: 600; }

.btn { display: inline-block; padding: 8px 14px; background: #dfe4ea; color: #333;
       border-radius: 6px; text-decoration: none; border: none; cursor: pointer;
       font-size: 13px; }
.btn:hover { background: #cdd3d9; }
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 4px 8px; font-size: 11px; }

.form-card { background: #fff; padding: 20px; border-radius: 8px;
             box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.form-card label { display: flex; flex-direction: column; font-size: 13px;
                   color: #555; gap: 4px; margin-bottom: 14px; }
.form-card input { padding: 8px 10px; border: 1px solid #ccd1d9;
                   border-radius: 6px; font-size: 14px; }

.filter-box { background: #fff; padding: 16px 20px; border-radius: 8px;
              box-shadow: 0 2px 6px rgba(0,0,0,.08); margin-bottom: 20px;
              display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-box label { display: flex; flex-direction: column; font-size: 12px;
                    color: #555; gap: 4px; }
.filter-box input, .filter-box select {
    padding: 7px 10px; border: 1px solid #ccd1d9; border-radius: 6px; font-size: 13px;
}

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 14px; margin-bottom: 24px; }
.summary-card { background: #fff; padding: 16px 18px; border-radius: 8px;
                box-shadow: 0 2px 6px rgba(0,0,0,.08); border-left: 4px solid #ccc; }
.summary-card.pendapatan  { border-left-color: #3498db; }
.summary-card.hpp         { border-left-color: #f39c12; }
.summary-card.pengeluaran { border-left-color: #e74c3c; }
.summary-card.laba-bersih { border-left-color: #27ae60; background: #f0fff4; }
.summary-card .label { font-size: 12px; color: #888; text-transform: uppercase;
                       letter-spacing: .5px; margin-bottom: 6px; display: block; }
.summary-card .value { font-size: 20px; font-weight: bold; color: #2c3e50; }
.summary-card.laba-bersih .value { color: #27ae60; }
.summary-card .value.negative { color: #c62828; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
         gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; padding: 18px; border-radius: 8px;
             box-shadow: 0 2px 6px rgba(0,0,0,.08); display: flex;
             flex-direction: column; gap: 6px; }
.stat-label { font-size: 12px; color: #888; }
.stat-value { font-size: 24px; font-weight: bold; color: #1a252f; }

.info-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
              gap: 14px; background: #fff; padding: 16px 20px; border-radius: 8px;
              box-shadow: 0 2px 6px rgba(0,0,0,.08); margin-bottom: 20px; }
.info-login > div { display: flex; flex-direction: column; gap: 4px; }
.info-login .label { font-size: 11px; text-transform: uppercase; color: #888;
                     letter-spacing: .5px; }
.info-login strong { color: #2c3e50; }

.badge { padding: 3px 8px; border-radius: 10px; font-size: 11px;
         font-weight: 600; text-transform: uppercase; }
.badge.aktif { background: #e8f5e9; color: #2e7d32; }
.badge.nonaktif { background: #fbe9e7; color: #c62828; }
.badge.tipe-pendapatan  { background: #e3f2fd; color: #1565c0; }
.badge.tipe-pengeluaran { background: #fbe9e7; color: #c62828; }
.badge.tipe-hpp         { background: #fff8e1; color: #f57f17; }
.badge.role-owner       { background: #ede7f6; color: #4527a0; }
.badge.role-admin       { background: #e1f5fe; color: #0277bd; }
.badge.role-kasir       { background: #e8f5e9; color: #2e7d32; }
.badge.role-staff       { background: #eceff1; color: #455a64; }
.badge.role-superadmin  { background: linear-gradient(135deg,#f39c12,#e67e22);
                          color: #fff; font-weight: 700; }

.alert { background: #fbe9e7; color: #c62828; padding: 12px;
         border-radius: 6px; font-size: 13px; margin-bottom: 18px; }
.alert-success { background: #e8f5e9; color: #2e7d32; padding: 14px 18px;
                 border-radius: 8px; border-left: 4px solid #4caf50;
                 margin-bottom: 20px; font-size: 14px; }

.footer { text-align: center; padding: 20px; color: #888;
          font-size: 13px; margin-top: 40px; }

@media print {
    .navbar, .footer, .no-print, .btn { display: none !important; }
    .container { max-width: 100%; margin: 0; padding: 0; }
    .table { box-shadow: none; border: 1px solid #ddd; }
}