*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

:root {
--kcp-bg: #f4f1fa;
--kcp-bg-soft: #ede8f8;
--kcp-surface: #ffffff;
--kcp-sidebar: #faf9fc;
--kcp-ink: #2d2d4e;
--kcp-muted: #7b7b99;
--kcp-border: #e4e0f0;
--kcp-input-bg: #f7f5fc;
--kcp-accent: #8b6fd4;
--kcp-accent-light: #c084fc;
--kcp-accent-hover: #7a5fc4;
--kcp-gradient: linear-gradient(135deg, #8b6fd4 0%, #c084fc 100%);
--kcp-success: #2d9f6f;
--kcp-warning: #c98a1a;
--kcp-danger: #c44b4b;
--kcp-radius: 12px;
--kcp-radius-lg: 16px;
--kcp-shadow: 0 4px 24px rgba(45, 45, 78, 0.06);
--kcp-shadow-lg: 0 8px 40px rgba(45, 45, 78, 0.08);
--kcp-sidebar-width: 260px;
--kcp-topbar-height: 64px;
--kcp-transition: 180ms ease;
}

html,
body {
height: 100%;
}

body {
    font-family: 'Metropolis', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--kcp-ink);
    background: var(--kcp-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* ============================================
   Dashboard overview cards
   ============================================ */
.kcp-dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.kcp-dashboard-card-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.kcp-dashboard-card-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.06) 0%, rgba(72, 187, 120, 0) 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.kcp-dashboard-card-item:hover {
    transform: translateY(-2px);
    border-color: #48bb78;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.12);
    text-decoration: none;
    color: inherit;
}

.kcp-dashboard-card-item:hover::before {
    opacity: 1;
}

.kcp-dashboard-card-item.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f9fafb;
    pointer-events: none;
}

.kcp-dashboard-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f0fff4;
    color: #48bb78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.kcp-dashboard-card-item:hover .kcp-dashboard-card-icon {
    background: #48bb78;
    color: #fff;
    transform: scale(1.05);
}

.kcp-dashboard-card-item.disabled .kcp-dashboard-card-icon {
    background: #edf2f7;
    color: #a0aec0;
}

.kcp-dashboard-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.kcp-dashboard-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
}

.kcp-dashboard-card-body p {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.5;
    flex: 1;
}

.kcp-dashboard-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #48bb78;
    margin-top: 4px;
}

.kcp-dashboard-card-cta i {
    transition: transform 0.2s ease;
}

.kcp-dashboard-card-item:hover .kcp-dashboard-card-cta i {
    transform: translateX(4px);
}

.kcp-dashboard-card-item.disabled .kcp-badge {
    align-self: flex-start;
    margin-top: 4px;
}

/* Back link used on dashboard sub-pages */
.kcp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #718096;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

.kcp-back-link:hover {
    color: #48bb78;
    text-decoration: none;
}

@media (max-width: 640px) {
    .kcp-dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}
/* Buttons */
.kcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--kcp-transition), box-shadow var(--kcp-transition), transform var(--kcp-transition);
}

.kcp-btn-primary {
    background: var(--kcp-gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139, 111, 212, 0.25);
}

.kcp-btn-primary:hover {
    background: linear-gradient(135deg, var(--kcp-accent-hover) 0%, #b070f0 100%);
    box-shadow: 0 4px 16px rgba(139, 111, 212, 0.32);
}

.kcp-btn-primary:active {
    transform: translateY(1px);
}

.kcp-btn-ghost {
    background: transparent;
    color: var(--kcp-muted);
    padding: 8px 12px;
    outline: none;
}

.kcp-btn-ghost:hover {
    color: var(--kcp-ink);
    background: rgba(139, 111, 212, 0.06);
}

.kcp-btn-block {
    width: 100%;
}

/* Form fields */
.kcp-field {
    margin-bottom: 20px;
}

.kcp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--kcp-ink);
    margin-bottom: 8px;
}

.kcp-input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--kcp-border);
    border-radius: 10px;
    background: var(--kcp-input-bg);
    font-family: inherit;
    font-size: 14px;
    color: var(--kcp-ink);
    outline: none;
    transition: border-color var(--kcp-transition), box-shadow var(--kcp-transition), background var(--kcp-transition);
}

.kcp-input::placeholder {
    color: #b4b4cc;
}

.kcp-input:focus {
    border-color: var(--kcp-accent);
    box-shadow: 0 0 0 3px rgba(139, 111, 212, 0.12);
    background: #fff;
}

.kcp-field-error {
    font-size: 12px;
    color: var(--kcp-danger);
    margin-top: 6px;
}

.kcp-alert {
    background: #fff5f5;
    border: 1px solid #ffd0d0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--kcp-danger);
    margin-bottom: 20px;
}

/* Status badges */
.kcp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.kcp-badge-completed,
.kcp-badge-settled,
.kcp-badge-success {
    background: rgba(45, 159, 111, 0.1);
    color: var(--kcp-success);
}

.kcp-badge-pending,
.kcp-badge-processing {
    background: rgba(201, 138, 26, 0.12);
    color: var(--kcp-warning);
}

