/* Penyesuaian tema Synadmin untuk Portal Vendor JBSP */
:root {
	--jbsp-navy: #092837;
	--jbsp-lime: #C9F31D;
}

html.semi-dark .sidebar-wrapper,
html.semi-dark .sidebar-wrapper .sidebar-header {
	background: var(--jbsp-navy);
}
html.semi-dark .sidebar-wrapper .metismenu .mm-active>a,
html.semi-dark .sidebar-wrapper .metismenu a:hover {
	background: rgba(201, 243, 29, .16);
	color: var(--jbsp-lime);
}
html.semi-dark .sidebar-wrapper .metismenu .menu-label {
	color: rgba(255, 255, 255, .45);
}
.sidebar-header .logo-mark {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--jbsp-lime);
	color: var(--jbsp-navy);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}
.sidebar-header .logo-text {
	font-size: 17px;
	line-height: 1.1;
}
.sidebar-header .logo-text small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	opacity: .7;
}

.topbar .branch-chip {
	font-size: 12px;
	border-radius: 30px;
	padding: 4px 12px;
	background: rgba(9, 40, 55, .08);
	color: var(--jbsp-navy);
	white-space: nowrap;
}
html.dark-theme .topbar .branch-chip { background: rgba(255,255,255,.1); color: #fff; }

.stat-card .widgets-icons-2 { width: 52px; height: 52px; font-size: 26px; }
.stat-card h4 { font-size: 1.3rem; }

.page-breadcrumb .breadcrumb-title { font-weight: 500; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table-sm td, .table-sm th { font-size: 13.5px; }

.form-section-title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-weight: 600;
	color: var(--jbsp-navy);
	border-left: 4px solid var(--jbsp-lime);
	padding-left: 10px;
	margin: 8px 0 16px;
}
html.dark-theme .form-section-title { color: #fff; }
.required-mark::after { content: " *"; color: #dc3545; }

.doc-item {
	border: 1px dashed #ced4da;
	border-radius: 8px;
	padding: 12px;
	height: 100%;
}
.doc-item.has-file { border-style: solid; border-color: #198754; background: rgba(25,135,84,.04); }

.timeline-portal { position: relative; padding-left: 28px; }
.timeline-portal::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: #e9ecef; }
.timeline-portal .tl-item { position: relative; margin-bottom: 18px; }
.timeline-portal .tl-icon {
	position: absolute; left: -28px; top: 0; width: 24px; height: 24px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff;
}
.timeline-portal .tl-item.is-comment .tl-body { background: rgba(13,110,253,.05); border-radius: 8px; padding: 8px 12px; }

.product-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.img-preview-grid img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }

.aging-table th, .aging-table td { white-space: nowrap; }
.amount { font-variant-numeric: tabular-nums; }

.auth-brand {
	display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
}
.auth-brand .logo-mark {
	width: 48px; height: 48px; border-radius: 12px; background: var(--jbsp-navy); color: var(--jbsp-lime);
	font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.auth-brand .title { color: var(--jbsp-navy); font-weight: 600; font-size: 18px; line-height: 1.2; text-align: left; }
.auth-brand .title small { display: block; font-weight: 400; font-size: 12px; color: #6c757d; }
.authentication-header { background: var(--jbsp-navy) !important; }

.otp-input { letter-spacing: 12px; font-size: 28px; text-align: center; font-weight: 600; }

.header-notifications-list { max-height: 360px; overflow-y: auto; }
.header-notifications-list .msg-info { white-space: normal; }

/* Halaman auth dengan form panjang (pendaftaran vendor) */
.auth-wide-page { position: relative; padding: 40px 0 60px; }
@media (max-width: 767px) { .auth-wide-page { padding-top: 20px; } }

/* ===== Komponen "mudah dipahami" ===== */

/* Banner langkah berikutnya */
.next-step { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-radius: 14px; padding: 18px 22px; border: 1px solid; background: #fff; }
.next-step-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.next-step-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; opacity: .75; }
.next-step-title { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 2px 0 4px; }
.next-step-text { color: #495057; }
.next-step-action .btn { white-space: nowrap; }
.next-step-warning { border-color: #ffc107; background: #fffaeb; } .next-step-warning .next-step-icon { background: #ffc107; color: #3d2e00; }
.next-step-danger { border-color: #f1a6ae; background: #fff4f5; } .next-step-danger .next-step-icon { background: #dc3545; color: #fff; }
.next-step-success { border-color: #9fd8b6; background: #f1fbf5; } .next-step-success .next-step-icon { background: #198754; color: #fff; }
.next-step-info { border-color: #9fdcef; background: #f0fafd; } .next-step-info .next-step-icon { background: #0dcaf0; color: #fff; }
.next-step-primary { border-color: #b8c6f8; background: #f4f6ff; } .next-step-primary .next-step-icon { background: var(--jbsp-navy); color: var(--jbsp-lime); }
.next-step-secondary { border-color: #d6d8db; background: #f8f9fa; } .next-step-secondary .next-step-icon { background: #6c757d; color: #fff; }
html.dark-theme .next-step { background: rgba(255,255,255,.04); } html.dark-theme .next-step-text { color: #ced4da; }

/* Kotak panduan halaman */
.page-help { display: flex; gap: 14px; align-items: flex-start; background: #fffdf2; border: 1px dashed #e0c860; border-radius: 12px; padding: 14px 18px; }
.page-help-icon { font-size: 26px; color: #c49a00; line-height: 1; }
.page-help-body { color: #495057; }
.page-help-body ol, .page-help-body ul { margin: 4px 0 0; padding-left: 18px; }
html.dark-theme .page-help { background: rgba(255,255,255,.04); } html.dark-theme .page-help-body { color: #ced4da; }

/* Daftar tugas di dashboard */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid #e9ecef; background: #fff; }
.task-item .t-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.task-item .t-count { font-size: 26px; font-weight: 700; min-width: 42px; text-align: center; }
.task-item .t-text { flex: 1; }
.task-item .t-text strong { display: block; font-size: 16px; }
.task-item .t-text span { color: #6c757d; font-size: 13px; }
.task-item.is-empty { opacity: .6; }
.task-done { text-align: center; padding: 24px; color: #198754; }
.task-done i { font-size: 44px; display: block; }
html.dark-theme .task-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }

/* Checklist memulai (vendor) */
.start-list { list-style: none; padding: 0; margin: 0; }
.start-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f3f5; }
.start-list li:last-child { border-bottom: 0; }
.start-list .s-check { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: #e9ecef; color: #6c757d; }
.start-list li.done .s-check { background: #198754; color: #fff; }
.start-list li.current .s-check { background: #ffc107; color: #3d2e00; }
.start-list li.done .s-title { text-decoration: line-through; color: #6c757d; }
.start-list .s-title { font-weight: 600; }
.start-list .s-desc { font-size: 13px; color: #6c757d; }

/* Wizard form */
.wizard-nav { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: s; flex-wrap: wrap; }
.wizard-nav li { flex: 1 1 110px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f1f3f5; color: #6c757d; cursor: pointer; font-size: 13px; font-weight: 500; }
.wizard-nav li .num { width: 26px; height: 26px; border-radius: 50%; background: #dee2e6; color: #495057; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.wizard-nav li.active { background: var(--jbsp-navy); color: #fff; }
.wizard-nav li.active .num { background: var(--jbsp-lime); color: var(--jbsp-navy); }
.wizard-nav li.done { background: #e8f6ee; color: #198754; }
.wizard-nav li.done .num { background: #198754; color: #fff; }
.wizard-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid #eef0f2; margin-top: 8px; }
.step-intro { background: #f4f7fb; border-radius: 10px; padding: 10px 14px; color: #495057; font-size: 14px; }
html.dark-theme .step-intro, html.dark-theme .wizard-nav li { background: rgba(255,255,255,.06); color: #ced4da; }
@media (max-width: 767px) { .wizard-nav li .lbl { display: none; } .wizard-nav li { flex: 1 1 auto; justify-content: center; } }

.prep-box { background: #f4f7fb; border-radius: 12px; padding: 16px 18px; }

/* Istilah dengan penjelasan */
.term { border-bottom: 1px dotted #6c757d; cursor: help; }
