:root {
  --sidebar-bg: #e8f0fe;
  --sidebar-active: #2d3053;
  --sidebar-active-rgb: 45, 48, 83;
  --sidebar-active-hover: #232544;
  --sidebar-text: #1a3a4a;
  --sidebar-text-dim: #33566a;
  --content-bg: #f4f6f9;
  --card-radius: 8px;
  --card-shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 4px 14px rgba(20, 24, 40, 0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--content-bg);
  color: #222;
}
.app { display: flex; height: 100vh; }

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s ease;
  overflow: hidden;
}
.sidebar.collapsed {
  width: 72px;
}
.sidebar-header-logo {
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}
.sidebar.collapsed .sidebar-header-title,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-chevron,
.sidebar.collapsed .submenu,
.sidebar.collapsed .sidebar-others-label,
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-user-chevron {
  display: none;
}
.sidebar.collapsed .nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
.sidebar.collapsed .sidebar-user {
  justify-content: center;
}
.sidebar-header {
  height: 60px;
  padding: 0 20px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}
.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.sidebar-toggle svg { width: 20px; height: 20px; }
.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 2px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--sidebar-text);
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,0.35); }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item.disabled { color: var(--sidebar-text-dim); cursor: not-allowed; opacity: 0.7; }
.nav-item.disabled:hover { background: none; }
.nav-icon { width: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-chevron { margin-left: auto; display: flex; align-items: center; transition: transform 0.15s; }
.nav-chevron svg { width: 14px; height: 14px; }
.nav-chevron.open { transform: rotate(180deg); }

.submenu {
  max-height: 0;
  overflow: hidden;
  margin: 0 0 0 32px;
  padding-left: 14px;
  border-left: 2px solid rgba(26,58,74,0.15);
  transition: max-height 0.2s ease;
}
.submenu.open { max-height: 300px; }
.subitem {
  position: relative;
  padding: 9px 12px 9px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--sidebar-text-dim);
  border-radius: 6px;
}
.subitem::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: rgba(26,58,74,0.15);
}
.subitem:hover { background: rgba(255,255,255,0.35); }
.subitem.active { color: var(--sidebar-active); font-weight: 600; }
.subitem[draggable="true"] { cursor: grab; }
.subitem.dragging { opacity: 0.4; cursor: grabbing; }

.main.drag-target { outline: 2px dashed var(--sidebar-active, #1a3a4a); outline-offset: -6px; }

.subitem-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--sidebar-text);
  border-radius: 6px;
}
.subitem-group:hover { background: rgba(255,255,255,0.35); }
.subitem-group .nav-chevron svg { width: 12px; height: 12px; }
.submenu-nested { margin-left: 14px; }

/* Others (Settings / Support) */
.sidebar-others { padding: 8px 12px; border-top: 1px solid rgba(0,0,0,0.08); }
.sidebar-others-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sidebar-text-dim);
  padding: 8px 16px 4px;
}