.kcp-badge-failed,
.kcp-badge-cancelled,
.kcp-badge-error {
    background: rgba(196, 75, 75, 0.1);
    color: var(--kcp-danger);
}

/* Cards */
.kcp-card {
    background: var(--kcp-surface);
    border: 1px solid var(--kcp-border);
    border-radius: var(--kcp-radius-lg);
    padding: 24px;
    box-shadow: var(--kcp-shadow);
}

.kcp-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--kcp-muted);
    margin-bottom: 8px;
}

.kcp-card-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--kcp-ink);
    letter-spacing: -0.5px;
}

.kcp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Page header */
.kcp-page-header {
    margin-bottom: 28px;
}

.kcp-page-header h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.kcp-page-header p {
    color: var(--kcp-muted);
    font-size: 14px;
}

/* Data table */
.kcp-table-wrap {
    background: var(--kcp-surface);
    border: 1px solid var(--kcp-border);
    border-radius: var(--kcp-radius-lg);
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: visible;
    box-shadow: var(--kcp-shadow);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative;
}

.kcp-table {
    width: 100%;
    min-width: 1200px; /* Minimum width to accommodate all columns */
    border-collapse: collapse;
    table-layout: fixed; /* Better column control */
}

/* Fix header background - make it span the entire table */
.kcp-table thead {
    background: var(--kcp-sidebar);
}

.kcp-table th,
.kcp-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--kcp-border);
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for overflow */
}

.kcp-table th {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kcp-muted);
    background: var(--kcp-sidebar);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Fix for the actions header - ensure it's properly aligned */
.kcp-table th:last-child,
.kcp-table td:last-child {
    text-align: center;
}

.kcp-table tbody tr:last-child td {
    border-bottom: none;
}

.kcp-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.kcp-table td {
    font-size: 12px;
}


/* Table Header */
.kcp-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    min-width: 1200px; /* Match table min-width */
    border-radius: 8px 8px 0 0;
}

.kcp-table th:nth-child(1), /* ID */
.kcp-table td:nth-child(1) {
    width: 140px;
    min-width: 140px;
}

.kcp-table-info {
    font-size: 0.9rem;
    color: #4a5568;
}

.kcp-table-info strong {
    color: #2d3748;
}

.kcp-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Action Button */

.kcp-table-actions-col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
}

/* Ensure action header is properly aligned */
.kcp-table th:last-child,
.kcp-table td:last-child {
    text-align: center;
}

/* Scrollbar styling for better appearance */
.kcp-table-wrap::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.kcp-table-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.kcp-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.kcp-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.kcp-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.kcp-text-muted {
    color: var(--kcp-muted);
}


/* Auth layout */
.kcp-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kcp-auth-visual {
    overflow: hidden;
    min-height: 320px;
}

.kcp-auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kcp-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kcp-surface);
    padding: 48px 64px;
    min-height: 100vh;
}

.kcp-auth-inner {
    width: 100%;
    max-width: 400px;
}

.kcp-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.kcp-auth-logo {
    height: 40px;
    width: auto;
    margin: 0 auto 24px;
}

.kcp-auth-header h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.kcp-auth-subtitle {
    font-size: 14px;
    color: var(--kcp-muted);
    margin-bottom: 0;
}

.kcp-auth-remember {
    margin-bottom: 24px;
}

.kcp-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--kcp-ink);
    user-select: none;
}

.kcp-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--kcp-accent);
    cursor: pointer;
}

.kcp-auth-text {
    color: var(--kcp-muted);
    padding: 10px 0px;
}

.kcp-auth-text a {
    color: var(--kcp-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--kcp-transition);
}

.kcp-auth-support {
    margin-top: 28px;
    font-size: 13px;
    color: var(--kcp-muted);
    text-align: center;
    line-height: 1.6;
}

.kcp-auth-support a {
    color: var(--kcp-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--kcp-transition);
}

.kcp-auth-support a:hover {
    color: var(--kcp-accent-hover);
    text-decoration: underline;
}

/* App shell */
.kcp-app {
    display: flex;
    min-height: 100vh;
}

.kcp-sidebar {
    width: var(--kcp-sidebar-width);
    background: var(--kcp-sidebar);
    border-right: 1px solid var(--kcp-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.kcp-sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--kcp-border);
}

.kcp-sidebar-brand img {
    height: 32px;
    width: auto;
}

.kcp-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.kcp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kcp-muted);
    transition: background var(--kcp-transition), color var(--kcp-transition);
    margin-bottom: 2px;
    position: relative;
}

.kcp-nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.kcp-nav-item:hover {
    color: var(--kcp-ink);
    background: rgba(139, 111, 212, 0.06);
}

.kcp-nav-item.active {
    color: var(--kcp-accent);
    background: rgba(139, 111, 212, 0.1);
    font-weight: 600;
}

.kcp-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--kcp-gradient);
}

.kcp-nav-divider {
    height: 1px;
    background: var(--kcp-border);
    margin: 12px 8px;
}


/* Navigation Groups */
.kcp-nav-group {
    margin-bottom: 4px;
}

