/* ==========================================================================
   AZM LEGAL SYSTEM - ENTERPRISE STYLESHEET
   Standardized to PT Aldzama Internal Portal Design (Orbit & Maintenance)
   Clean, Professional Corporate UX - 100% Adjusted & Fluid
   ========================================================================== */

:root {
  --azm-red: #d32027;
  --azm-red-hover: #b71c1c;
  --azm-blue: #2d4999;
  --azm-blue-hover: #1e3a8a;
  --azm-primary: #1d4ed8;       /* Office standard blue */
  --azm-primary-hover: #1e40af;
  --azm-primary-light: #eff6ff;

  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e7eb;
  --sidebar-text: #4b5563;
  --sidebar-active-bg: #eff6ff;
  --sidebar-active-text: #1d4ed8;

  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-size: 13.5px; /* Professional compact enterprise proportion */
  font-family: var(--font-family);
  background-color: var(--page-bg);
  color: var(--text-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Master 100% Fluid App Container */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: var(--page-bg);
}

/* ========================================================
   CLEAN WHITE SIDEBAR (Matching orbit.aldzama.com)
   ======================================================== */
.sidebar {
  width: 236px;
  min-width: 236px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

.sidebar-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.sidebar-logo-img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.btn-sidebar-toggle {
  background: none;
  border: 1px solid transparent;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-sidebar-toggle:hover {
  background-color: #f1f5f9;
  color: #111827;
  border-color: #e2e8f0;
}

/* ========================================================
   COLLAPSED SIDEBAR STATE (Clean & Leak-Free)
   ======================================================== */
.sidebar.collapsed {
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

.sidebar.collapsed ~ .main-wrapper {
  width: calc(100% - 62px) !important;
}

.sidebar.collapsed .sidebar-header {
  padding: 12px 0 !important;
  justify-content: center !important;
  text-align: center !important;
}

.sidebar.collapsed .sidebar-brand-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.sidebar.collapsed .sidebar-logo-full {
  display: none !important;
}

.sidebar.collapsed .sidebar-logo-mini {
  display: block !important;
  width: 32px !important;
  height: auto !important;
  margin: 0 auto !important;
}

.sidebar.collapsed .menu-category-title,
.sidebar.collapsed #menu-admin-title,
.sidebar.collapsed #menu-compliance-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  pointer-events: none !important;
}

.sidebar.collapsed .sidebar-menu {
  padding: 8px 0 !important;
  overflow-x: hidden !important;
}

.sidebar.collapsed .nav-item {
  justify-content: center !important;
  align-items: center !important;
  padding: 10px 0 !important;
  width: 44px !important;
  margin: 0 auto 6px auto !important;
  border-radius: var(--radius-md) !important;
  position: relative !important;
  gap: 0 !important;
  overflow: visible !important;
}

.sidebar.collapsed .nav-item span:not(.nav-badge) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
}

.sidebar.collapsed .nav-icon {
  margin: 0 auto !important;
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

.sidebar.collapsed .nav-badge {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  padding: 1px 4px !important;
  font-size: 0.62rem !important;
}

.sidebar.collapsed .sidebar-footer {
  padding: 12px 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

.sidebar.collapsed .user-profile-widget {
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
}

.sidebar.collapsed .user-avatar-circle {
  margin: 0 auto !important;
  width: 34px !important;
  height: 34px !important;
}

.sidebar.collapsed .user-info-text,
.sidebar.collapsed .btn-icon-logout {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#card-new-ticket.fullscreen {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 1050 !important;
  max-height: calc(100vh - 32px) !important;
  height: calc(100vh - 32px) !important;
  overflow-y: auto !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  border: 2px solid #2563eb !important;
  border-radius: var(--radius-lg) !important;
  background: #ffffff !important;
}

.sidebar-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px;
}

.menu-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-light);
  padding: 8px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nav-item.active {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.18);
}

.nav-item.active .nav-icon {
  stroke: #ffffff;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background-color: var(--azm-red);
  color: #ffffff;
  font-weight: 700;
}

/* Sidebar Footer (Bottom Left Corner) */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--sidebar-border);
  background-color: #fafbfc;
  position: relative;
  flex-shrink: 0;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.user-profile-widget:hover {
  background-color: #f1f5f9;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e0e7ff;
  color: #3730a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.user-info-text {
  flex: 1;
  min-width: 0;
}

