/* Scoped visual system for Dashboard Direksi. It deliberately overrides only this page. */
.dashboard-direksi {
  --nld-primary: #126b5d;
  --nld-primary-strong: #0e574c;
  --nld-primary-soft: #e7f3f0;
  --nld-accent: #c9972d;
  --nld-canvas: #f5f7f9;
  --nld-surface: #ffffff;
  --nld-border: #dbe3e8;
  --nld-text: #172b3a;
  --nld-muted: #617080;
  --nld-radius: 14px;
  --nld-shadow: 0 8px 24px rgba(23, 43, 58, .06);
  background: var(--nld-canvas) !important;
  color: var(--nld-text);
}

.dashboard-direksi :focus-visible { outline: 3px solid rgba(18, 107, 93, .3); outline-offset: 2px; }
.dashboard-direksi button, .dashboard-direksi a { -webkit-tap-highlight-color: transparent; }
.dashboard-direksi .executive-topbar { border-color: var(--nld-border) !important; box-shadow: 0 1px 0 rgba(23, 43, 58, .03); }
.dashboard-direksi .executive-topbar > div { max-width: 1600px; }
.dashboard-direksi .executive-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 5px; border-radius: 12px; background: #fff; border: 1px solid var(--nld-border); box-shadow: 0 4px 12px rgba(23, 43, 58, .08); overflow: hidden; flex: 0 0 auto; }
.dashboard-direksi .executive-brand-mark:hover { border-color: #b9d7d0; box-shadow: 0 6px 14px rgba(18, 107, 93, .14); }
.dashboard-direksi .executive-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dashboard-direksi .executive-brand-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.dashboard-direksi .executive-brand-copy > span { color: var(--nld-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-direksi .executive-brand-copy h1 { color: var(--nld-text) !important; font-size: 17px; }
.dashboard-direksi .executive-topbar [class*="hover:text-blue"]:hover { color: var(--nld-primary) !important; }
.dashboard-direksi .executive-topbar [class*="bg-red-50"] { border: 1px solid #f2d9d6; }


.dashboard-direksi .executive-sidebar.sidebar-collapsed {
  display: none !important;
}
.dashboard-direksi .executive-sidebar {
  width: 210px !important;
  flex-shrink: 0;
 background: #fbfcfd !important; border-color: var(--nld-border) !important; }
.dashboard-direksi .executive-sidebar > div { padding: 28px 16px !important; }
.dashboard-direksi .executive-sidebar h2 { color: var(--nld-text) !important; }
.dashboard-direksi .executive-sidebar h3 { color: #81909e !important; }
.dashboard-direksi .executive-sidebar a,
.dashboard-direksi .executive-sidebar button { border: 1px solid transparent; border-radius: 10px !important; min-height: 42px; }
.dashboard-direksi .executive-sidebar a:hover,
.dashboard-direksi .executive-sidebar button:hover { background: var(--nld-primary-soft) !important; border-color: #cce3dd; color: var(--nld-primary-strong) !important; }
.dashboard-direksi .executive-sidebar a:hover i,
.dashboard-direksi .executive-sidebar button:hover i { color: var(--nld-primary) !important; }

.dashboard-direksi .executive-layout {
  overflow-x: hidden; width: 100%; min-width: 0; box-sizing: border-box; }
.dashboard-direksi .executive-main { flex: 1 1 0%; width: auto; min-width: 0; max-width: 100% !important; box-sizing: border-box; padding: 20px 14px 40px !important; }
.dashboard-direksi .executive-main > div { min-width: 0; max-width: 100%; box-sizing: border-box; }

.dashboard-direksi .executive-sidebar-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--nld-border);
  background: #fff;
  color: var(--nld-text);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 8px;
}
.dashboard-direksi .executive-sidebar-toggle:hover {
  background: var(--nld-primary-soft);
  color: var(--nld-primary);
  border-color: #b9d7d0;
}

.dashboard-direksi .executive-sidebar-backdrop[hidden] { display: none; }
.dashboard-direksi .executive-page-heading { margin-bottom: 26px !important; }
.dashboard-direksi .executive-page-heading h2 { color: var(--nld-text) !important; font-size: 26px !important; letter-spacing: -.025em; }
.dashboard-direksi .executive-page-heading p { color: var(--nld-muted) !important; margin-top: 5px; }
.dashboard-direksi .executive-summary-grid { gap: 18px !important; margin-bottom: 28px !important; }
.dashboard-direksi .executive-summary-grid > div { min-width: 0; overflow-wrap: anywhere; }
.dashboard-direksi .executive-summary-card { min-height: 166px; border-color: var(--nld-border) !important; border-radius: var(--nld-radius) !important; box-shadow: var(--nld-shadow) !important; padding: 22px !important; }
.dashboard-direksi .executive-summary-card:hover { box-shadow: 0 12px 28px rgba(23, 43, 58, .09) !important; transform: translateY(-1px); }
.dashboard-direksi .executive-summary-card > div:first-child { display: none; }
.dashboard-direksi .executive-summary-card .text-gray-500 { color: var(--nld-muted) !important; }
.dashboard-direksi .executive-summary-card .text-gray-900 { color: var(--nld-text) !important; }
.dashboard-direksi .executive-summary-card .text-3xl { font-size: 30px !important; letter-spacing: -.035em; }
.dashboard-direksi .executive-summary-card .text-blue-600,
.dashboard-direksi .executive-summary-card .text-green-600,
.dashboard-direksi .executive-summary-card .text-purple-600 { color: var(--nld-primary) !important; }
.dashboard-direksi .executive-summary-card .bg-blue-50,
.dashboard-direksi .executive-summary-card .bg-green-50,
.dashboard-direksi .executive-summary-card .bg-purple-50 { background: var(--nld-primary-soft) !important; color: var(--nld-primary-strong) !important; }

.dashboard-direksi .executive-queue-heading {
  border-color: var(--nld-border) !important;
  padding-bottom: 12px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.dashboard-direksi .executive-queue-heading h2 { color: var(--nld-text) !important; font-size: 17px !important; }
.dashboard-direksi .executive-queue-heading p { color: var(--nld-muted) !important; margin-top: 2px; font-size: 12px !important; }
.dashboard-direksi .executive-queue-heading > div { min-width: 0; }
.dashboard-direksi .executive-tabs {
  padding: 3px;
  border-radius: 10px;
  background: #eef2f4;
  border: 1px solid var(--nld-border);
  display: inline-flex;
  gap: 4px;
}
.dashboard-direksi .executive-tabs button {
  border-radius: 6px !important;
  border-color: transparent !important;
  box-shadow: none !important;
  min-height: 32px !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.dashboard-direksi .executive-tab { background: transparent !important; color: var(--nld-muted) !important; }
.dashboard-direksi .executive-tab:hover { background: #fff !important; color: var(--nld-primary-strong) !important; }
.dashboard-direksi .executive-tab.executive-tab-active { background: var(--nld-primary) !important; color: #fff !important; }
.dashboard-direksi .executive-tab.executive-tab-active:hover { background: var(--nld-primary-strong) !important; }

.dashboard-direksi .executive-table-card { border-color: var(--nld-border) !important; border-radius: var(--nld-radius) !important; box-shadow: var(--nld-shadow) !important; }
/* Constrain the flex parent first; only this region owns horizontal scrolling. */
.dashboard-direksi .executive-table-wrapper { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Responsive Approval Table System */
.dashboard-direksi .executive-approval-table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-direksi .executive-approval-table th,
.dashboard-direksi .executive-approval-table td {
  box-sizing: border-box;
  padding: 8px 6px !important;
  vertical-align: middle;
}

/* Explicit and responsive column dimensions - Ultra Fit (Total: 655px) */
.dashboard-direksi .executive-approval-table th.col-select,
.dashboard-direksi .executive-approval-table td.col-select {
  width: 32px !important;
  text-align: center;
  padding-left: 1px !important;
  padding-right: 1px !important;
}

.dashboard-direksi .executive-approval-table th.col-category,
.dashboard-direksi .executive-approval-table td.col-category {
  width: 78px !important;
}

.dashboard-direksi .executive-approval-table th.col-desc,
.dashboard-direksi .executive-approval-table td.col-desc {
  width: auto !important;
  min-width: 120px;
}

.dashboard-direksi .executive-approval-table th.col-amount,
.dashboard-direksi .executive-approval-table td.col-amount {
  width: 95px !important;
  text-align: right;
  white-space: nowrap;
}

.dashboard-direksi .executive-approval-table th.col-attachment,
.dashboard-direksi .executive-approval-table td.col-attachment {
  width: 104px !important;
  text-align: center;
  white-space: nowrap;
}

.dashboard-direksi .executive-approval-table th.col-requester,
.dashboard-direksi .executive-approval-table td.col-requester {
  width: 110px !important;
}

.dashboard-direksi .executive-approval-table th.col-action,
.dashboard-direksi .executive-approval-table td.col-action {
  width: 116px !important;
  text-align: center;
  padding-left: 1px !important;
  padding-right: 1px !important;
}

.dashboard-direksi .executive-approval-table td.col-desc {
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-direksi .executive-approval-table th.col-amount,
.dashboard-direksi .executive-approval-table td.col-amount {
  width: 115px !important;
  text-align: right;
  white-space: nowrap;
}

.dashboard-direksi .executive-approval-table th.col-attachment,
.dashboard-direksi .executive-approval-table td.col-attachment {
  width: 108px !important;
  text-align: center;
  white-space: nowrap;
}

.dashboard-direksi .executive-approval-table th.col-requester,
.dashboard-direksi .executive-approval-table td.col-requester {
  width: 120px !important;
}

.dashboard-direksi .executive-approval-table th.col-action,
.dashboard-direksi .executive-approval-table td.col-action {
  width: 130px !important;
  text-align: center;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.dashboard-direksi .executive-approval-table td.col-desc {
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-direksi .executive-approval-table button {
  min-height: 30px;
  justify-content: center;
}

.dashboard-direksi .executive-approval-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.dashboard-direksi .executive-table-card thead tr { background: #f2f6f6 !important; border-color: var(--nld-border) !important; }
.dashboard-direksi .executive-table-card th { color: #536473 !important; font-size: 10px !important; letter-spacing: .075em; padding-top: 15px !important; padding-bottom: 15px !important; }
.dashboard-direksi .executive-table-card tbody tr:hover { background: #f8fbfa !important; }
.dashboard-direksi .executive-table-card tbody td { border-color: #e7edf0 !important; }
.dashboard-direksi .executive-table-card .text-blue-600 { color: var(--nld-primary) !important; }
.dashboard-direksi .executive-table-card .bg-blue-50 { background: var(--nld-primary-soft) !important; }
.dashboard-direksi .executive-table-card .border-blue-100 { border-color: #cce3dd !important; }
.dashboard-direksi .executive-table-card button[class*="btn-approve"] { background: var(--nld-primary) !important; }
.dashboard-direksi .executive-table-card button[class*="btn-approve"]:hover { background: var(--nld-primary-strong) !important; }
.dashboard-direksi .executive-table-card td[colspan] { padding-top: 58px !important; padding-bottom: 58px !important; }
.dashboard-direksi .executive-table-card td[colspan] > div > div { background: var(--nld-primary-soft) !important; color: var(--nld-primary) !important; border-color: #cce3dd !important; }

.dashboard-direksi .bg-blue-600 { background-color: var(--nld-primary) !important; }
.dashboard-direksi .hover\:bg-blue-700:hover { background-color: var(--nld-primary-strong) !important; }
.dashboard-direksi .text-blue-600 { color: var(--nld-primary) !important; }
.dashboard-direksi .focus\:ring-blue-500:focus { --tw-ring-color: var(--nld-primary) !important; }

@media (max-width: 1023px) {
  .dashboard-direksi .executive-main { padding: 28px 22px 44px !important; }
  .dashboard-direksi .executive-topbar .max-w-7xl { padding-left: 22px; padding-right: 22px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .dashboard-direksi .executive-summary-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .dashboard-direksi .executive-tabs { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .dashboard-direksi .executive-topbar > div > div { height: 62px !important; }
  .dashboard-direksi .executive-brand-copy > span { display: none; }
  .dashboard-direksi .executive-brand-copy h1 { font-size: 15px !important; }
  .dashboard-direksi .executive-topbar .gap-4 { gap: 4px !important; }
  .dashboard-direksi .executive-topbar button { min-width: 40px; min-height: 40px; justify-content: center; }
  .dashboard-direksi .executive-topbar button:last-child { padding: 0 11px !important; }
  .dashboard-direksi .executive-topbar button:last-child i { margin: 0; }
  .dashboard-direksi .executive-topbar button:last-child { font-size: 0; }
  .dashboard-direksi .executive-topbar button:last-child i { font-size: 14px; }
  .dashboard-direksi .executive-main { padding: 24px 16px 38px !important; }
  .dashboard-direksi .executive-topbar .max-w-7xl { padding-left: 12px; padding-right: 12px; }
  .dashboard-direksi .executive-topbar > div > div > .gap-3 { gap: 8px; min-width: 0; }
  .dashboard-direksi .executive-brand-copy { min-width: 0; }
  .dashboard-direksi .executive-sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .dashboard-direksi .executive-sidebar-open { display: block; position: fixed; top: 63px; bottom: 0; left: 0; width: min(288px, calc(100% - 48px)); z-index: 45; box-shadow: var(--nld-shadow); }
  .dashboard-direksi .executive-sidebar-open > div { position: static; height: 100%; }
  .dashboard-direksi .executive-sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 63px 0 0; z-index: 40; background: rgba(23, 43, 58, .35); }
  .dashboard-direksi .executive-page-heading h2 { font-size: 23px !important; }
  .dashboard-direksi .executive-summary-grid { gap: 12px !important; }
  .dashboard-direksi .executive-summary-card { min-height: 142px; padding: 18px !important; }
  .dashboard-direksi .executive-queue-heading { align-items: stretch !important; flex-direction: column; gap: 14px; }
  .dashboard-direksi .executive-tabs { width: 100%; }
  .dashboard-direksi .executive-tabs button { flex: 1 1 0; min-width: 0; min-height: 44px; justify-content: center; padding-left: 10px !important; padding-right: 10px !important; font-size: 12px !important; }
  .dashboard-direksi .executive-tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dashboard-direksi .executive-table-card { border-radius: 12px !important; }
  .dashboard-direksi #bulkActionBar { flex-wrap: wrap; gap: 12px; padding: 16px; width: calc(100% - 32px); }
  .dashboard-direksi #bulkActionBar > div:last-child { flex-wrap: wrap; margin-left: 0; }
  .dashboard-direksi #bulkActionBar button { min-height: 44px; }
}

@media (max-width: 390px) {
  .dashboard-direksi .executive-brand-mark { width: 42px; height: 42px; padding: 4px !important; }
  .dashboard-direksi .executive-brand-copy h1 { font-size: 13px !important; }
  .dashboard-direksi .executive-tabs button { font-size: 11px !important; }
}



/* Global Anti-Overflow & Full Width Layout */
.dashboard-direksi body {
  overflow-x: hidden;
}

.dashboard-direksi .executive-layout {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
}

.dashboard-direksi .executive-main {
  width: 100%;
  max-width: 100% !important;
  min-width: 0;
  overflow-x: hidden;
  padding: 20px 16px 40px !important;
}

.dashboard-direksi .executive-sidebar {
  width: 210px !important;
  flex-shrink: 0;
  transition: margin-left 0.25s ease, width 0.25s ease;
}

.dashboard-direksi .executive-sidebar.sidebar-collapsed {
  display: none !important;
}

/* Centered Detail Modal Guarantee */
#detailModal:not(.hidden) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