.kcp-nav-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    gap: 12px;
    text-align: left;
}

.kcp-nav-group-toggle:hover {
    color: var(--kcp-ink);
    background: var(--kcp-gradient);
}

.kcp-nav-group-toggle.active {
    color: #48bb78;
}

.kcp-nav-group-toggle i:first-child {
    font-size: 1.2rem;
}

.kcp-nav-group-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.kcp-nav-group-toggle[aria-expanded="true"] .kcp-nav-group-icon {
    transform: rotate(-180deg);
}

.kcp-nav-group-items {
    padding-left: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kcp-nav-subitem {
    padding-left: 52px !important;
    font-size: 0.85rem;
}

.kcp-nav-subitem i {
    font-size: 1rem;
}

/* Active states */
.kcp-nav-item.active {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.kcp-nav-item.active i {
    color: #48bb78;
}

.kcp-nav-group-toggle.active {
    color: #48bb78;
}

.kcp-nav-group-toggle.active i:first-child {
    color: #48bb78;
}

/* Hover states */
.kcp-nav-item:hover:not(.active) {
    background: var(--kcp-gradient);
    color: #e2e8f0;
}

/* Divider */
.kcp-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 12px 16px;
}

/* Sidebar scroll */
.kcp-sidebar-nav {
    overflow-y: auto;
    flex: 1;
    padding: 8px 12px 20px;
}

/* Custom scrollbar for sidebar */
.kcp-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.kcp-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.kcp-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Profile dropdown */
.kcp-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    min-width: 180px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.kcp-profile-menu.open {
    display: block;
}

.kcp-profile-menu a,
.kcp-profile-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    color: #cbd5e1;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.kcp-profile-menu a:hover,
.kcp-profile-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--kcp-ink);
}




.kcp-main {
    flex: 1;
    margin-left: var(--kcp-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.kcp-topbar {
    height: var(--kcp-topbar-height);
    background: var(--kcp-surface);
    border-bottom: 1px solid var(--kcp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.kcp-topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--kcp-ink);
}

.kcp-profile {
    position: relative;
}

.kcp-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--kcp-transition);
}

.kcp-profile-trigger:hover {
    background: rgba(139, 111, 212, 0.06);
}

.kcp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--kcp-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.kcp-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--kcp-ink);
    text-align: left;
}

.kcp-profile-email {
    font-size: 11px;
    color: var(--kcp-muted);
    text-align: left;
}

.kcp-profile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    background: var(--kcp-surface);
    border: 1px solid var(--kcp-border);
    border-radius: var(--kcp-radius);
    box-shadow: var(--kcp-shadow-lg);
    padding: 6px;
    z-index: 200;
}

.kcp-profile.open .kcp-profile-menu {
    display: block;
}

.kcp-profile-menu a,
.kcp-profile-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: var(--kcp-ink);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--kcp-transition);
}

.kcp-profile-menu a:hover,
.kcp-profile-menu button:hover {
    background: rgba(139, 111, 212, 0.06);
}

.kcp-content {
    flex: 1;
    padding: 32px;
    max-width: 1300px;
    width: 100%;
}

/* Profile page */
.kcp-profile-grid {
    display: grid;
    gap: 16px;
    max-width: 480px;
}

.kcp-profile-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--kcp-border);
}

.kcp-profile-row:last-child {
    border-bottom: none;
}

.kcp-profile-label {
    font-size: 13px;
    color: var(--kcp-muted);
}

.kcp-profile-value {
    font-size: 14px;
    font-weight: 500;
}

/* Error page */
.kcp-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.kcp-error-page h1 {
    font-size: 72px;
    font-weight: 600;
    color: var(--kcp-accent);
    margin-bottom: 8px;
}

.kcp-error-page p {
    color: var(--kcp-muted);
    margin-bottom: 24px;
}


/*Password toggle*/

.kcp-password-wrapper{
    position: relative;
    display:flex;
    align-items: center;
}

.kcp-password-input{
    flex: 1;
    padding-right:40px;
}

.kcp-password-toggle{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    font-size: 1.1rem;
    z-index: 2;
}

.kcp-password-toggle:hover{
    color: #495057;
}

.kcp-password-toggle:focus{
    outline: none;
}


/* Filter Section */
.kcp-filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kcp-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.kcp-filter-group {
    flex: 1 1 180px;
    min-width: 150px;
}

.kcp-filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}

.kcp-filter-group .kcp-input {
    width: 100%;
    padding: 8px 12px;
}

.kcp-filter-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.kcp-filter-actions .kcp-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.kcp-input-sm {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
}

/* Customer Info */
.kcp-customer-info {
    display: flex;
    flex-direction: column;
}

.kcp-customer-name {
    font-weight: 500;
    color: #2d3748;
}

.kcp-reference {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #2d3748;
}

/* Empty State */
.kcp-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kcp-empty-state i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.kcp-empty-state h3 {
    margin: 0 0 8px;
    color: #2d3748;
}

.kcp-empty-state p {
    margin: 0;
    color: #718096;
}


/* Pagination */
.kcp-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 1200px; /* Match table min-width */
}

