/* ==========================================================================
   JAVA.NET ISP CLOUD BILLING & OSS/BSS ENGINE - CORE STYLESHEET
   Design System: Modern Clean ISP Dashboard, Dark/Light Hybrid, Mobile-First
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  --secondary: #0f172a;
  --sidebar-bg: #1e293b;
  --sidebar-hover: #334155;
  --sidebar-active: #2563eb;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  --topbar-bg: #1e293b;
  --topbar-border: #334155;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --info: #06b6d4;
  --info-bg: #ecfeff;
  --info-border: #a5f3fc;
  --purple: #8b5cf6;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 64px;
  --footer-height: 48px;
  --transition-speed: 0.25s;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Layout Architecture */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Styles */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  transition: transform var(--transition-speed) ease, width var(--transition-speed) ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.sidebar-header,
.sidebar-brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo i {
  color: #38bdf8;
  font-size: 1.35rem;
}

.brand-tag,
.brand-version {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-user,
.sidebar-user-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  padding: 0.75rem 0.85rem !important;
  margin: 0.5rem 0.65rem 0.65rem 0.65rem !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

.sidebar-user-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: 100% !important;
}

.user-avatar-wrapper {
  display: flex !important;
  align-items: center !important;
}

.user-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  border: 2px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  flex-shrink: 0 !important;
}

.user-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.user-name {
  font-weight: 800 !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.user-role {
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 2px !important;
}

.user-status-dot {
  width: 7px !important;
  height: 7px !important;
  background-color: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8) !important;
  display: inline-block !important;
}

.sidebar-balance-box {
  background: #0b1120 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  padding: 0.45rem 0.65rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.sidebar-balance-icon {
  color: #10b981 !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
}

.sidebar-balance-text {
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
}

.btn-sidebar-topup {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  width: 100% !important;
  padding: 0.48rem 0.75rem !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.btn-sidebar-topup:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px) !important;
}

.btn-sidebar-topup:active {
  transform: translateY(0) !important;
}

.sidebar-nav,
.sidebar-menu-wrapper {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.5rem 0.5rem 2rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.sidebar-nav::-webkit-scrollbar,
.sidebar-menu-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
}

.menu-heading {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.75rem 1rem 0.35rem 1rem;
}

.nav-item {
  margin-bottom: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  position: relative;
}

.nav-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.nav-link:hover {
  background-color: var(--sidebar-hover);
  color: #ffffff;
}

.nav-link:hover i {
  color: #38bdf8;
}

.nav-link.active {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-link.active i {
  color: #ffffff;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-primary { background-color: var(--primary); color: white; }
.badge-success { background-color: var(--success); color: white; }
.badge-warning { background-color: var(--warning); color: white; }
.badge-danger  { background-color: var(--danger);  color: white; }
.badge-purple  { background-color: var(--purple);  color: white; }

/* Main Content Area */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  transition: margin-left var(--transition-speed) ease;
}

/* Topbar Header */
.app-topbar {
  height: var(--topbar-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sidebar-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s;
}

.btn-sidebar-toggle:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.topbar-search {
  position: relative;
  width: 280px;
}

.topbar-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s;
}

.topbar-search input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  width: 340px;
}

.topbar-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.system-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-mikrotik-api {
  background-color: var(--success-bg);
  color: #065f46;
  border: 1px solid var(--success-border);
}

.badge-genieacs {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.topbar-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}

.topbar-action-btn:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.action-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background-color: var(--danger);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid white;
}

/* Page Content Body */
.app-content {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
  width: 100%;
}

