/* ═══════════════════════════════════════════
   CIMUS-APK | Navy Blue + White Theme
   Professional Business Management System
═══════════════════════════════════════════ */

:root {
  --navy: #1a2744;
  --navy-dark: #111c36;
  --accent: #2563eb;
  --white: #ffffff;
  --bg: #f1f5f9;
  --border: #e2e8f0;
  --muted: #94a3b8;
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #d97706;
  --sidebar-w: 240px;
  --r: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--navy);
  margin: 0;
  overflow-x: hidden;
}

/* ═══ LOGIN SCREEN ═══ */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.login-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-logo {
  width: 80px;
  margin-bottom: 20px;
  border-radius: var(--r);
}

.login-card h1 {
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--navy);
}

.login-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.login-footer {
  margin-top: 30px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ═══ APP LAYOUT ═══ */
#app {
  display: flex;
  min-height: 100vh;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.sidebar-brand span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

nav {
  padding: 10px 0;
  flex: 1;
}

.nav-group {
  padding: 5px 12px;
  margin-bottom: 10px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding: 10px 12px 5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--r);
  transition: all 0.2s;
}

.nav-link i {
  width: 18px;
  text-align: center;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-link.active {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
}

.sidebar-logout {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(220,38,38,0.15);
  color: #fca5a5;
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sidebar-logout:hover {
  background: rgba(220,38,38,0.3);
  color: #fff;
}

/* ═══ MAIN AREA ═══ */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: var(--white);
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.topbar-brand {
  flex-shrink: 0;
}

.topbar-brand-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.1;
}

.topbar-brand-sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.topbar-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

#page-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1a2744, #243b6a);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(26,39,68,0.3);
}

.timer-icon {
  font-size: 12px;
  opacity: 0.8;
}

.badge-timer {
  background: none;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  border: none;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

#topbar-user {
  font-size: 14px;
  font-weight: 600;
}

.btn-logout-top {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: color 0.2s;
}

.btn-logout-top:hover {
  color: var(--danger);
}

/* ═══ DASHBOARD HEADER ═══ */
.dash-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #243b6a 100%);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26,39,68,0.3);
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.2);
}

.dash-org-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.dash-sys-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.dash-sys-sub {
  font-size: 11.5px;
  opacity: 0.6;
  font-style: italic;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-user-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.dash-user-name {
  font-weight: 700;
  font-size: 14px;
}

.dash-user-info {
  font-size: 11.5px;
  opacity: 0.65;
}

.dash-stat-cards {
  grid-template-columns: repeat(6, 1fr) !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-panel {
  border-left: 3px solid var(--accent);
}

.panel-count {
  background: var(--accent);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ═══ TICKER (bottom of dashboard) ═══ */
#ticker-bar {
  background: var(--accent);
  color: var(--white);
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  overflow: hidden;
  border-radius: var(--r);
  margin-top: 16px;
}

.ticker-label {
  background: var(--navy);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  z-index: 2;
  border-radius: var(--r) 0 0 var(--r);
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 30s linear infinite;
  font-size: 12.5px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ═══ CONTENT ═══ */
.content {
  padding: 24px;
  flex: 1;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ═══ COMPONENTS ═══ */
.panel {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.panel-body {
  padding: 20px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

/* ═══ TABLES ═══ */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 15px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--navy);
}

tr:hover td {
  background: #f8fafc;
}

/* ═══ FORMS ═══ */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--muted);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ═══ MODALS ═══ */
.modal-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-ov.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 12px;
  padding: 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-large {
  max-width: 900px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--danger);
}

/* ═══ CONSENT ═══ */
.consent-box {
  max-width: 96vw;
  width: 900px;
  max-height: 92vh;
  padding: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px;
}
.consent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.consent-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.consent-identity {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
}
.consent-perjanjian-header {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--navy);
  padding: 16px 28px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.consent-terms {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 28px;
  font-size: 12.5px;
  line-height: 1.7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.consent-item {
  display: flex;
  gap: 14px;
  margin-bottom: 2px;
  padding: 12px 0;
  border-left: 3px solid #e2e8f0;
  padding-left: 14px;
}
.consent-item:nth-child(n+3) {
  border-top: 1px solid #f1f5f9;
}
.consent-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.consent-item-body {
  flex: 1;
}
.consent-item-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 3px;
}
.consent-warning {
  margin: 0 28px 16px;
  padding: 12px 16px;
  background: #fef9ee;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #78350f;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent-warning i {
  color: #f59e0b;
  margin-top: 2px;
  font-size: 14px;
}
.consent-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  cursor: pointer;
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.consent-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}
.consent-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}
.consent-btn-reject {
  background: #fff;
  border: 2px solid #dc2626;
  color: #dc2626;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.consent-btn-reject:hover {
  background: #dc2626;
  color: #fff;
}
.consent-btn-agree {
  background: #3b82f6;
  color: #fff;
  border: 2px solid #3b82f6;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.consent-btn-agree:hover:not(:disabled) {
  background: #2563eb;
  border-color: #2563eb;
}
.consent-btn-agree:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-avatar-circle {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

/* ═══ TABS ═══ */
.tab-nav {
  display: flex;
  border-bottom: 3px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}

.tab-btn {
  padding: 14px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--navy);
  background: rgba(0,0,0,0.02);
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
  background: rgba(37,99,235,0.04);
}