.kcp-pagination-info {
    font-size: 0.9rem;
    color: #4a5568;
}

.kcp-pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.kcp-pagination-item {
    display: inline-block;
}

.kcp-pagination-item.disabled .kcp-pagination-link {
    color: #a0aec0;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.kcp-pagination-item.active .kcp-pagination-link {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.kcp-pagination-link {
    display: block;
    padding: 6px 12px;
    color: #4a5568;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
}

.kcp-pagination-link:hover {
    background: #f7fafc;
    border-color: #e2e8f0;
    text-decoration: none;
    color: #2d3748;
}

.kcp-pagination-item.active .kcp-pagination-link:hover {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}



.kcp-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.kcp-btn-sm:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    text-decoration: none;
}

/* Secondary Button */
.kcp-btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border-color: #e2e8f0;
}

.kcp-btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
    text-decoration: none;
}

.kcp-btn-secondary:active {
    background: #e2e8f0;
    border-color: #a0aec0;
}

.kcp-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Alert */
.kcp-alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kcp-alert-error i {
    font-size: 1.1rem;
}


/* Credentials Grid */
.kcp-credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kcp-credential-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kcp-credential-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kcp-credential-card.active {
    border-left: 4px solid #48bb78;
}

.kcp-credential-card.inactive {
    border-left: 4px solid #a0aec0;
    opacity: 0.7;
}

.kcp-credential-header {
    padding: 16px 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.kcp-credential-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ebf8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #3182ce;
}

.kcp-credential-title {
    flex: 1;
}

.kcp-credential-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.kcp-credential-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-active .status-dot {
    background: #48bb78;
}

.status-inactive .status-dot {
    background: #a0aec0;
}

.kcp-credential-body {
    padding: 16px 20px;
}

.kcp-credential-field {
    margin-bottom: 12px;
}

.kcp-credential-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}

.kcp-credential-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kcp-credential-value code {
    flex: 1;
    padding: 6px 10px;
    background: #f7fafc;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcp-credential-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #4a5568;
}

.kcp-credential-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* Stats Cards */
.kcp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kcp-stat-card {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.kcp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.kcp-stat-icon-total {
    background: #ebf8ff;
    color: #3182ce;
}

.kcp-stat-icon-active {
    background: #f0fff4;
    color: #48bb78;
}

.kcp-stat-icon-expiring {
    background: #fff5f5;
    color: #fc8181;
}

.kcp-stat-icon-activity {
    background: #faf5ff;
    color: #9f7aea;
}

.kcp-stat-icon-pending {
    background: #ebf8ff;
    color: #3182ce;
}

.kcp-stat-content {
    flex: 1;
}

.kcp-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.kcp-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
}

.kcp-stat-change {
    font-size: 0.8rem;
}

.kcp-stat-change.positive {
    color: #48bb78;
}

.kcp-stat-change.negative {
    color: #fc8181;
}

/* Recent Activities */
.kcp-recent-activities {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 24px;
    overflow: hidden;
}

.kcp-section-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kcp-section-header h3 {
    margin: 0;
    font-size: 1rem;
}

.kcp-activity-list {
    padding: 8px 0;
}

.kcp-activity-item {
    padding: 12px 20px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f7fafc;
}

.kcp-activity-item:last-child {
    border-bottom: none;
}

.kcp-activity-item.success .kcp-activity-icon {
    color: #48bb78;
}

.kcp-activity-item.warning .kcp-activity-icon {
    color: #ed8936;
}

.kcp-activity-item.error .kcp-activity-icon {
    color: #fc8181;
}

.kcp-activity-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kcp-activity-content {
    flex: 1;
}

.kcp-activity-description {
    display: block;
    font-size: 0.9rem;
    color: #2d3748;
}

.kcp-activity-meta {
    display: block;
    font-size: 0.8rem;
    color: #718096;
}

/* Webhooks Grid */
.kcp-webhooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kcp-webhook-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kcp-webhook-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kcp-webhook-header {
    padding: 16px 20px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.kcp-webhook-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kcp-webhook-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.kcp-webhook-body {
    padding: 16px 20px;
}

.kcp-webhook-field {
    margin-bottom: 12px;
}

.kcp-webhook-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}

.kcp-webhook-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kcp-webhook-value code {
    flex: 1;
    padding: 6px 10px;
    background: #f7fafc;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcp-webhook-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kcp-webhook-event-tag {
    padding: 2px 10px;
    background: #ebf8ff;
    color: #2b6cb0;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.kcp-webhook-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #4a5568;
}

.kcp-webhook-failures {
    color: #fc8181;
}

.kcp-webhook-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

/* Environments Grid */
.kcp-environments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kcp-environment-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.kcp-environment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kcp-environment-card.default {
    border-color: #48bb78;
}

.kcp-environment-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 12px;
    background: #48bb78;
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.kcp-environment-header {
    padding: 16px 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.kcp-environment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ebf8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #3182ce;
}

.kcp-environment-title {
    flex: 1;
}

.kcp-environment-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.kcp-environment-body {
    padding: 16px 20px;
}

.kcp-environment-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

.kcp-environment-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 12px;
}