/* Header Page Title */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.page-title i {
  color: var(--primary);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

/* 4-Pillar Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-blue   { background-color: var(--primary-light); color: var(--primary); }
.icon-cyan   { background-color: #e0f2fe; color: #0284c7; }
.icon-green  { background-color: var(--success-bg); color: var(--success); }
.icon-orange { background-color: var(--warning-bg); color: var(--warning); }
.icon-red    { background-color: var(--danger-bg);  color: var(--danger); }
.icon-purple { background-color: #f3e8ff; color: var(--purple); }

/* Exact Dashboard Cards matching User Screenshot */
.stat-card-custom {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 64px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-block {
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  flex-shrink: 0;
}

.bg-cyan   { background-color: #00a8e8; }
.bg-green  { background-color: #00a86b; }
.bg-orange { background-color: #f59e0b; }
.bg-red    { background-color: #dc2626; }

.stat-text-block {
  flex: 1;
  padding: 0.4rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

/* Main Card Table Wrapper */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-width: 0;
  width: 100%;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Filters & Search Toolbar (Default & Compact) */
.filter-bar {
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

/* 1-Row Ultra-Compact Toolbar (Exact Mockup User) */
.filter-bar-compact {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0.55rem 0.75rem !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-color) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mobile-toggle-compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  padding: 2px 4px !important;
}

.mobile-toggle-compact input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #059669 !important;
}

.mobile-toggle-compact i {
  font-size: 1.25rem !important;
  color: #059669 !important;
}

.search-input-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
}

.form-input-compact {
  width: 100% !important;
  height: 36px !important;
  padding: 0 0.75rem !important;
  font-size: 0.85rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.form-input-compact:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.form-select-compact {
  height: 36px !important;
  padding: 0 1.5rem 0 0.65rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  flex-shrink: 0 !important;
  outline: none !important;
  cursor: pointer !important;
  appearance: auto !important;
}

.btn-refresh-compact {
  height: 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

.btn-refresh-compact:hover {
  background-color: #f8fafc !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.filter-left, .filter-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.form-select, .form-input {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* View Mode Toggle Switcher */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.view-mode-toggle:hover {
  background-color: #f8fafc;
  border-color: var(--primary);
}

.view-mode-toggle input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Modern Data Table Container with Smooth Horizontal Scrollbar (Mode PC Default) */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
  display: block;
}

.table-responsive::-webkit-scrollbar {
  height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
  border: 2px solid #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.data-table {
  width: 100%;
  min-width: 1450px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

/* Mode HP Card Stack Layout (Active when .mode-hp is toggled) */
.table-responsive.mode-hp {
  overflow-x: visible !important;
  display: block !important;
}

.table-responsive.mode-hp .data-table {
  min-width: 100% !important;
  width: 100% !important;
}

.table-responsive.mode-hp .data-table thead {
  display: none !important;
}

.table-responsive.mode-hp .data-table,
.table-responsive.mode-hp .data-table tbody,
.table-responsive.mode-hp .data-table tr,
.table-responsive.mode-hp .data-table td {
  display: block !important;
  width: 100% !important;
}

.table-responsive.mode-hp .data-table tr {
  margin-bottom: 1.25rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-lg) !important;
  background-color: #ffffff !important;
  padding: 1rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.table-responsive.mode-hp .data-table td {
  padding: 0.6rem 0.25rem !important;
  border-bottom: 1px dashed #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.table-responsive.mode-hp .data-table td::before {
  content: attr(data-label);
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-right: 0.5rem !important;
}

.table-responsive.mode-hp .data-table td:last-child {
  border-bottom: none !important;
  padding-top: 0.75rem !important;
}

.table-responsive.mode-hp .action-group {
  width: 100% !important;
  justify-content: flex-end !important;
}

.data-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.sortable-th {
  cursor: pointer;
  transition: all 0.15s;
}

.sortable-th:hover {
  background-color: #e2e8f0 !important;
  color: var(--primary) !important;
}

.sort-icon {
  font-size: 0.7rem;
  margin-left: 4px;
  color: #94a3b8;
  transition: transform 0.15s, color 0.15s;
}

.sort-icon.active-asc {
  color: var(--primary);
  transform: rotate(180deg);
}

.sort-icon.active-desc {
  color: var(--primary);
  transform: rotate(0deg);
}

.data-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
  font-size: 0.82rem;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.data-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.data-table tbody tr:nth-child(even) {
  background-color: #fbfcfe;
}

.data-table tbody tr:hover {
  background-color: #eef2ff !important; /* Soft highlight saat kursor hover */
}

/* User Identity Cell */
.user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-username {
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
}

.user-member-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.customer-name {
  font-weight: 600;
  color: var(--text-main);
}

.customer-address {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Badges for PPPoE status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-online {
  background-color: var(--success-bg);
  color: #065f46;
  border: 1px solid var(--success-border);
}

.badge-offline {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-suspended {
  background-color: var(--danger-bg);
  color: #991b1b;
  border: 1px solid var(--danger-border);
}

/* Optical Rx Power Badge (GenieACS TR-069) */
.rx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.rx-good {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.rx-warning {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.rx-critical {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Mini Action Controls (GenieACS & Billing) */
.action-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-mini-control {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mini-control:hover {
  background-color: #f8fafc;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-mini-reboot:hover { color: #0284c7; border-color: #0284c7; background-color: #e0f2fe; }
.btn-mini-wifi:hover   { color: #7c3aed; border-color: #7c3aed; background-color: #f5f3ff; }
.btn-mini-wan:hover    { color: #d97706; border-color: #d97706; background-color: #fef3c7; }
.btn-mini-wa:hover     { color: #059669; border-color: #10b981; background-color: #d1fae5; }
.btn-mini-print:hover  { color: #4338ca; border-color: #6366f1; background-color: #e0e7ff; }
.btn-mini-renew:hover  { color: #059669; border-color: #059669; background-color: #d1fae5; }
.btn-mini-edit:hover   { color: #2563eb; border-color: #2563eb; background-color: #dbeafe; }
.btn-mini-delete:hover { color: #dc2626; border-color: #dc2626; background-color: #fee2e2; }

/* Table Pagination Bar */
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: #f8fafc;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Footer Bottom Bar */
.app-footer {
  height: var(--footer-height);
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.system-status-dots {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-dot-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-backdrop.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: #f8fafc;
}

/* Form Grid & Inputs inside Modals */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-label span.req {
  color: var(--danger);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  background-color: var(--secondary);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast-success { background-color: #065f46; border-left: 4px solid var(--success); }
.toast-danger  { background-color: #991b1b; border-left: 4px solid var(--danger); }
.toast-info    { background-color: #1e3a8a; border-left: 4px solid var(--primary); }

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

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES (Smartphones < 992px)
   ========================================================================== */

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1030;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  
  .app-sidebar.show-mobile {
    transform: translateX(0);
  }
  
  .sidebar-overlay.show {
    display: block;
  }
  
  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  
  .topbar-search {
    display: none; /* Hide search bar on small mobile headers */
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-content {
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
  }
  
  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .system-badge-hide-mobile {
    display: none;
  }
  
  .card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar-compact {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0.45rem 0.6rem !important;
    width: 100% !important;
  }
  
  .filter-bar-compact .form-input-compact {
    height: 34px !important;
    font-size: 0.8rem !important;
    padding: 0 0.5rem !important;
  }

  .filter-bar-compact .form-select-compact {
    height: 34px !important;
    font-size: 0.78rem !important;
    padding: 0 1.2rem 0 0.4rem !important;
    max-width: 85px !important;
  }

  .filter-bar-compact .btn-refresh-compact {
    height: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
  }

  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  .data-table {
    min-width: 1250px !important;
  }
}

/* =========================================================================
   COLORFUL DASHBOARD STAT CARDS & TELEMETRY STRIP (MATCHING REFERENCE)
   ========================================================================= */
.colorful-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.colorful-card {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  min-height: 112px;
}

.colorful-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.colorful-card-body {
  padding: 1.15rem 1.25rem 0.95rem 1.25rem;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.colorful-card-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  font-family: 'JetBrains Mono', sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.colorful-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.colorful-card-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  z-index: 2;
}

.colorful-card-watermark {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.8rem;
  color: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.colorful-card:hover .colorful-card-watermark {
  transform: translateY(-50%) scale(1.1);
  color: rgba(255, 255, 255, 0.32);
}

.colorful-card-footer {
  background: rgba(0, 0, 0, 0.14);
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease;
  z-index: 2;
}

.colorful-card-footer:hover {
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
}

/* Color Palettes (Rich, Elegant, Non-overpowering) */
.card-theme-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
.card-theme-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}
.card-theme-teal {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}
.card-theme-red {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}
.card-theme-indigo {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}
.card-theme-sky {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}
.card-theme-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}
.card-theme-orange {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}
.card-theme-emerald {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}
.card-theme-blue {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}
.card-theme-slate {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}
.card-theme-darkgreen {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
}

/* System Hardware Telemetry Strip (Exact Screenshot Matching) */
.telemetry-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.telemetry-badge-item {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.telemetry-tag {
  background: #94a3b8;
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.telemetry-val {
  padding: 0.55rem 0.85rem;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.82rem;
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8fafc;
}

/* =========================================================================
   MOBILE VIEW CUSTOMER CARDS & FULL-SCREEN DETAIL SHEET
   ========================================================================= */
.customer-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.customer-card-mobile {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0.75rem 0.95rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  position: relative !important;
  border-left: 5px solid #94a3b8 !important;
}

.customer-card-mobile.card-online {
  border-left-color: #10b981 !important;
}

.customer-card-mobile.card-isolir {
  border-left-color: #ef4444 !important;
}

.customer-card-mobile.card-warning {
  border-left-color: #f59e0b !important;
}

.customer-card-mobile:hover,
.customer-card-mobile:active {
  background: #f8fafc !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Card 3-Row Structure */
.m-card-row-1 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  margin-bottom: 0.35rem !important;
}

.m-card-user {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.m-card-user .user-fullname {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.m-card-top-right {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

.m-card-member-id {
  font-size: 0.72rem !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.badge-session {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.badge-session-on {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.badge-session-off {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

.m-card-row-2 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  font-size: 0.76rem !important;
  color: #475569 !important;
  margin-bottom: 0.4rem !important;
  padding: 0.25rem 0 !important;
  border-top: 1px dashed #f1f5f9 !important;
}

.m-card-addr {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.m-card-dates {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  background: #f8fafc !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.m-card-row-3 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  border-top: 1px dashed #f1f5f9 !important;
  padding-top: 0.35rem !important;
}

.m-card-plan {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.m-card-billing {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.badge-isolir {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

.badge-lunas {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.badge-unpaid {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

/* Improved Bayar Sekarang CTA Button */
.btn-pay-now-improved {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 3px 11px !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

.btn-pay-now-improved:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45) !important;
}

.btn-pay-now-improved:active {
  transform: translateY(0) !important;
}

/* Full Screen Mobile Detail Dialog */
.modal-fullscreen-mobile .modal-dialog-mobile-fullscreen {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-fullscreen-mobile {
    padding: 0 !important;
  }
  .modal-fullscreen-mobile .modal-dialog-mobile-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .mobile-detail-body {
    flex: 1;
    overflow-y: auto !important;
    max-height: calc(100vh - 60px) !important;
    padding: 1rem !important;
  }
}

.mobile-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-detail-back, .btn-detail-edit {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-detail-back:hover, .btn-detail-edit:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mobile-detail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* Detail Section Cards */
.detail-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.detail-section-header {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.45rem;
}

.detail-prop-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
}

.detail-prop-table td {
  padding: 0.35rem 0.25rem;
  vertical-align: top;
}

.detail-prop-table td.prop-label {
  width: 38%;
  color: #64748b;
  font-weight: 600;
}

.detail-prop-table td.prop-val {
  color: #0f172a;
  font-weight: 700;
}

