body {
    font-family: "Poppins", "Open Sans", sans-serif;
}

/* ─── Table action icon buttons — new design ─────────────────── */
.btn.btn-icon.btn-primary {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn.btn-icon.btn-primary:hover,
.btn.btn-icon.btn-primary:focus {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
    box-shadow: none !important;
}
.btn.btn-icon.btn-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn.btn-icon.btn-danger:hover,
.btn.btn-icon.btn-danger:focus {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
    box-shadow: none !important;
}

/* Global Kembali button style */
.btn.btn-kembali {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: none;
}
.btn.btn-kembali:hover,
.btn.btn-kembali:focus {
    background-color: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    box-shadow: none;
}

.stepper {
    display: flex;
    align-items: center;
    margin-left: 10px;
    width: 100%;
    max-width: 98%;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.stepper .step {
    pointer-events: auto;
}

.stepper .step.upcoming:hover {
    background-color: #d85a1f;
    color: white
}

.stepper .step.completed:hover {
    background-color: green ;
    opacity: 0.8;
}

.step {
    flex-grow: 1;
    background-color: #ef6925;
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: -2px;
    clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    cursor: pointer;
}

.step.active {
    background-color: #ef6925;
    color: white;
    padding: 14px 0;

}

.step.completed {
    background-color: green;
    color: white;
}

.step:last-child {
    margin-right: 0;
}

.step .label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step .check-icon {
    font-size: 14px;
    color: white;
    display: inline-block;
}

.step.hidden {
    display: none;
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    background: #2563eb !important;
    border-color: transparent !important;
    font-weight: 600;
    box-shadow: 0 3px 5px -1px rgba(37, 99, 235, 0.25), 0 2px 3px -1px rgba(37, 99, 235, 0.15);
}

.dropdown-toggle::after {
    display: none !important;
}

/* Global primary color theme */
:root {
    --theme-primary: #2563eb;
    --theme-primary-dark: #1d4ed8;
    --theme-primary-soft: #eff6ff;
}

.btn-primary,
.btn.bg-gradient-primary {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #ffffff !important;
    font-size: 14px !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.bg-gradient-primary:hover,
.btn.bg-gradient-primary:focus,
.btn.bg-gradient-primary:active {
    background: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2) !important;
}

.text-primary {
    color: var(--theme-primary) !important;
}

.bg-primary {
    background-color: var(--theme-primary) !important;
}

.border-primary {
    border-color: var(--theme-primary) !important;
}

.badge.bg-primary,
.badge-primary {
    background-color: var(--theme-primary) !important;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    color: #fff !important;
    background: var(--theme-primary) !important;
    border-color: transparent !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2) !important;
}

a,
.link-primary {
    color: var(--theme-primary);
}

a:hover,
.link-primary:hover {
    color: var(--theme-primary-dark);
}

/* ─── PowerGrid table footer — global (all tables) ───────────── */
footer.mt-50 {
    padding: 14px 20px !important;
    border-top: 1px solid #f0f4f8 !important;
    background: #fff !important;
}

/* Hide the per-page select section — keep only record count + pagination */
footer.mt-50 > div:first-child {
    display: none !important;
}

/* Make the record-count + pagination div fill the full footer width */
footer.mt-50 > div:last-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
}

/* Inner pagination wrapper: record count left, circles right */
footer.mt-50 > div:last-child > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* "Menunjukkan X hingga Y daripada Z" — blue */
footer.mt-50 .text-muted,
footer.mt-50 small {
    font-size: 0.82rem !important;
    color: #2563eb !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}

/* Pagination wrapper */
footer.mt-50 .pagination {
    margin-bottom: 0 !important;
    gap: 4px !important;
}

/* Page link base — circular pill */
footer.mt-50 .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    color: #374151 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: all .15s !important;
}

/* Hover state */
footer.mt-50 .page-item .page-link:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

/* Active page — solid blue circle */
footer.mt-50 .page-item.active .page-link {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .35) !important;
}

/* Disabled arrows */
footer.mt-50 .page-item.disabled .page-link {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
    color: #d1d5db !important;
}