.kcp-environment-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kcp-environment-field {
    margin-bottom: 8px;
}

.kcp-environment-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 2px;
}

.kcp-environment-field code {
    padding: 4px 8px;
    background: #f7fafc;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.kcp-environment-footer {
padding: 12px 20px;
background: #f8fafc;
border-top: 1px solid #e2e8f0;
display: flex;
gap: 8px;
flex-wrap: wrap;
}

/* Current Environment */
.kcp-current-environment {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.kcp-environment-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.kcp-environment-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.kcp-environment-status.operational {
    color: #48bb78;
}

.kcp-environment-status.degraded {
    color: #ed8936;
}

.kcp-environment-status.down {
    color: #fc8181;
}

/* Toast Notification */
.kcp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #1a202c;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 300px;
    z-index: 99999;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.kcp-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kcp-toast-success {
    border-left: 4px solid #48bb78;
}

.kcp-toast-warning {
    border-left: 4px solid #ed8936;
}

.kcp-toast-error {
    border-left: 4px solid #fc8181;
}

.kcp-toast-info {
    border-left: 4px solid #63b3ed;
}

.kcp-toast-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}

.kcp-toast-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Styles */
.kcp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.kcp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.kcp-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.kcp-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .kcp-modal-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #2d3748;
    }

.kcp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

    .kcp-modal-close:hover {
        color: #4a5568;
    }

.kcp-modal-body {
    padding: 24px;
}

.kcp-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

    .kcp-modal-footer .kcp-btn {
        min-width: 100px;
    }

/* Checkbox Group */
.kcp-checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.kcp-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.kcp-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #48bb78;
}

/* Spinning animation for loading */
.kcp-spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Danger Small Button */
.kcp-btn-danger-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid #fed7d7;
    background: white;
    color: #e53e3e;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 28px;
    height: 28px;
}

.kcp-btn-danger-sm:hover {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
}

/* Success Small Button */
.kcp-btn-success-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid #9ae6b4;
    background: white;
    color: #48bb78;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 28px;
    height: 28px;
}

.kcp-btn-success-sm:hover {
    background: #f0fff4;
    border-color: #68d391;
    color: #38a169;
}

/* Input Group with Generate Button */
.kcp-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kcp-input-group .kcp-input {
    flex: 1;
}

.kcp-btn-generate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.kcp-btn-generate:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.kcp-btn-generate:active {
    background: #e2e8f0;
}

/* Field Hint */
.kcp-field-hint {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
}

/* Disabled input style */
.kcp-input:disabled {
    background: #f7fafc;
    cursor: not-allowed;
    opacity: 0.7;
}



/* Transaction Details Page */
.kcp-transaction-details {
    padding: 0;
}

/* Header */
.kcp-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.kcp-details-title h1 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.kcp-details-title p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

.kcp-details-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status Banner */
.kcp-status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.kcp-status-banner.status-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #38a169;
}

.kcp-status-banner.status-pending {
    background: #fffbeb;
    border: 1px solid #fbd38d;
    color: #d69e2e;
}

.kcp-status-banner.status-failed {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #e53e3e;
}

.kcp-status-banner.status-refunded {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    color: #3182ce;
}