/* Bottom user block */
.sidebar-user-wrap { position: relative; border-top: 1px solid rgba(0,0,0,0.08); padding: 10px 14px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 4px; border-radius: 8px; }
.sidebar-user:hover { background: rgba(255,255,255,0.35); }
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center; color: var(--sidebar-text);
}
.sidebar-user-avatar svg { width: 18px; height: 18px; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 14px; font-weight: 600; color: var(--sidebar-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-email { font-size: 12px; color: var(--sidebar-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-chevron { display: flex; align-items: center; color: var(--sidebar-text-dim); }
.sidebar-user-chevron svg { width: 16px; height: 16px; }

/* Main */
.main { flex: 1; height: 100vh; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e2e5e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}
.topbar-icons { display: flex; gap: 20px; color: #666; }
.icon-btn { display: flex; align-items: center; }
.icon-btn svg { width: 20px; height: 20px; }

.notif-wrap { position: relative; }
.notif-bell { position: relative; background: none; border: none; padding: 0; color: inherit; cursor: pointer; }
.notif-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #d64545; color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center;
}
.notif-panel {
  display: none;
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 320px; max-height: 420px; overflow-y: auto;
  background: #fff; border: 1px solid #e2e5e9; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20,40,70,0.18); z-index: 50;
}
.notif-panel.open { display: block; }
.notif-panel-header { padding: 12px 12px 12px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: #222; border-bottom: 1px solid #eee; }
.notif-dismiss-all, .notif-dismiss { border: none; background: none; color: #8a94a0; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; }
.notif-dismiss-all:hover, .notif-dismiss:hover { color: #d64545; }
.notif-panel-list { display: flex; flex-direction: column; }
.notif-item { position: relative; padding: 12px 40px 12px 16px; cursor: pointer; border-bottom: 1px solid #f2f2f2; }
.notif-item:hover { background: #f4f6f9; }
.notif-item.unread { background: #eef5ff; }
.notif-dismiss { position: absolute; top: 10px; right: 12px; }
.notif-item-content { min-width: 0; }
.notif-item-message { font-size: 13px; color: #33566a; line-height: 1.4; }
.notif-item-time { font-size: 11px; color: #9aa3ad; margin-top: 4px; }
.notif-empty { padding: 24px 16px; text-align: center; color: #9aa3ad; font-size: 13px; }
.content { padding: 32px; flex: 1; overflow-y: auto; }
.content h1 { margin: 0 0 20px; font-size: 26px; font-weight: 600; color: #222; }
.card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.card-row { padding: 18px 22px; font-size: 15px; }
.card-row + .card-row { border-top: 1px solid #eee; }
.placeholder-box {
  background: #fff;
  border: 1px dashed #c3cbd3;
  border-radius: 6px;
  padding: 60px 24px;
  text-align: center;
  color: #8a94a0;
  font-size: 15px;
}
.footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
  color: #9aa3ad;
  font-size: 13px;
  border-top: 1px solid #e2e5e9;
}

/* Company Information */
.breadcrumb { color: #9aa3ad; font-size: 15px; }
.breadcrumb .current { color: #b7bfc7; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.ci-card { background: #fff; border: 1px solid #e2e5e9; border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.ci-layout { display: flex; align-items: stretch; }
.ci-steps {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid #eee;
  padding: 16px 0;
  background: #fafbfc;
}
.ci-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  cursor: pointer;
  user-select: none;
  border-left: 3px solid transparent;
}
.ci-step:hover { background: rgba(var(--sidebar-active-rgb), 0.06); }
.ci-step.active { background: rgba(var(--sidebar-active-rgb), 0.1); border-left-color: var(--sidebar-active); }
.ci-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dfe4e9;
  color: #556;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-step.active .ci-step-num { background: var(--sidebar-active); color: #fff; }
.ci-step-label { font-size: 14px; color: #333; }
.ci-step.active .ci-step-label { font-weight: 600; color: #111; }
.ci-content { flex: 1; padding: 28px 32px; min-width: 0; }
.ci-panel { display: none; }
.ci-panel.active { display: block; }
.ci-panel-title { margin: 0 0 20px; font-size: 17px; font-weight: 600; color: #222; }
.ci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.ci-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #222; }
.req { color: #e53935; }
.ci-field label .hint { font-weight: 400; color: #555; }
.ci-field input, .ci-field textarea, .ci-field select, .ci-field .pdp-ss-trigger {
  width: 100%;
  height: 42px;
  padding: 10px 12px;
  border: 1px solid #cdd3d9;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ci-field input:focus, .ci-field textarea:focus, .ci-field select:focus, .ci-field .pdp-ss-trigger:focus {
  outline: none;
  border-color: var(--sidebar-active);
  box-shadow: 0 0 0 3px rgba(var(--sidebar-active-rgb), 0.12);
}
.ci-field input[type="file"] { padding-top: 8px; padding-bottom: 8px; }
.ci-field input[readonly] { background: #f4f6f9; color: #667; }
.ci-field textarea { resize: vertical; min-height: 70px; }
.ci-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.btn { padding: 10px 22px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; color: #fff; }
.btn-simpan { background: var(--sidebar-active); }
.btn-simpan:hover { background: var(--sidebar-active-hover); }
.btn-next { background: #16a08a; }
.btn-next:hover { background: #128f7b; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* PDP modal (alert/confirm replacement) */
.pdp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,30,40,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.pdp-modal-card {
  background: #fff;
  border-radius: 10px;
  padding: 26px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(20,40,70,0.25);
}
.pdp-modal-message { margin: 0 0 20px; font-size: 14px; color: #222; line-height: 1.5; white-space: pre-line; }
.pdp-modal-check { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 13px; color: #444; cursor: pointer; }
.pdp-modal-check input { margin: 0; }
.pdp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Booking Order */
.bo-section-title { font-size: 15px; font-weight: 700; color: #222; margin: 0 0 16px; }
.bo-card { background: #fff; border: 1px solid #e2e5e9; border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: 24px 28px; margin-bottom: 20px; }
.bo-filter-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.bo-filter-head .bo-section-title { margin: 0; }
.bo-filter-body { margin-top: 16px; }
.bo-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.btn-outline { background: #fff; color: #444; border: 1px solid #cdd3d9; }
.btn-outline:hover { background: #f4f6f9; }
.btn-export { background: #1a9c5a; }
.btn-export:hover { background: #168a4f; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon svg { width: 14px; height: 14px; }
.bo-table-wrap.doc-card { overflow-x: auto; overflow-y: visible; }
.bo-table-wrap .doc-table td > div + div { border-top: 1px solid #eee; margin-top: 8px; padding-top: 8px; }
.bo-table-wrap .doc-table { min-width: 1200px; }
.bo-table-wrap .doc-table th { white-space: nowrap; background: #fafbfc; text-align: center; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.status-onprogress { background: #fff3cd; color: #8a6d00; }
.status-submitted { background: #dbeafe; color: #1d4ed8; }
.status-done { background: #d4f4e2; color: #147a45; }
.status-cancel { background: #fde2e1; color: #c62828; }
.status-pending { background: #e6edf5; color: #3a5a80; }
.status-canceled { background: #e2e2e2; color: #5a5a5a; }
.yesno-pill { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.yesno-yes { background: #d4f4e2; color: #147a45; }
.yesno-no { background: #fde2e1; color: #c62828; }
.bo-empty-cell { color: #9aa3ad; }
.bo-toolbar-split { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.bo-expand-btn {
  width: 30px; height: 30px; border: none; border-radius: 6px; cursor: pointer;
  background: #16a0a8; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.bo-expand-btn:hover { background: #128c93; }
.bo-expand-btn.open svg { transform: rotate(180deg); }
.bo-expand-btn svg { width: 14px; height: 14px; transition: transform 0.15s; }
.bo-detail-row td { background: #f7f9fb; padding: 18px 22px; font-size: 13px; color: #555; }
.bo-pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; flex-wrap: wrap; gap: 12px; }
.bo-pagination-left { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #444; }
.bo-pagination-left select, .bo-pagination-left .pdp-ss-trigger { padding: 6px 8px; border: 1px solid #cdd3d9; border-radius: 6px; }
.bo-pagination-nav { display: flex; gap: 6px; }
.bo-pagination-nav button {
  min-width: 32px; height: 32px; border: 1px solid #cdd3d9; background: #fff; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.bo-pagination-nav button.active { background: var(--sidebar-active); color: #fff; border-color: var(--sidebar-active); }
.bo-pagination-nav button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Booking Order Form */
.ci-grid-4col { grid-template-columns: repeat(4, 1fr); }
.bof-section-title { font-size: 13px; font-weight: 700; color: #222; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 18px; }
.bof-link { color: var(--sidebar-active); font-weight: 600; cursor: pointer; text-decoration: none; }
.bof-link:hover { text-decoration: underline; }
.bof-hint-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bof-hint-inline { float: right; font-size: 13px; color: #0f7f86; }
.bof-vessel-row { display: flex; gap: 8px; align-items: center; }
.bof-vessel-row select, .bof-vessel-row .pdp-ss-wrap { flex: 1; }
.bof-vessel-edit-btn {
  flex: none;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdd3d9;
  border-radius: 6px;
  background: #fff;
  color: var(--sidebar-active);
  font-size: 15px;
  cursor: pointer;
}
.bof-vessel-edit-btn:hover:not(:disabled) { background: #f4f6f9; }
.bof-vessel-edit-btn:disabled { color: #b7bec5; cursor: not-allowed; }
.bof-toggle-group { display: flex; gap: 16px; height: 42px; }
.bof-toggle-btn { flex: 1; border: 1px solid #cdd3d9; border-radius: 6px; background: #fff; color: #333; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.bof-toggle-btn:hover { border-color: #9aa3ad; }
.bof-toggle-btn.active { border-color: #16a0a8; background: rgba(22, 160, 168, 0.08); color: #0f7f86; }
.bof-add-btn { padding: 8px 18px; font-size: 13px; }

/* Booking Order Form — Shipping Instructions / Form 3D tables */
.bof-table { border: 1px solid #e2e5e9; border-radius: 8px; overflow: hidden; }
.bof-table-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #fafbfc; font-size: 13px; font-weight: 700; color: #222; padding: 12px 16px; border-bottom: 1px solid #e2e5e9; }
.bof-table.has-valid .bof-table-head { grid-template-columns: 1fr 1fr 90px; }
.bof-table.has-si-extra .bof-table-head { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr); }
.bof-table-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.bof-table.has-valid .bof-table-row { grid-template-columns: 1fr 1fr 90px; }
.bof-table.has-si-extra .bof-table-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr); }
.bof-table-row:last-child { border-bottom: none; }
.bof-table-row input[type="text"] { border: 1px solid #cdd3d9; border-radius: 6px; padding: 8px 10px; font-size: 13px; width: 100%; }
.bof-table-row.placeholder input[type="text"] { color: #9aa3ad; }
.bof-prefixed-input { display: flex; align-items: center; border: 1px solid #cdd3d9; border-radius: 6px; padding: 0 10px; }
.bof-prefixed-input .bof-input-prefix { font-size: 13px; color: #6b7280; flex-shrink: 0; }
.bof-prefixed-input input[type="text"] { border: none; padding: 8px 0 8px 2px; }
.bof-prefixed-input input[type="text"]:focus { outline: none; }
.bof-table-row.placeholder .bof-prefixed-input { color: #9aa3ad; }
.bof-file-cell { display: flex; align-items: center; gap: 10px; }
.bof-file-name { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bof-file-badge { flex-shrink: 0; background: #d4f4e2; color: #147a45; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.bof-dropzone { position: relative; flex: 1; border: 1px dashed #cdd3d9; border-radius: 6px; padding: 8px 10px; font-size: 13px; color: #9aa3ad; }
.bof-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bof-file-actions { flex-shrink: 0; display: flex; gap: 8px; }
.bof-file-actions .doc-btn { margin-right: 0; border-radius: 6px; }
.bof-valid-cell { display: flex; justify-content: center; }

/* Operation */
.op-add-bar {
  background: #fff; border: 1px solid #e2e5e9; border-radius: 6px; padding: 16px 20px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.op-add-bar:hover { background: #fbfcfd; }
.op-add-icon {
  width: 32px; height: 32px; border-radius: 8px; background: #e8f0fe; color: var(--sidebar-active);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; font-weight: 700;
}
.op-add-bar-text { flex: 1; min-width: 0; }
.op-add-bar-title { font-size: 15px; font-weight: 700; color: #222; }
.op-add-bar-sub { font-size: 13px; color: #8a94a0; margin-top: 2px; }
.op-add-bar-chevron { display: flex; color: #8a94a0; transition: transform 0.15s; }
.op-add-bar-chevron svg { width: 16px; height: 16px; }
.op-add-bar-chevron.open { transform: rotate(180deg); }
.op-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 20px; }
.op-form-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.op-form-hint { margin-top: 14px; font-size: 12px; color: #9aa3ad; }
.op-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.op-search-wrap { position: relative; flex: 1; max-width: 340px; }
.op-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9aa3ad; display: flex; }
.op-search-icon svg { width: 16px; height: 16px; }
.op-search-wrap input { width: 100%; padding: 10px 12px 10px 34px; border: 1px solid #cdd3d9; border-radius: 4px; font-size: 14px; }
.op-filter-bar select, .op-filter-bar .pdp-ss-trigger { padding: 10px 12px; border: 1px solid #cdd3d9; border-radius: 4px; font-size: 14px; color: #333; background: #fff; }
.op-filter-bar-actions { margin-left: auto; display: flex; gap: 10px; }
.op-num { text-align: right; font-variant-numeric: tabular-nums; }
.doc-btn-outline { background: #fff; color: var(--sidebar-active); border: 1px solid #dfe4e9; width: auto; height: auto; padding: 7px 16px; }
.doc-btn-outline:hover { background: #f4f6f9; }

/* Dokumen */
.doc-card { background: #fff; border: 1px solid #e2e5e9; border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th {
  text-align: left;
  font-size: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e5e9;
}
.doc-table th.op-th-group { text-align: center; border-bottom: none; }
.doc-table th.op-th-group .op-th-line { display: block; width: calc(100% - 12px); margin: 0 auto; padding-bottom: 15px; border-bottom: 1px solid #e2e5e9; }
.doc-table td { padding: 16px 22px; font-size: 14px; vertical-align: middle; }
.doc-table tr + tr td { border-top: 1px solid #eee; }
.doc-table td.doc-actions { white-space: nowrap; }
.doc-preview-link { color: var(--sidebar-active); text-decoration: none; }
.doc-preview-link:hover { text-decoration: underline; }
.doc-empty { color: #9aa3ad; }
.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #fff;
  margin-right: 6px;
}
.doc-btn-upload { background: var(--sidebar-active); }
.doc-btn-upload:hover { background: var(--sidebar-active-hover); }
.doc-btn-download { background: #16a08a; }
.doc-btn-download:hover { background: #128f7b; }
.doc-btn-delete { background: #e53935; }
.doc-btn-delete:hover { background: #cc2f2b; }

/* Dokumen preview modal */
.doc-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,30,40,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.doc-preview-card {
  background: #fff;
  border-radius: 8px;
  width: 90vw;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20,40,70,0.3);
}
.doc-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e5e9;
}
.doc-preview-head h2 { margin: 0; font-size: 16px; color: #1a3a4a; }
.doc-preview-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #6b7680;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-preview-close:hover { color: #1a3a4a; }
.doc-preview-body { flex: 1; background: #202124; }
.doc-preview-body iframe { width: 100%; height: 100%; border: none; }
.doc-preview-foot {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid #e2e5e9;
}

/* Partner Cooperation upload modal */
#pcUploadOverlay { align-items: center; padding: 24px 0; box-sizing: border-box; }
#pcUploadOverlay.pc-has-preview { padding: 8px 0; }
#pcUploadOverlay.pc-has-preview .pc-modal-card.pc-modal-card { height: calc(100vh - 16px); }
.pc-modal-card.pc-modal-card {
  max-width: 860px;
  padding: 0;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
}
.pc-modal-card .doc-preview-head { padding: 20px 26px; flex-shrink: 0; }
.pc-modal-card .doc-preview-head h2 { font-size: 16px; margin: 0; }
.pc-modal-body { overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pc-modal-grid { grid-template-columns: 1fr 1fr; padding: 22px 26px 22px; margin: 0; }
.pc-modal-card .ci-actions { padding: 10px 26px; margin-top: 0; flex-shrink: 0; border-top: 1px solid #eee; }
.pc-modal-error {
  margin: 0 26px;
  padding: 10px 14px;
  background: #fde2e1;
  color: #c62828;
  border-radius: 4px;
  font-size: 13px;
}
.pc-modal-preview { display: none; }
.pc-modal-preview.pc-modal-preview-visible { padding: 0 26px 22px; flex: 1; display: flex; flex-direction: column; min-height: 300px; }
.pc-modal-preview label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; color: #222; flex-shrink: 0; }
.pc-modal-preview iframe { width: 100%; flex: 1; border: 1px solid #d5dae0; border-radius: 6px; }

/* Barge Schedule LHV/COA preview: fixed left/right slots, placeholder for the missing file */
#borPreviewRow .pc-modal-preview { display: flex; flex-direction: column; flex: 1; min-height: 300px; padding: 0 0 8px; }
#borPreviewRow .pc-modal-preview iframe { display: none; }
#borPreviewRow .pc-modal-preview.pc-modal-preview-visible iframe { display: block; }
#borPreviewRow .pc-modal-preview-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; border: 1px dashed #d5dae0; border-radius: 6px; color: #8a94a6; font-size: 13px; }
#borPreviewRow .pc-modal-preview.pc-modal-preview-visible .pc-modal-preview-placeholder { display: none; }

/* Partner Cooperation date picker */
.pc-datepicker {
  position: absolute;
  z-index: 1000;
  width: 240px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20,40,70,0.18);
  padding: 8px;
  box-sizing: border-box;
  font-size: 12px;
}
.pc-dp-header { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.pc-dp-select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #d5dae0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #222;
  background: #fff;
}
.pc-dp-nav {
  background: none;
  border: none;
  font-size: 14px;
  line-height: 1;
  color: #556;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
}
.pc-dp-nav:hover { background: #f0f3f6; }
.pc-dp-nav:disabled { color: #c9d0d6; cursor: not-allowed; }
.pc-dp-nav:disabled:hover { background: none; }
.pc-dp-select option:disabled { color: #b7bfc7; }
.pc-dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 10px;
  color: #333;
  margin-bottom: 2px;
}
.pc-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.pc-dp-day {
  background: none;
  border: none;
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1;
  padding: 4px;
  font-size: 13px;
  color: #222;
  cursor: pointer;
}
.pc-dp-day:hover { background: #f0f3f6; }
.pc-dp-day.muted { color: #b7bfc7; }
.pc-dp-day.disabled { color: #c9d0d6; text-decoration: line-through; cursor: not-allowed; }
.pc-dp-day.disabled:hover { background: none; }
.pc-dp-day.selected { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.pc-dp-time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
}
.pc-dp-time .pc-dp-select { text-align: center; }
.pc-dp-time-sep { color: #556; font-weight: 600; }
.pc-dp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
}
.pc-dp-footer .btn { padding: 4px 10px; font-size: 11px; }
#pcContractEndDate, #bofEta, #bofEtd, #bofLayCanFrom, #bofLayCanTo, #borModalDate, #borModalEta { cursor: pointer; background: #fff; }

/* Booking Order calendar view */
.bo-cal-wrap.doc-card { padding: 20px 24px; }
.bo-cal-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.bo-cal-nav { display: flex; align-items: center; gap: 6px; }
.bo-cal-nav-btn { font-size: 18px; padding: 2px 8px; }
.bo-cal-label { font-size: 15px; font-weight: 700; color: #222; min-width: 150px; text-align: center; }
.bo-cal-today-btn { padding: 5px 12px; font-size: 12px; }
.bo-cal-mode-switch { display: flex; border: 1px solid #cdd3d9; border-radius: 6px; overflow: hidden; }
.bo-cal-mode-btn { border: none; background: #fff; color: #444; font-size: 12px; font-weight: 600; padding: 6px 14px; cursor: pointer; }
.bo-cal-mode-btn + .bo-cal-mode-btn { border-left: 1px solid #cdd3d9; }
.bo-cal-mode-btn.active { background: var(--sidebar-active); color: #fff; }
.bo-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 700; font-size: 11px; color: #556; padding: 6px 0; border-bottom: 1px solid #eef0f2; }
.bo-cal-weekdays-date { font-weight: 600; color: #333; margin-left: 2px; }
.bo-cal-week-row { position: relative; }
.bo-cal-grid-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.bo-cal-day { border-right: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; border-left: 1px solid #eef0f2; padding: 4px 5px 0; min-width: 0; }
.bo-cal-grid-row .bo-cal-day + .bo-cal-day { border-left: none; }
.bo-cal-day.muted { background: #fafbfc; }
.bo-cal-day.muted .bo-cal-day-num { color: #b7bfc7; }
.bo-cal-day.today { background: #eef6ff; }
.bo-cal-day-num { font-size: 12px; font-weight: 600; color: #333; }
.bo-cal-bars-layer { position: absolute; inset: 0; pointer-events: none; }
.bo-cal-bar {
  position: absolute;
  box-sizing: border-box;
  height: 18px;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  pointer-events: auto;
}
.bo-cal-bar-barge { background: #d9e6f2; color: #2b4a6b; font-weight: 500; }
.bo-cal-empty { color: #b7bfc7; font-size: 11px; }
.bo-cal-popover {
  position: absolute;
  z-index: 1000;
  width: 240px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20,40,70,0.18);
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 12px;
}
.bo-cal-popover-title { font-size: 13px; font-weight: 700; color: #222; margin-bottom: 8px; }
.bo-cal-popover-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; color: #445; }
.bo-cal-popover-row > span:first-child { color: #8a94a0; font-weight: 600; }

/* Weather */
.bmkg-attr { margin-top: 18px; font-size: 12px; color: #8a94a0; text-align: right; }
.wx-legend { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.wx-legend-title { font-size: 13px; color: #667; font-weight: 600; }
.wx-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.wx-layout { display: flex; gap: 20px; align-items: flex-start; }
.wx-list-col { width: 340px; flex-shrink: 0; }
.wx-list-head { font-size: 13px; color: #667; margin-bottom: 10px; font-weight: 600; }
.wx-alert-list { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; }
.wx-alert-card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-left: 4px solid var(--sidebar-active);
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
}
.wx-alert-card:hover { background: #f7fafd; }
.wx-alert-card.active { background: rgba(var(--sidebar-active-rgb), 0.08); }
.wx-alert-title { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.wx-alert-meta { font-size: 12px; color: #8a94a0; }
.wx-map-col { flex: 1; min-width: 0; }
.wx-map { width: 100%; height: 380px; border-radius: 6px; border: 1px solid #e2e5e9; }
.wx-map-small { height: 160px; width: 260px; flex-shrink: 0; }
.wx-detail { margin-top: 16px; }
.wx-detail-card { background: #fff; border: 1px solid #e2e5e9; border-radius: 6px; padding: 20px; }
.wx-detail-card h3 { margin: 10px 0; font-size: 18px; }
.wx-detail-row { font-size: 14px; margin-bottom: 6px; color: #333; }
.wx-detail-desc { font-size: 14px; color: #444; line-height: 1.6; margin-top: 12px; }
.wx-infografik-link { display: inline-block; margin-top: 12px; color: var(--sidebar-active); font-weight: 600; text-decoration: none; }
.wx-infografik-link:hover { text-decoration: underline; }

.wx-search-row { display: flex; gap: 10px; margin-bottom: 20px; }
.wx-autocomplete { position: relative; flex: 1; max-width: 420px; }
.wx-autocomplete input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cdd3d9;
  border-radius: 4px;
  font-size: 14px;
}
.wx-suggest-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cdd3d9;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 20;
}
.wx-suggest-list.open { display: block; }
.wx-suggest-item { padding: 9px 14px; cursor: pointer; }
.wx-suggest-item:hover { background: #f0f6fc; }
.wx-suggest-item + .wx-suggest-item { border-top: 1px solid #f0f2f4; }
.wx-suggest-main { font-size: 14px; color: #222; font-weight: 600; }
.wx-suggest-sub { font-size: 12px; color: #8a94a0; margin-top: 2px; }
.wx-suggest-empty { padding: 12px 14px; color: #8a94a0; font-size: 13px; }
.bof-country-select { position: relative; }
.bof-country-trigger {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #cdd3d9;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}
.bof-country-trigger:hover { border-color: #aeb6bd; }
.bof-country-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #cdd3d9;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  overflow: hidden;
}
.bof-country-panel.open { display: block; }
.bof-country-search {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #e2e5e9;
  font-size: 14px;
  outline: none;
}
.bof-country-list { max-height: 260px; overflow-y: auto; }
.bof-country-item { padding: 9px 14px; font-size: 14px; color: #222; cursor: pointer; }
.bof-country-item:hover { background: var(--sidebar-active, #3b82f6); color: #fff; }
.bof-country-empty { padding: 12px 14px; color: #8a94a0; font-size: 13px; }
.pdp-ss-wrap { position: relative; flex: 1; min-width: 0; }
.pdp-ss-native.pdp-ss-native { position: absolute; opacity: 0; pointer-events: none; height: 1px; width: 1px; overflow: hidden; }
.pdp-ss-trigger {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #cdd3d9;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}
.pdp-ss-trigger:hover { border-color: #aeb6bd; }
.pdp-ss-trigger.placeholder { color: #8a94a0; }
.pdp-ss-trigger.pdp-ss-disabled { background: #f4f5f6; color: #aeb6bd; cursor: not-allowed; }
.pdp-ss-panel {
  display: none;
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #cdd3d9;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  overflow: hidden;
}
.pdp-ss-panel.open { display: block; }
.pdp-ss-search {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #e2e5e9;
  font-size: 14px;
  outline: none;
}
.pdp-ss-list { max-height: 260px; overflow-y: auto; }
.pdp-ss-item { padding: 9px 14px; font-size: 14px; color: #222; cursor: pointer; }
.pdp-ss-item:hover, .pdp-ss-item.selected { background: var(--sidebar-active, #3b82f6); color: #fff; }
.pdp-ss-empty { padding: 12px 14px; color: #8a94a0; font-size: 13px; }
.wx-location-card {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.wx-location-left { flex: 1; min-width: 0; }
.wx-location-name { font-size: 18px; font-weight: 700; color: #222; }
.wx-location-sub { font-size: 14px; color: #667; margin-top: 4px; }
.wx-now {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  background: #f8f9fb;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  color: #222;
  flex-wrap: wrap;
}
.wx-now-icon { width: 56px; height: 56px; flex-shrink: 0; }
.wx-now-main { min-width: 140px; }
.wx-now-temp { font-size: 34px; font-weight: 700; line-height: 1.1; color: #222; }
.wx-now-desc { font-size: 15px; font-weight: 600; margin-top: 2px; color: #333; }
.wx-now-time { font-size: 12px; color: #8a94a0; margin-top: 4px; }
.wx-now-metrics { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.wx-metric {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 118px;
  text-align: center;
}
.wx-metric-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #667;
  background: #eef1f5;
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.wx-metric-value { font-size: 20px; font-weight: 700; color: #1a2733; }
.wx-metric-value-lg { font-size: 28px; padding: 7px 0; }
.wx-metric-value-lg .wx-metric-unit { font-size: 15px; }
.wx-metric-unit { font-size: 13px; font-weight: 500; color: #78828c; margin-left: 4px; }
.wx-metric-sub { font-size: 13px; color: #556; margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wx-metric-arrow { display: block; font-weight: 700; }
/* Forecast timeline */
.wx-tl-wrap { background: #fff; border: 1px solid #e2e5e9; border-radius: 6px; padding: 20px 0; }
.wx-tl-scroll { overflow-x: auto; }
.wx-tl-inner { width: max-content; min-width: 100%; padding: 0 22px; }
.wx-tl-row { display: grid; grid-template-columns: repeat(var(--wx-tl-cols), 78px); }
.wx-tl-cell {
  padding: 6px 4px;
  text-align: center;
  font-size: 13px;
  color: #333;
  border-left: 1px solid transparent;
}
.wx-tl-daystart { border-left: 1px solid #e2e5e9; }
.wx-tl-day-row { padding-bottom: 10px; }
.wx-tl-day-cell {
  padding: 0 4px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.wx-tl-hour-row {
  background: #f7f9fb;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  padding: 10px 0;
  margin-bottom: 14px;
}
.wx-tl-hour-row .wx-tl-cell { font-weight: 700; color: #222; }
.wx-tl-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667;
  background: #eef1f5;
  padding: 4px 10px;
  border-radius: 10px;
  margin: 18px 0 10px;
}
.wx-tl-icon { width: 30px; height: 30px; }
.wx-tl-temp { font-size: 17px; font-weight: 700; color: #222; margin-top: 6px; }
.wx-tl-hum { font-size: 13px; color: #8a94a0; }
.wx-tl-wind-speed { font-size: 15px; font-weight: 700; color: #222; }
.wx-tl-wind-dir { font-size: 13px; color: #556; margin-top: 4px; }
.wx-tl-vis { font-size: 14px; font-weight: 600; color: #333; }
.wx-tl-unit { font-size: 12px; font-weight: 500; color: #78828c; margin-left: 2px; }

/* Master dashboard */
@keyframes masterCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.master-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.master-toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 360px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.master-toolbar-search:focus-within {
  border-color: var(--sidebar-active);
  box-shadow: 0 0 0 3px rgba(var(--sidebar-active-rgb), 0.12);
}
.master-toolbar-search svg { width: 16px; height: 16px; color: #9aa3ad; flex-shrink: 0; }
.master-toolbar-search input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  background: transparent;
  color: #222;
}
.master-toolbar-count { font-size: 13px; color: #8a94a0; font-weight: 600; }
.master-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.master-customer-card {
  padding: 20px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: masterCardIn 0.35s ease both;
  animation-delay: var(--master-card-delay, 0ms);
  position: relative;
  overflow: hidden;
}
.master-customer-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sidebar-active), #5a5fa8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.master-customer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 24, 40, 0.1);
  border-color: #c3cbd3;
}
.master-customer-card:hover::before { transform: scaleX(1); }
.master-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.master-card-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sidebar-active), #5a5fa8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.master-card-heading { flex: 1; min-width: 0; }
.master-card-heading .ci-panel-title { margin: 0; }
.master-card-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-active);
  background: var(--sidebar-bg);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.master-card-arrow svg { width: 14px; height: 14px; }
.master-customer-card:hover .master-card-arrow { opacity: 1; transform: translateX(0); }
.master-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 10px;
}
.master-kpi {
  background: #fafbfc;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.master-customer-card:hover .master-kpi { background: #f5f7fb; border-color: #e2e5e9; }
.master-kpi-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  color: var(--sidebar-active);
  display: flex;
  align-items: center;
  justify-content: center;
}
.master-kpi-icon svg { width: 14px; height: 14px; }
.master-kpi-alert .master-kpi-icon { background: #fdecea; color: #c0392b; }
.master-kpi-alert .master-kpi-value { color: #c0392b; }
.master-kpi-value { font-size: 19px; font-weight: 700; color: #222; line-height: 1.2; }
.master-kpi-label { font-size: 11px; color: #8a94a0; margin-top: 1px; }
.master-kpi-lastactivity { font-size: 12px; color: #9aa3ad; margin-top: 2px; }
.master-readonly-banner {
  background: #fff8e6;
  border: 1px solid #f0deac;
  color: #7a5c00;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Jisdor & Kurs Tengah */
.bikurs-filter { margin-bottom: 16px; }
.bikurs-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.bikurs-filter-body {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
  font-size: 13px;
}
.bikurs-filter-body.open { display: flex; }
.bikurs-filter-body label { display: flex; flex-direction: column; gap: 4px; color: #556; }
.bikurs-filter-body input[type="text"] {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cdd3d9;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  box-sizing: border-box;
  font-size: 14px;
}
.bikurs-filter-body .btn {
  height: 40px;
  padding: 0 22px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bikurs-filter-spacer { visibility: hidden; }
.bikurs-warning {
  background: #fff8e6;
  border: 1px solid #f0deac;
  color: #7a5c00;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.bikurs-warning a { color: #7a5c00; text-decoration: underline; }

.bikurs-chart-card { margin-bottom: 16px; padding: 16px 18px; }
.bikurs-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.bikurs-chart-legend { display: flex; gap: 4px; flex-wrap: wrap; font-size: 12px; font-weight: 400; }
.bikurs-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #556;
  font: inherit;
}
.bikurs-legend-item:hover { background: #f4f6f9; }
.bikurs-legend-item.off { color: #aab0b7; text-decoration: line-through; }
.bikurs-legend-swatch { display: inline-block; width: 14px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.bikurs-chart-wrap { position: relative; width: 100%; height: 260px; }
.bikurs-chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bikurs-chart-grid { stroke: #e1e0d9; stroke-width: 1; }
.bikurs-chart-axis { stroke: #c3c2b7; stroke-width: 1; }
.bikurs-chart-axis-label { fill: #898781; font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.bikurs-chart-crosshair { stroke: #c3c2b7; stroke-width: 1; transition: opacity 0.1s; }
.bikurs-chart-tooltip {
  position: absolute;
  z-index: 5;
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(11, 11, 11, 0.12);
  padding: 10px 12px;
  font-size: 12px;
  pointer-events: none;
  min-width: 170px;
}
.bikurs-chart-tooltip-date { font-weight: 600; color: #222; margin-bottom: 6px; }
.bikurs-chart-tooltip-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.bikurs-chart-tooltip-key { display: inline-block; width: 12px; height: 2px; border-radius: 2px; flex-shrink: 0; }
.bikurs-chart-tooltip-label { color: #556; flex: 1; }
.bikurs-chart-tooltip-value { font-weight: 600; color: #222; font-variant-numeric: tabular-nums; }

/* Booking Order Review */
.bor-page { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #0f172a; }
.bor-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.bor-header-spacer { position: sticky; top: -32px; height: 32px; margin-bottom: -32px; background: var(--content-bg); z-index: 4; }
.bor-header { position: sticky; top: 0; z-index: 5; background: #0f172a; border-radius: 11px; padding: 20px 26px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.bor-header-left { display: flex; flex-direction: column; gap: 9px; }
.bor-eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 700; color: #5eead4; letter-spacing: .14em; }
.bor-booking-number { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.bor-created { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: #94a3b8; }
.bor-header-right { display: flex; align-items: flex-start; gap: 22px; }
.bor-header-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.14); }
.bor-header-stat { text-align: right; }
.bor-header-stat-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: .1em; margin-bottom: 6px; }
.bor-header-stat-value { font-size: 20px; font-weight: 800; color: #fff; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bor-header-stat-value .bor-unit-light { font-size: 12px; color: #94a3b8; font-weight: 700; margin-left: 3px; font-family: 'Manrope', sans-serif; }
.bor-status-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(45,212,191,.14); border: 1px solid rgba(45,212,191,.4); border-radius: 999px; padding: 5px 12px; font-size: 11.5px; font-weight: 700; color: #5eead4; }
.bor-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; flex-shrink: 0; }

.bor-card { background: #fff; border: 1px solid #e3e8ee; border-radius: 11px; overflow: hidden; margin-bottom: 18px; }
.bor-detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.bor-group-header { grid-column: 1 / -1; padding: 11px 18px; background: #f8fafc; border-bottom: 1px solid #e3e8ee; font-size: 10.5px; font-weight: 700; color: #0f766e; letter-spacing: .1em; text-transform: uppercase; }
.bor-cell { padding: 15px 18px; border-right: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; min-width: 0; }
.bor-label { font-size: 10.5px; font-weight: 600; color: #8a97a8; text-transform: uppercase; letter-spacing: .06em; }
.bor-value { font-size: 13.5px; font-weight: 700; color: #0f172a; margin-top: 7px; line-height: 1.35; text-wrap: pretty; }
.bor-value.bor-mono { font-size: 13.5px; }
.bor-value .bor-mono { white-space: nowrap; }
.bor-value-empty { color: #c3ccd8; font-weight: 600; }
.bor-sub { display: block; margin-top: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #8a97a8; font-weight: 500; }
.bor-chip { display: inline-block; padding: 3px 10px; background: #f0fdfa; border: 1px solid #99e6db; border-radius: 6px; color: #0f766e; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.bor-unit { font-size: 11.5px; color: #8a97a8; font-weight: 600; margin-left: 3px; }
.bor-doc-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; flex-wrap: wrap; }

.bor-btn { border-radius: 7px; font-size: 12px; font-weight: 700; padding: 8px 16px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; font-family: 'Manrope', sans-serif; }
.bor-btn-outline { background: #fff; border-color: #cfd6de; color: #334155; }
.bor-btn-outline:hover { background: #f8fafc; }
.bor-btn-solid { background: #0f766e; border-color: #0f766e; color: #fff; }
.bor-btn-solid:hover { background: #0c5f59; }
.bor-btn-danger-outline { background: #fff; border-color: #f3c8cf; color: #be123c; }
.bor-btn-danger-outline:hover { background: #fef4f5; }
.bor-btn-small { font-size: 11px; padding: 5px 10px; border-radius: 6px; }

.bor-two-col { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.bor-panel-title-row { padding: 14px 18px; border-bottom: 1px solid #e3e8ee; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bor-panel-title { font-size: 14px; font-weight: 800; color: #0f172a; }
.bor-panel-subtitle { font-size: 12px; font-weight: 500; color: #64748b; margin-left: 8px; }
.bor-panel-helper { font-size: 11.5px; color: #64748b; text-align: right; }
.bor-panel-helper a { color: #0f766e; font-weight: 600; cursor: pointer; text-decoration: none; }
.bor-panel-helper a:hover { text-decoration: underline; }

.bor-surveyor-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.bor-surveyor-grid .bor-th { padding: 10px 18px; font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; background: #f8fafc; border-bottom: 1px solid #e3e8ee; }
.bor-surveyor-grid .bor-td { padding: 14px 18px; font-size: 13px; font-weight: 600; color: #0f172a; }

.bor-form-body { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bor-form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bor-form-field.bor-span-2 { grid-column: 1 / -1; }
.bor-form-field label { font-size: 11.5px; font-weight: 700; color: #334155; }
.bor-select { height: 42px; border: 1px solid #cfd6de; border-radius: 8px; padding: 0 12px; font-size: 14px; font-weight: 600; color: #0f172a; background: #fff; width: 100%; font-family: 'Manrope', sans-serif; }
.bor-select option { font-size: 14px; padding: 8px 12px; }
.bor-clearable { position: relative; display: flex; align-items: center; border: 1px solid #cfd6de; border-radius: 8px; height: 38px; padding: 0 8px 0 12px; gap: 6px; background: #fff; }
.bor-clearable-value { flex: 1; font-size: 12.5px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bor-clearable-x { border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 13px; line-height: 1; padding: 2px; flex-shrink: 0; }
.bor-clearable-x:hover { color: #334155; }
.bor-clearable-caret { color: #94a3b8; font-size: 11px; flex-shrink: 0; }

.bor-table-head-row { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e8ee; gap: 12px; flex-wrap: wrap; }
.bor-count-chip { background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 8px; }
.bor-table-scroll { overflow-x: auto; }
.bor-barge-grid { display: grid; grid-template-columns: 1.05fr 1.25fr 1.85fr .95fr .7fr .95fr .45fr .45fr .9fr; }
.bor-barge-grid .bor-th { padding: 10px 12px; font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; background: #f8fafc; border-bottom: 1px solid #e3e8ee; }
.bor-barge-grid .bor-td { padding: 11px 12px; font-size: 12.5px; font-weight: 500; color: #334155; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; background: #fff; }
.bor-barge-row-even .bor-td { background: #fbfcfd; }
.bor-td-tugboat { font-size: 12.5px; font-weight: 600; color: #0f172a; }
.bor-td-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #475569; font-size: 11.5px; }
.bor-td-plan { justify-content: flex-end; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 600; font-size: 12px; color: #334155; }
.bor-td-center { justify-content: center; }
.bor-download { color: #0f766e; font-weight: 700; }
.bor-empty-dash { color: #c3ccd8; }
.bor-actions-cell { justify-content: flex-end; gap: 6px; }
.bor-empty-row { grid-column: 1 / -1; padding: 22px; text-align: center; color: #c3ccd8; font-size: 13px; }

.bor-footer { border-top: 1px solid #e3e8ee; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 0 0 11px 11px; }
.bor-footer-left { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bor-footer-label { font-size: 12px; font-weight: 600; color: #64748b; }
.bor-footer-value { font-size: 17px; font-weight: 800; color: #0f766e; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bor-footer-note { font-size: 12px; color: #64748b; }
.bor-footer-note.bor-mismatch { color: #be123c; font-weight: 600; }
.bor-footer-actions { display: flex; gap: 10px; }

.bor-chat-list { max-height: 260px; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bor-chat-empty { color: #94a3b8; font-size: 13px; padding: 4px 0; }
.bor-chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 10px; background: #f1f5f9; }
.bor-chat-msg.bor-chat-master { align-self: flex-start; background: #e6edf5; }
.bor-chat-msg.bor-chat-customer { align-self: flex-end; background: #d4f4e2; }
.bor-chat-meta { font-size: 11px; color: #64748b; margin-bottom: 3px; }
.bor-chat-meta strong { color: #334155; }
.bor-chat-text { font-size: 13px; color: #1f2937; white-space: pre-wrap; }
.bor-chat-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid #e3e8ee; }
.bor-chat-input-row input { flex: 1; border: 1px solid #cfd6de; border-radius: 7px; padding: 8px 12px; font-size: 13px; font-family: 'Manrope', sans-serif; }

@media (max-width: 1100px) {
  .bor-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .bor-two-col { grid-template-columns: 1fr; }
  .bor-barge-grid { min-width: 920px; }
  .bor-barge-grid .bor-td:first-child, .bor-barge-grid .bor-th:first-child { position: sticky; left: 0; z-index: 2; }
  .bor-barge-grid .bor-th:first-child { background: #f8fafc; }
  .bor-barge-grid .bor-td:first-child { background: #fff; }
  .bor-barge-row-even .bor-td:first-child { background: #fbfcfd; }
}

/* Master Chat module */
.master-chat-layout { display: flex; height: calc(100vh - 150px); min-height: 420px; background: #fff; border: 1px solid #e3e8ee; border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); }
.master-chat-threads { width: 340px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid #e3e8ee; }
.master-chat-thread-item { cursor: pointer; }
.master-chat-thread-item.master-chat-thread-active { background: #e6edf5; }
.master-chat-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.master-chat-thread-name { font-size: 13px; font-weight: 700; color: #1a3a4a; }
.master-chat-thread-sub { font-size: 11px; color: #64748b; margin: 2px 0 4px; }
.master-chat-thread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #c62828; color: #fff; font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.master-chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.master-chat-pane-head { padding: 14px 20px; border-bottom: 1px solid #e3e8ee; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.master-chat-pane-title { font-size: 14px; font-weight: 700; color: #1a3a4a; }
.master-chat-pane-sub { font-size: 11.5px; color: #64748b; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.master-chat-pane #masterChatMessages { flex: 1; }
.master-chat-empty-pane { flex: 1; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; text-align: center; padding: 20px; }

.master-chat-decision-overlay { position: fixed; inset: 0; background: rgba(20,30,40,0.55); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 24px 0; box-sizing: border-box; }
.master-chat-decision-card { max-width: 760px; }
.master-chat-decision-card textarea { width: 100%; border: 1px solid #cfd6de; border-radius: 7px; padding: 8px 12px; font-size: 13px; font-family: 'Manrope', sans-serif; resize: vertical; min-height: 70px; }

@media (max-width: 900px) {
  .master-chat-layout { flex-direction: column; height: auto; }
  .master-chat-threads { width: 100%; max-height: 260px; border-right: none; border-bottom: 1px solid #e3e8ee; }
  .master-chat-pane { min-height: 420px; }
}

/* Booking Order Review — Barge Schedule modal */
.ci-grid-3col { grid-template-columns: repeat(3, 1fr); }
#borBargeModalOverlay { align-items: center; padding: 24px 0; box-sizing: border-box; }
#borBargeModalOverlay.bor-has-preview { padding: 8px 0; }
#borBargeModalOverlay.bor-has-preview .pc-modal-card.pc-modal-card { height: calc(100vh - 16px); }
#borBargeModalOverlay .pc-modal-card.pc-modal-card.bor-barge-modal-card { max-width: 1280px; }