.tab-btn i {
  font-size: 13px;
}

.katalog-section {
  margin-bottom: 20px;
}

.katalog-section-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--r) var(--r) 0 0;
  font-weight: 700;
  font-size: 13px;
}

.katalog-section-header .katalog-actions {
  display: flex;
  gap: 6px;
}

.katalog-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s;
}

.katalog-item:hover {
  background: #f8fafc;
}

.katalog-item:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--r) var(--r);
}

.katalog-item .kod-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  margin-right: 16px;
  min-width: 90px;
  text-align: center;
}

.katalog-item .item-nama {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.katalog-item .item-kumpulan {
  color: var(--muted);
  font-size: 13px;
  margin-right: 16px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--navy);
}

.platform-badge i {
  font-size: 11px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 56px;
  color: var(--muted);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.kumpulan-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

/* ═══ TOAST ═══ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
}

.toast {
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--r);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  border-left: 4px solid var(--accent);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ═══ BADGES ═══ */
.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }

.section-header {
  background: linear-gradient(135deg, var(--navy) 0%, #243b5e 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  margin: 16px 0 10px;
  letter-spacing: 0.5px;
}
.section-header i {
  margin-right: 8px;
}
.owner-card {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.owner-card-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.arahan-item {
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: var(--white);
  border-left: 4px solid var(--border);
  transition: all 0.3s;
  font-size: 13px;
}

.arahan-item.status-terima {
  border-left-color: var(--danger);
  background: #fff5f5;
  animation: blink-red 1.2s ease-in-out infinite;
}

.arahan-item.status-dalam_proses {
  border-left-color: #eab308;
  background: #fefce8;
}

.arahan-item.status-susulan {
  border-left-color: #f97316;
  background: #fff7ed;
}

.arahan-item.status-selesai {
  border-left-color: var(--success);
  background: #f0fdf4;
}

@keyframes blink-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.tahap-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tahap-penting {
  background: #fee2e2;
  color: #991b1b;
}

.tahap-segera {
  background: #ffedd5;
  color: #9a3412;
}

.tahap-biasa {
  background: #e0f2fe;
  color: #075985;
}

.tahap-info {
  background: #f1f5f9;
  color: #64748b;
}

.status-action-btn {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.status-action-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.arahan-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.arahan-meta small {
  color: var(--muted);
  font-size: 11px;
}

/* ═══ EXPIRY ALERT ═══ */
.exp-item {
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 8px;
  border-left: 4px solid #10b981;
  background: #fff;
  transition: all 0.2s;
}
.exp-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.exp-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.exp-item-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.exp-merah {
  border-left-color: #dc2626;
  background: #fef2f2;
}
.exp-oren {
  border-left-color: #f97316;
  background: #fff7ed;
}
.exp-kuning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.exp-hijau {
  border-left-color: #10b981;
  background: #f0fdf4;
}
.exp-blink {
  animation: blink-exp 1.2s ease-in-out infinite;
}
@keyframes blink-exp {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.exp-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.exp-tag-merah {
  background: #dc2626;
  color: #fff;
}
.exp-tag-oren {
  background: #f97316;
  color: #fff;
}
.exp-tag-kuning {
  background: #f59e0b;
  color: #fff;
}
.exp-tag-hijau {
  background: #10b981;
  color: #fff;
}

/* ═══ PAKEJ JENIS LIST ═══ */
.pakej-kumpulan-group {
  border-bottom: 2px solid var(--border);
}
.pakej-kumpulan-header {
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.pakej-jenis-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.pakej-jenis-label:hover {
  background: #f0f4ff;
}
.pakej-jenis-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

/* ═══ KREDENSIAL ═══ */
.kred-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.kred-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.kred-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kred-kategori-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.kred-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.kred-field:last-child {
  border-bottom: none;
}
.kred-field-label {
  color: var(--muted);
  min-width: 80px;
  font-size: 12px;
}
.kred-field-value {
  font-weight: 600;
  flex: 1;
  word-break: break-all;
}
.kred-pw-mask {
  letter-spacing: 3px;
  color: var(--muted);
}
.btn-icon-sm {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--navy);
  transition: all 0.15s;
}
.btn-icon-sm:hover {
  background: var(--navy);
  color: #fff;
}
.kred-actions {
  display: flex;
  gap: 4px;
}
.kred-client-header {
  background: linear-gradient(135deg, var(--navy), #2d3a5c);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kred-add-form {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}