.kcp-status-banner.status-voided {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.kcp-status-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kcp-status-banner-content i {
    font-size: 1.5rem;
}

.kcp-status-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.kcp-status-reference {
    font-size: 0.9rem;
    opacity: 0.8;
    padding-left: 12px;
    border-left: 1px solid currentColor;
}

.kcp-status-timestamp {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

/* Action Buttons */
.kcp-action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Details Grid */
.kcp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.kcp-details-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kcp-details-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.kcp-details-card h3 {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.kcp-details-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.kcp-details-row:last-child {
    border-bottom: none;
}

.kcp-details-label {
    font-size: 0.85rem;
    color: #718096;
}

.kcp-details-value {
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.kcp-amount-large {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

/* Timeline */
.kcp-timeline {
    position: relative;
    padding-left: 24px;
}

.kcp-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.kcp-timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 16px;
}

.kcp-timeline-item:last-child {
    padding-bottom: 0;
}

.kcp-timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
}

.kcp-timeline-dot.success {
    border-color: #48bb78;
    background: #48bb78;
}

.kcp-timeline-dot.pending {
    border-color: #ed8936;
    background: #ed8936;
}

.kcp-timeline-dot.failed {
    border-color: #fc8181;
    background: #fc8181;
}

.kcp-timeline-dot.refunded {
    border-color: #63b3ed;
    background: #63b3ed;
}

.kcp-timeline-dot.voided {
    border-color: #a0aec0;
    background: #a0aec0;
}

.kcp-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kcp-timeline-event {
    font-weight: 500;
    color: #2d3748;
}

.kcp-timeline-time {
    font-size: 0.8rem;
    color: #718096;
}

.kcp-timeline-description {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: #4a5568;
}

/* Metadata Grid */
.kcp-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.kcp-metadata-item {
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 4px;
}

.kcp-metadata-key {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kcp-metadata-value {
    display: block;
    font-size: 0.9rem;
    color: #2d3748;
    margin-top: 2px;
    word-break: break-all;
}

/* Status Badge */
.kcp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.kcp-status-badge.status-success {
    background: #f0fff4;
    color: #38a169;
}

.kcp-status-badge.status-pending {
    background: #fffbeb;
    color: #d69e2e;
}

.kcp-status-badge.status-failed {
    background: #fff5f5;
    color: #e53e3e;
}

.kcp-status-badge.status-refunded {
    background: #ebf8ff;
    color: #3182ce;
}

.kcp-status-badge.status-voided {
    background: #f7fafc;
    color: #4a5568;
}

/* Danger Button */
.kcp-btn-danger {
    background: #fc8181;
    color: white;
    border-color: #fc8181;
}

.kcp-btn-danger:hover {
    background: #f56565;
    border-color: #f56565;
    color: white;
    text-decoration: none;
}

.kcp-btn-danger:focus-visible {
    outline: 2px solid #fc8181;
    outline-offset: 2px;
}

/* Warning Button */
.kcp-btn-warning {
    background: #ed8936;
    color: white;
    border-color: #ed8936;
}

.kcp-btn-warning:hover {
    background: #dd6b20;
    border-color: #dd6b20;
    color: white;
    text-decoration: none;
}

.kcp-btn-warning:focus-visible {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
}

/* Input Prefix */
.kcp-input-prefix {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-weight: 500;
    color: #4a5568;
    white-space: nowrap;
}


/* Reports Page */
.kcp-report-page {
    padding: 0;
}

/* Report Tabs */
.kcp-report-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f7fafc;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.kcp-report-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 6px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.kcp-report-tab:hover:not(.disabled) {
    background: white;
    color: #2d3748;
    text-decoration: none;
}

.kcp-report-tab.active {
    background: white;
    color: #48bb78;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.kcp-report-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kcp-report-tab .kcp-badge {
    font-size: 0.7rem;
    background: #e2e8f0;
    padding: 1px 8px;
    border-radius: 10px;
    color: #4a5568;
}

/* Filters */
.kcp-report-filters {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.kcp-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.kcp-filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}

.kcp-filter-group .kcp-input {
    width: 100%;
}

.kcp-filters-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Report Summary */
.kcp-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kcp-summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
}

.kcp-summary-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kcp-summary-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-top: 4px;
}

/* Report Actions */
.kcp-report-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kcp-report-actions .kcp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Loading State */
.kcp-loading-state {
    text-align: center;
    padding: 60px 20px;
}

.kcp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #48bb78;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.kcp-loading-state p {
    color: #718096;
    margin: 0;
}

/* ============================================
   Dashboard
   ============================================ */

/* Alerts strip */
.kcp-dashboard-alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.kcp-dashboard-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid;
    background: #fff;
}

.kcp-dashboard-alert-warning {
    border-color: #fbd38d;
    background: #fffbeb;
    color: #744210;
}

.kcp-dashboard-alert-error {
    border-color: #feb2b2;
    background: #fff5f5;
    color: #742a2a;
}

.kcp-dashboard-alert-info {
    border-color: #90cdf4;
    background: #ebf8ff;
    color: #2a4365;
}

.kcp-dashboard-alert-success {
    border-color: #9ae6b4;
    background: #f0fff4;
    color: #22543d;
}

.kcp-dashboard-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.kcp-dashboard-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    font-size: 0.9rem;
}

.kcp-dashboard-alert-content strong {
    font-size: 0.95rem;
}

.kcp-dashboard-alert-content span {
    opacity: 0.85;
}

.kcp-dashboard-alert-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    white-space: nowrap;
}

.kcp-dashboard-alert-action:hover {
    background: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

/* Stats icons (extra variants) */
.kcp-stat-icon-balance {
    background: #ebf8ff;
    color: #3182ce;
}

.kcp-stat-icon-collections {
    background: #f0fff4;
    color: #48bb78;
}

.kcp-stat-icon-payouts {
    background: #fffaf0;
    color: #ed8936;
}

.kcp-stat-icon-success {
    background: #faf5ff;
    color: #9f7aea;
}

/* Dashboard card */
.kcp-dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.kcp-dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.kcp-dashboard-card-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.kcp-dashboard-card-body {
    padding: 20px;
}

.kcp-dashboard-card-body.kcp-p-0 {
    padding: 0;
}

/* Row layout for chart + breakdown */
.kcp-dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.kcp-dashboard-row:has(.kcp-dashboard-card:only-child) {
    grid-template-columns: 1fr;
}

.kcp-dashboard-row .kcp-dashboard-card {
    margin-bottom: 20px;
}

/* Chart */
.kcp-chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.kcp-chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #4a5568;
}

.kcp-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kcp-chart-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Breakdown lists */
.kcp-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kcp-breakdown-row {
    display: grid;
    grid-template-columns: 90px 1fr 120px;
    align-items: center;
    gap: 12px;
}