.user-display-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-display-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-more-icon {
  margin-left: auto;
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.user-profile-widget:hover .user-profile-more-icon {
  color: #1e293b;
}

.sidebar.collapsed .user-profile-more-icon {
  display: none !important;
}

/* User Menu Popover (Bottom Left Corner) */
.user-menu-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 10px;
  width: 230px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  padding: 14px;
  z-index: 1000;
  animation: popoverFadeIn 0.15s ease-out;
}

.sidebar.collapsed .user-menu-popover {
  left: 68px;
  bottom: 8px;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.user-menu-details {
  flex: 1;
  min-width: 0;
}

.user-menu-details strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-dept-tag {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.popover-email-text {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.user-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 10px 0;
}

.user-menu-status {
  font-size: 0.74rem;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.btn-user-logout {
  width: 100%;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-user-logout:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* ========================================================
   LEGAL REQUEST FORM (Matching ticketing.aldzama.com & ga.aldzama.com)
   ======================================================== */
.legal-form-card {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.02);
  overflow: hidden;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.legal-form-header {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.legal-form-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.legal-form-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 0;
}

.legal-form-body {
  padding: 24px 28px 28px 28px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.form-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-control-clean {
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 0.88rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.15s ease;
  width: 100%;
}

textarea.form-control-clean {
  height: auto;
  min-height: 96px;
  padding: 10px 14px;
  resize: vertical;
}

.form-control-clean:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-helper-text {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
  margin-top: 4px;
}

/* Custom File Upload Box */
.custom-file-box {
  position: relative;
}

.file-native-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-box-content {
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.file-box-content:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.file-box-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.file-box-texts {
  flex: 1;
  min-width: 0;
}

.file-box-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
}

.file-box-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.file-browse-action {
  flex-shrink: 0;
  pointer-events: none;
}

/* .legal-form-footer â€” see definition at end of file (full version with flex-wrap & space-between) */


.btn-submit-lg {
  padding: 9px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
}

/* ========================================================
   MAIN CONTENT WRAPPER (100% Fluid & Adjusted)
   ======================================================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: calc(100% - 236px);
}

/* Topbar Header */
.topbar {
  height: 48px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--sidebar-border);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
}

.badge-sso-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #16a34a;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-company-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-portal-badge {
  display: none !important;
}

/* H-30 ALERT BANNER */
.h30-alert-banner {
  background-color: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h30-alert-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.btn-alert-action {
  background-color: var(--azm-red);
  color: #ffffff;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-alert-action:hover {
  background-color: var(--azm-red-hover);
}

/* Content Body */
.content-body {
  padding: 14px 18px;
  width: 100%;
  flex: 1;
}

/* ========================================================
   WELCOME HERO BANNER (Matching orbit.aldzama.com)
   ======================================================== */
.welcome-hero-card {
  background-color: #111827;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.welcome-hero-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.welcome-hero-card p {
  color: #9ca3af;
  font-size: 0.9rem;
  max-width: 700px;
}

/* ========================================================
   STAT CARDS (Matching orbit.aldzama.com Clean Style)
   ======================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  width: 100%;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  transition: all 0.15s ease;
}

.stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #f8fafc;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card.alert-blue .stat-icon-wrap {
  background-color: #eff6ff;
  color: #2563eb;
}

.stat-card.alert-amber .stat-icon-wrap {
  background-color: #fffbeb;
  color: #d97706;
}

.stat-card.alert-red .stat-icon-wrap {
  background-color: #fef2f2;
  color: #dc2626;
}

.stat-card.alert-green .stat-icon-wrap {
  background-color: #f0fdf4;
  color: #16a34a;
}

.stat-details p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.stat-details h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

/* Action Quick Bar */
.action-quick-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ========================================================
   CARDS & TABLES (Matching maintenance.aldzama.com)
   ======================================================== */
.card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eaecf0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
}

.card-title-group h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-title-group p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Filter & Search Toolbar (Like maintenance.aldzama.com) */
.filter-toolbar {
  padding: 8px 14px;
  background-color: #f9fafb;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.search-box-pill {
  position: relative;
  min-width: 230px;
}

.search-icon-svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-light);
}

.input-search-pill {
  width: 100%;
  padding: 5px 10px 5px 30px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  outline: none;
  background: #ffffff;
}

.input-search-pill:focus {
  border-color: var(--azm-blue);
  box-shadow: 0 0 0 2px rgba(45, 73, 153, 0.15);
}

.select-filter-box {
  padding: 5px 9px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: #ffffff;
  color: var(--text-body);
  outline: none;
}

/* Clean Professional Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.data-table th {
  background-color: #f9fafb;
  padding: 7px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid #e5e7eb;
  text-transform: uppercase;
  font-size: 0.69rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #f9fafb;
}

/* Badges (Crisp Enterprise Style) */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.badge-diajukan {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-telaah {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-direksi {
  background-color: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-revisi {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-selesai {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 700;
}

.badge-urgent {
  background-color: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-weight: 700;
}

.badge-warning {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-submitted {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-progress {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-done {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Visual Ticket Progress Stepper */
.ticket-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 55%;
  width: 90%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.step-item.is-completed:not(:last-child)::after {
  background: #10b981;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 2;
  transition: all 0.2s;
}

.step-item.is-active .step-circle {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-item.is-completed .step-circle {
  border-color: #10b981;
  background: #10b981;
  color: #ffffff;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.step-item.is-active .step-label {
  color: #1e3a8a;
  font-weight: 700;
}

.step-item.is-completed .step-label {
  color: #065f46;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  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: #1d4ed8;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-outline {
  background-color: #ffffff;
  border-color: #d1d5db;
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.btn-sm {
  padding: 5px 11px;
  font-size: 0.78rem;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.74rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-danger {
  background-color: var(--azm-red);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: var(--azm-red-hover);
}

/* Template Cards Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.template-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tpl-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tpl-code-tag {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  background-color: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.template-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.template-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.template-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
  font-size: 0.74rem;
  color: var(--text-light);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  z-index: 99999 !important;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s ease;
}

.modal-card.fullscreen {
  max-width: 96vw !important;
  width: 96vw !important;
  max-height: 94vh !important;
  height: 94vh !important;
  border-radius: var(--radius-md) !important;
}

.btn-toggle-fullscreen {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-toggle-fullscreen:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background-color: #f9fafb;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  background: #ffffff;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Security Lock Card */
.security-lock-screen {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
}

.lock-icon-wrap {
  width: 54px;
  height: 54px;
  background-color: #fef2f2;
  color: var(--azm-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.pin-input-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1f2937;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.toast.toast-success {
  border-left: 4px solid #10b981;
}

.toast.toast-error {
  border-left: 4px solid var(--azm-red);
}

.toast.toast-warning {
  border-left: 4px solid var(--accent-amber);
}

/* ========================================================
   SERVICE HUB CARDS (Strict 2x2 Grid - Clean Corporate Design)
   ======================================================== */
.service-hub-header {
  margin-bottom: 8px;
}

.service-hub-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.service-hub-header p {
  font-size: 0.74rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

@media (max-width: 768px) {
  .service-hub-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  position: relative;
  background-color: #ffffff;
}

.service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -3px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

/* Subtle left corporate border */
.service-card.theme-drafting { border-left: 3px solid #2563eb; }
.service-card.theme-drafting:hover { border-color: #93c5fd; border-left-color: #1d4ed8; }

.service-card.theme-review { border-left: 3px solid #059669; }
.service-card.theme-review:hover { border-color: #86efac; border-left-color: #047857; }

.service-card.theme-opinion { border-left: 3px solid #d97706; }
.service-card.theme-opinion:hover { border-color: #fde68a; border-left-color: #b45309; }

.service-card.theme-other { border-left: 3px solid var(--azm-red); }
.service-card.theme-other:hover { border-color: #fca5a5; border-left-color: #b91c1c; }

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.service-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 15px;
  height: 15px;
}

.theme-drafting .service-card-icon { background: #eff6ff; color: #2563eb; }
.theme-review .service-card-icon { background: #ecfdf5; color: #059669; }
.theme-opinion .service-card-icon { background: #fffbeb; color: #d97706; }
.theme-other .service-card-icon { background: #fef2f2; color: var(--azm-red); }

.service-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.theme-drafting .service-card-tag { background: #eff6ff; color: #1d4ed8; }
.theme-review .service-card-tag { background: #ecfdf5; color: #047857; }
.theme-opinion .service-card-tag { background: #fffbeb; color: #b45309; }
.theme-other .service-card-tag { background: #fef2f2; color: #b91c1c; }

.service-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}

.service-card-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 7px;
  min-height: unset;
}

.service-card-btn {
  width: 100%;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-card.theme-drafting:hover .service-card-btn {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.service-card.theme-review:hover .service-card-btn {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.service-card.theme-opinion:hover .service-card-btn {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

.service-card.theme-other:hover .service-card-btn {
  background: var(--azm-red);
  color: #ffffff;
  border-color: var(--azm-red);
  box-shadow: 0 2px 6px rgba(211, 32, 39, 0.2);
}

.badge-pov-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pov-user {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-pov-admin {
  background: #fef2f2;
  color: #991b1b;
}

/* Responsive Zoom & Scale Behavior */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
    min-width: 220px;
  }
  .main-wrapper {
    width: calc(100% - 220px);
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .main-wrapper {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Feature 6: Segmented View Switcher Buttons */
.view-switcher-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.btn-tab-view {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-tab-view:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-tab-view.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-tab-view.active span {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
}

/* Features 13-19 Styles: Monitoring Suite & Renewal */
.btn-xs {
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.2;
}

.badge-renewal {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

.badge-outline {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.monitoring-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kpi-pill-title {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.kpi-pill-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* ========================================================
   SEARCHABLE COMBOBOX (Divisi Pemohon with Keyboard Nav)
   ======================================================== */
.combobox-wrapper {
  position: relative;
  width: 100%;
}

.combobox-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.combobox-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.combobox-input {
  width: 100%;
  padding: 9px 56px 9px 34px !important;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  background-color: #ffffff;
  transition: all 0.15s ease;
  color: #0f172a;
}

.combobox-input:focus {
  border-color: var(--azm-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  outline: none;
}

.combobox-clear-btn {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  display: none;
  border-radius: 4px;
  line-height: 1;
}

.combobox-clear-btn:hover {
  color: #ef4444;
  background-color: #fee2e2;
}

.combobox-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.75rem;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.combobox-wrapper.open .combobox-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
  padding: 4px 0;
}

.combobox-wrapper.open .combobox-dropdown {
  display: block;
}

.combobox-group-title {
  padding: 6px 12px 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.combobox-group-title:first-child {
  border-top: none;
}

.combobox-option {
  padding: 8px 14px;
  font-size: 0.84rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.1s ease, color 0.1s ease;
  user-select: none;
}

.combobox-option:hover,
.combobox-option.is-focused {
  background-color: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.combobox-option.is-selected {
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: 600;
}

.combobox-option .check-icon {
  font-size: 0.78rem;
  color: #1d4ed8;
  opacity: 0;
}

.combobox-option.is-selected .check-icon {
  opacity: 1;
}

.combobox-empty {
  padding: 18px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
}

.combobox-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #f8fafc;
  font-size: 0.7rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  position: sticky;
  bottom: 0;
  z-index: 2;
}


/* ========================================================
   INPUT WITH ICON (Fix: SVG icon harus kecil di dalam input)
   ======================================================== */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  pointer-events: none;
  color: #94a3b8;
  stroke: #94a3b8;
}

.form-control-clean.with-icon {
  padding-left: 36px !important;
}

/* ========================================================
   LEGAL FORM HEADER BADGES
   ======================================================== */
.form-header-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge-form-code {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  font-family: monospace;
}

.badge-form-tag {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ========================================================
   SOP BANNER (Info Prosedur di atas form)
   ======================================================== */
.form-sop-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: #1e40af;
  line-height: 1.5;
}

.sop-banner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 1px;
  color: #2563eb;
}

.sop-banner-text {
  flex: 1;
  min-width: 0;
}

.sop-banner-text strong {
  font-weight: 700;
  color: #1e3a8a;
}

/* ========================================================
   FORM SECTION: Step Number & Title
   ======================================================== */
.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #1d4ed8;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================================
   LEGAL FORM FOOTER HINT
   ======================================================== */
.form-footer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #059669;
  font-weight: 500;
}

.legal-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

/* ========================================================
   BTN HEADER FULLSCREEN (tombol layar penuh di form header)
   ======================================================== */
.btn-header-fullscreen {
  white-space: nowrap;
  flex-shrink: 0;
}


/* ========================================================
   LEGAL FORM REDESIGN — Referensi ga.aldzama.com
   ======================================================== */
.lf-header-navy {
  background-color: #2d3a6b;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lf-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lf-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.lf-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
.lf-header-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
.lf-btn-fullscreen {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.lf-btn-fullscreen:hover {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
}
.lf-form-body {
  padding: 24px 28px 28px;
}
.lf-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6b7280;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}
.lf-label-note {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.74rem;
}
.lf-input-readonly {
  background-color: #f8fafc !important;
  color: #374151 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}
.lf-form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* Enhanced Section Blocks & Spacing for Legal Request Form */
.lf-section-block {
  margin-bottom: 0;
}
.lf-section-header {
  margin-bottom: 20px;
}
.lf-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lf-section-sub {
  font-size: 0.79rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.4;
}
.lf-section-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0 26px 0;
  width: 100%;
}

/* ========================================================
   MONITORING DOKUMEN & LEGALITAS (SYNOLOGY NAS LIVE INTEGRATION)
   ======================================================== */
.monitoring-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  overflow: hidden;
}

.monitoring-header {
  padding: 18px 24px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.monitoring-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.monitoring-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
  overflow-x: auto;
}

.monitoring-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.monitoring-tab-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.monitoring-tab-btn.active {
  background: #ffffff;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
  font-weight: 700;
}

.monitoring-tab-btn .tab-badge-count {
  background: #f1f5f9;
  color: #64748b;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.monitoring-tab-btn.active .tab-badge-count {
  background: #eff6ff;
  color: #2563eb;
}

.monitoring-dataset-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin: 16px 24px 12px 24px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monitoring-dataset-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
}

.monitoring-dataset-title i {
  color: #15803d;
  font-size: 1.1rem;
}

.btn-nas-info {
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-nas-info:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #14532d;
}

.monitoring-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 16px 24px;
  flex-wrap: wrap;
}

.monitoring-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.monitoring-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.88rem;
}

.monitoring-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.84rem;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.monitoring-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.monitoring-select-filter {
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.84rem;
  background: #ffffff;
  color: #334155;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  min-width: 170px;
}

.monitoring-select-filter:focus {
  border-color: #3b82f6;
}

/* Status Badges Matching Screenshots */
.badge-status-safe {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-status-critical {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-status-expired {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-status-noexpiry {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-status-pending,
.badge-status-pending-update {
  background: #fdf4ff;
  color: #7e22ce;
  border: 1px solid #f0abfc;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-silo-alatberat {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-silo-equipment {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.badge-topic-pill {
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-block;
}

.btn-table-detail {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-table-detail:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.monitoring-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.80rem;
}

.monitoring-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.monitoring-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.monitoring-table tr:hover td {
  background-color: #f8fafc;
}

.nas-indicator-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Fullscreen Detail Modal Controls */
.btn-fullscreen-toggle {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.82rem;
}

.btn-fullscreen-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.modal-card.is-fullscreen {
  max-width: 95vw !important;
  width: 95vw !important;
  max-height: 94vh !important;
  height: 94vh !important;
  border-radius: 12px !important;
}

.modal-card.is-fullscreen .md-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

