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

.navbar { background: #2c3e50; color: #fff; padding: 12px 24px; display: flex;
          align-items: center; gap: 24px; justify-content: space-between; }
.navbar .brand { color: #fff; 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: 1200px; 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: #2c3e50; }
h3 { margin: 24px 0 12px; color: #34495e; }

.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: 14px; }
.table th { background: #f8fafc; font-weight: 600; color: #555; }
.table tr:hover { background: #f9fbfd; }
.table tr.total td, .table tr.total th { background: #e8f5e9; font-size: 15px; }

.btn { display: inline-block; padding: 8px 14px; background: #dfe4ea; color: #333;
       border-radius: 6px; text-decoration: none; border: none; cursor: pointer;
       font-size: 14px; }
.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: 12px; }

.form-card { background: #fff; padding: 20px; border-radius: 8px;
             box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.form-card .grid { display: grid;
                   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
                   gap: 14px; margin-bottom: 14px; }
.form-card label { display: flex; flex-direction: column; font-size: 13px;
                   color: #555; gap: 4px; }
.form-card input, .form-card select, .form-card textarea {
    padding: 8px 10px; border: 1px solid #ccd1d9; border-radius: 6px;
    font-size: 14px; font-family: inherit;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    outline: none; border-color: #3498db;
}
.form-card textarea { width: 100%; margin-bottom: 12px; }

.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; }

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

.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; }

.info-umkm { background: #e3f2fd; color: #1565c0; padding: 8px 14px;
             border-radius: 6px; margin-bottom: 14px; font-size: 13px;
             display: inline-block; }

.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; }
.alert-success a { color: #1b5e20; font-weight: 600; }

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

/* ============ SUMMARY CARD (Laba/Rugi) ============ */
.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-kotor { border-left-color: #9b59b6; }
.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; }

/* ============ SHORTCUT GRID ============ */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.shortcut {
    background: #fff;
    padding: 18px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    border: 2px solid transparent;
}
.shortcut:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52,152,219,.15);
}
.shortcut .icon {
    font-size: 28px;
}
.shortcut .text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}