.kcp-breakdown-label {
    font-size: 0.85rem;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kcp-breakdown-bar-wrap {
    height: 8px;
    background: #f7fafc;
    border-radius: 4px;
    overflow: hidden;
}

.kcp-breakdown-bar {
    height: 100%;
    background: #48bb78;
    border-radius: 4px;
    transition: width 0.4s ease;
    min-width: 4px;
}

.kcp-breakdown-bar-info {
    background: #63b3ed;
}

.kcp-breakdown-bar-primary {
    background: #9f7aea;
}

.kcp-breakdown-values {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.8rem;
    text-align: right;
}

.kcp-breakdown-values span:first-child {
    font-weight: 600;
    color: #2d3748;
}

/* Empty state (compact) */
.kcp-empty-state-sm {
    text-align: center;
    padding: 32px 16px;
    color: #a0aec0;
}

.kcp-empty-state-sm i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.kcp-empty-state-sm p {
    margin: 0;
    font-size: 0.85rem;
}

/* Table flush (inside dashboard card) */
.kcp-table-wrap-flush {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Ensure the inner table doesn't force page width */
.kcp-table-wrap-flush .kcp-table {
    min-width: 900px; /* smaller than the 1200px used for full-page tables */
    width: 100%;
}

/* Type badges */
.kcp-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.kcp-type-collection {
    background: #f0fff4;
    color: #38a169;
}

.kcp-type-payout {
    background: #fffaf0;
    color: #dd6b20;
}

.kcp-type-refund {
    background: #ebf8ff;
    color: #3182ce;
}

.kcp-type-settlement {
    background: #faf5ff;
    color: #805ad5;
}

/* Footer */
.kcp-dashboard-footer {
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: right;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Spinning */
.kcp-spinning {
    animation: kcp-spin 1s linear infinite;
}

@keyframes kcp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Roles & Permissions */
.kcp-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.kcp-role-system {
    background: #ebf8ff;
    color: #2b6cb0;
}

.kcp-role-custom {
    background: #faf5ff;
    color: #6b46c1;
}

.kcp-permission-count {
    display: inline-block;
    padding: 2px 10px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal large variant */
.kcp-modal-lg {
    max-width: 720px;
}

/* Permissions header */
.kcp-permissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kcp-permissions-header label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2d3748;
}

.kcp-permissions-actions {
    display: flex;
    gap: 6px;
}

.kcp-permissions-loading {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
}

/* Permissions container */
.kcp-permissions-container {
    max-height: 340px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.kcp-permission-group {
    padding: 8px 4px;
    border-bottom: 1px solid #f7fafc;
}

    .kcp-permission-group:last-child {
        border-bottom: none;
    }

.kcp-permission-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kcp-permission-group-header .kcp-text-muted {
    font-size: 0.75rem;
}

.kcp-permission-group-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px 0;
}

.kcp-permission-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.85rem;
}

.kcp-permission-item:hover {
    background: #f7fafc;
}

.kcp-permission-item input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #48bb78;
    cursor: pointer;
}

.kcp-permission-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kcp-permission-name {
    font-weight: 500;
    color: #2d3748;
    word-break: break-word;
}

.kcp-permission-remarks {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.3;
}

/* View role modal */
.kcp-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
}

.kcp-detail-row:last-of-type {
    border-bottom: none;
}

.kcp-detail-label {
    font-size: 0.85rem;
    color: #718096;
}

.kcp-detail-value {
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.kcp-view-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.kcp-permission-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f0fff4;
    color: #276749;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .kcp-permission-group-list {
        grid-template-columns: 1fr;
    }

    .kcp-modal-lg {
        max-width: 95%;
    }
}

/* Account selector */
.kcp-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kcp-account-option {
    display: block;
    cursor: pointer;
    position: relative;
}

.kcp-account-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.kcp-account-option-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.15s ease;
}

.kcp-account-option:hover .kcp-account-option-body {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.kcp-account-option.selected .kcp-account-option-body {
    border-color: #48bb78;
    background: #f0fff4;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.12);
}

.kcp-account-option-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ebf8ff;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.kcp-account-option.selected .kcp-account-option-avatar {
    background: #c6f6d5;
    color: #276749;
}

.kcp-account-option-info {
    flex: 1;
    min-width: 0;
}

.kcp-account-option-merchant {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcp-account-option-name {
    font-size: 0.8rem;
    color: #718096;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcp-account-option-check {
    color: #cbd5e0;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.kcp-account-option.selected .kcp-account-option-check {
    color: #48bb78;
}

.kcp-account-option.selected .kcp-account-option-check i::before {
    content: "\eb7c"; /* remixicon checkbox-circle-fill */
}



/* ============================================
   Merchants grid
   ============================================ */
.kcp-merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kcp-merchant-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.kcp-merchant-card:hover {
    border-color: #48bb78;
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.08);
}

.kcp-merchant-card.inactive {
    opacity: 0.65;
}

.kcp-merchant-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.kcp-merchant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0fff4;
    color: #48bb78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kcp-merchant-title {
    flex: 1;
    min-width: 0;
}

.kcp-merchant-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kcp-merchant-id {
    font-size: 0.75rem;
    color: #a0aec0;
    font-family: monospace;
}

.kcp-merchant-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
}

.kcp-badge-info {
    background: #ebf8ff;
    color: #2b6cb0;
}

.kcp-badge-default {
    background: #f7fafc;
    color: #4a5568;
}

.kcp-merchant-interfaces {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kcp-interface-chip {
    display: inline-block;
    padding: 2px 10px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.kcp-merchant-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #f7fafc;
}

.kcp-merchant-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 6px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.15s;
}

.kcp-merchant-action i {
    font-size: 1.1rem;
    color: #718096;
}

.kcp-merchant-action:hover {
    background: #f0fff4;
    color: #48bb78;
    text-decoration: none;
}

.kcp-merchant-action:hover i {
    color: #48bb78;
}

/* Breadcrumb */
.kcp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 12px;
}

.kcp-breadcrumb a {
    color: #48bb78;
    text-decoration: none;
}

.kcp-breadcrumb a:hover {
    text-decoration: underline;
}

.kcp-breadcrumb i {
    font-size: 0.9rem;
    color: #cbd5e0;
}

.kcp-breadcrumb-current {
    color: #2d3748;
    font-weight: 500;
}

@media (max-width: 640px) {
    .kcp-merchants-grid {
        grid-template-columns: 1fr;
    }

    .kcp-merchant-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}



/*Billers fees strip*/

/* Billers dashboard fees strip */
.kcp-billers-fees-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.kcp-fees-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kcp-fees-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kcp-fees-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
}

.kcp-billers-fees-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}

.kcp-fees-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
    border-right: 1px solid #e2e8f0;
}

.kcp-fees-item:last-child {
    border-right: none;
}

.kcp-fees-item:first-child {
    padding-left: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .kcp-filters-row {
        flex-direction: column;
        gap: 12px;
    }

    .kcp-filter-group {
        flex: 1 1 auto;
        width: 100%;
        min-width: unset;
    }

    .kcp-filter-actions {
        flex-direction: row;
        width: 100%;
    }

    .kcp-filter-actions .kcp-btn {
        flex: 1;
        text-align: center;
    }
    .kcp-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-width: auto;
    }

    .kcp-pagination {
        flex-direction: column;
        align-items: center;
        min-width: auto;
    }

    .kcp-pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .kcp-table th,
    .kcp-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .kcp-credentials-grid,
    .kcp-webhooks-grid,
    .kcp-environments-grid {
        grid-template-columns: 1fr;
    }

    .kcp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kcp-credential-footer {
        flex-direction: column;
    }

    .kcp-credential-footer .kcp-btn-sm {
        width: 100%;
    }

    .kcp-input-group {
        flex-direction: column;
        gap: 6px;
    }

    .kcp-input-group .kcp-input {
        width: 100%;
    }

    .kcp-btn-generate {
        width: 100%;
        justify-content: center;
    }

    .kcp-details-grid {
        grid-template-columns: 1fr;
    }

    .kcp-details-header {
        flex-direction: column;
    }

    .kcp-details-actions {
        width: 100%;
    }

    .kcp-details-actions .kcp-btn {
        flex: 1;
        justify-content: center;
    }

    .kcp-status-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .kcp-status-reference {
        border-left: none;
        padding-left: 0;
    }

    .kcp-metadata-grid {
        grid-template-columns: 1fr;
    }
    .kcp-filters-grid {
        grid-template-columns: 1fr;
    }

    .kcp-report-summary {
        grid-template-columns: 1fr;
    }

    .kcp-report-tabs {
        flex-direction: column;
    }

    .kcp-report-tab {
        justify-content: center;
    }

    .kcp-report-actions {
        flex-direction: column;
    }

    .kcp-report-actions .kcp-btn {
        justify-content: center;
        width: 100%;
    }

    .kcp-filters-actions {
        flex-direction: column;
    }

    .kcp-filters-actions .kcp-btn {
        width: 100%;
        justify-content: center;
    }
    .kcp-nav-subitem {
        padding-left: 48px !important;
    }

    .kcp-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .kcp-page-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .kcp-page-actions .kcp-input-sm {
        flex: 1;
    }

    .kcp-breakdown-row {
        grid-template-columns: 70px 1fr 90px;
        gap: 8px;
    }

    .kcp-breakdown-values {
        flex-direction: column;
        gap: 2px;
        align-items: flex-end;
    }

    .kcp-dashboard-alert {
        flex-wrap: wrap;
    }

    .kcp-dashboard-alert-action {
        width: 100%;
        justify-content: center;
    }

    .kcp-chart-container {
        height: 220px;
    }
}


/* Responsive */
@media (max-width: 900px) {
    .kcp-auth-page {
        grid-template-columns: 1fr;
    }

    .kcp-auth-visual {
        max-height: 240px;
    }

    .kcp-auth-panel {
        min-height: auto;
        padding: 40px 24px;
    }

    .kcp-sidebar {
        transform: translateX(-100%);
    }

    .kcp-main {
        margin-left: 0;
    }

    .kcp-content {
        padding: 20px 16px;
    }

    .kcp-table-wrap {
        overflow-x: auto;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .kcp-dashboard-row {
        grid-template-columns: 1fr;
    }
}