:root {
    --kumon-blue: #65c8e8;
    --kumon-blue-dark: #1c9bca;
    --kumon-mint: #73cfb4;
    --kumon-red: #f05a70;
    --kumon-ink: #25272a;
    --kumon-muted: #6f7680;
    --kumon-bg: #f5f7f9;
    --kumon-border: #e8ecef;
    --kumon-sidebar: #ffffff;
}

html, body {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--kumon-ink);
}

.kumon-auth-body {
    background: linear-gradient(145deg, #f9fbfc 0%, #eef8fb 58%, #f6fbf8 100%);
}

.kumon-auth-body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--kumon-blue);
}

.kumon-auth-logo {
    width: 180px;
    max-width: 65%;
    height: auto;
}

.kumon-auth-card {
    border-radius: 18px;
}

.form-control,
.form-select {
    border-color: #dfe4e8;
    border-radius: 9px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--kumon-blue-dark);
    box-shadow: 0 0 0 .2rem rgba(28, 155, 202, .12);
}

.form-check-input:checked {
    background-color: var(--kumon-blue-dark);
    border-color: var(--kumon-blue-dark);
}

.btn-kumon-primary {
    background: var(--kumon-blue-dark);
    border-color: var(--kumon-blue-dark);
    color: #fff;
    font-weight: 600;
}

.btn-kumon-primary:hover,
.btn-kumon-primary:focus {
    background: #1889b3;
    border-color: #1889b3;
    color: #fff;
}

.kumon-link {
    color: var(--kumon-blue-dark);
    text-decoration: none;
}

.kumon-link:hover {
    color: #147da5;
}

.kumon-app-body {
    background: var(--kumon-bg);
}

.kumon-app-shell {
    min-height: 100vh;
    display: flex;
}

.kumon-sidebar {
    width: 255px;
    min-width: 255px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--kumon-sidebar);
    border-right: 1px solid var(--kumon-border);
    z-index: 1030;
}

.kumon-sidebar-brand {
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--kumon-border);
}

.kumon-logo {
    width: 142px;
    max-width: 100%;
    height: auto;
}

.kumon-product-name {
    margin-top: 9px;
    color: var(--kumon-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kumon-nav {
    padding: 22px 14px;
}

.kumon-nav-label {
    padding: 0 12px 8px;
    color: #9ba2aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.kumon-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 5px;
    border-radius: 9px;
    color: #4d535a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}

.kumon-nav-link:hover {
    color: var(--kumon-blue-dark);
    background: #eef9fd;
}

.kumon-nav-link.active {
    color: #087ea8;
    background: #e3f5fb;
}

.kumon-nav-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    color: currentColor;
}

.kumon-nav-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.kumon-sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 20px;
    border-top: 1px solid var(--kumon-border);
}

.kumon-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--kumon-mint);
    color: #173e34;
    font-weight: 700;
}

.kumon-avatar-sm {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.kumon-main {
    flex: 1;
    min-width: 0;
    margin-left: 255px;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.kumon-header {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid var(--kumon-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.kumon-content {
    flex: 1;
}

.kumon-user-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 9px;
    border: 1px solid transparent;
    background: transparent;
}

.kumon-user-button:hover,
.kumon-user-button:focus {
    border-color: var(--kumon-border);
    background: #fafbfc;
}

.kumon-user-button::after {
    margin-left: 3px;
}

.kumon-menu-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.kumon-menu-button span {
    width: 18px;
    height: 2px;
    background: #333;
    display: block;
}

.kumon-mobile-menu {
    width: 280px !important;
}

.kumon-mobile-menu .kumon-nav {
    min-height: calc(100vh - 160px);
}

.kumon-welcome-card {
    min-height: 175px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(120deg, #43bde4 0%, #62c8e8 56%, #76d0b5 100%);
    box-shadow: 0 8px 24px rgba(53, 137, 165, .13);
}

.kumon-welcome-mark {
    width: 94px;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    font-size: 34px;
    font-weight: 800;
    opacity: .75;
}

.kumon-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
}

.kumon-stat-accent {
    width: 34px;
    height: 5px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.kumon-accent-blue { background: var(--kumon-blue); }
.kumon-accent-mint { background: var(--kumon-mint); }
.kumon-accent-red { background: var(--kumon-red); }

.kumon-check-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid #eef0f2;
}

.kumon-check-row:last-child {
    border-bottom: 0;
}

.kumon-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #176b57;
    background: #dff6ef;
    font-weight: 800;
}

.kumon-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #eef0f2;
    color: var(--kumon-muted);
}

.kumon-info-row strong {
    color: var(--kumon-ink);
    text-align: right;
}

.kumon-badge {
    color: #176b57;
    background: #dcf5ed;
}

.kumon-footer {
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 28px;
    background: #fff;
    border-top: 1px solid var(--kumon-border);
    font-size: 12px;
}

.card {
    border-radius: 13px;
}

@media (max-width: 991.98px) {
    .kumon-main {
        margin-left: 0;
    }

    .kumon-header {
        padding: 11px 18px;
    }
}

@media (max-width: 575.98px) {
    .kumon-header {
        min-height: 66px;
        padding: 9px 13px;
    }

    .kumon-content .container-fluid {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .kumon-welcome-card {
        min-height: 160px;
        padding: 24px;
    }

    .kumon-welcome-mark {
        position: absolute;
        right: -16px;
        bottom: -16px;
        opacity: .22;
    }

    .kumon-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}

.kumon-accent-dark { background: var(--kumon-ink); }

.kumon-table thead th {
    padding: 14px 18px;
    color: #7a828b;
    background: #fafbfc;
    border-bottom: 1px solid var(--kumon-border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.kumon-table tbody td {
    padding: 15px 18px;
    border-color: #eef1f3;
    vertical-align: middle;
}

.kumon-table tbody tr:hover {
    background: #fbfdfe;
}

.kumon-status-active {
    color: #176b57;
    background: #dcf5ed;
}

.kumon-status-inactive {
    color: #a13c4d;
    background: #fde7eb;
}

.kumon-status-warning {
    color: #8b6516;
    background: #fff3d5;
}

.kumon-role-badge {
    color: #167ba0;
    background: #e5f6fc;
}

.kumon-detail-label {
    margin-bottom: 5px;
    color: var(--kumon-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kumon-list-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid #eef1f3;
    text-decoration: none;
}

.kumon-list-row:last-child {
    border-bottom: 0;
}

.kumon-list-row:hover {
    background: #fbfdfe;
}

.kumon-sticky-card {
    position: sticky;
    top: 94px;
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--kumon-blue-dark);
    border-color: var(--kumon-border);
}

.page-item.active .page-link {
    background: var(--kumon-blue-dark);
    border-color: var(--kumon-blue-dark);
}
.table-responsive {
    padding: 1rem 3rem;
}
@media (max-width: 1199.98px) {
    .kumon-sticky-card {
        position: static;
    }
}

/* Kumon brand typography */
@font-face {
    font-family: 'Futura Kumon';
    src: url('../fonts/Futura-ExtraBold.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --kumon-display-font: 'Futura Kumon', 'Arial Black', Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.kumon-product-name,
.kumon-nav-label,
.kumon-section-title,
.kumon-card-title,
.kumon-empty-title {
    font-family: var(--kumon-display-font);
    font-weight: 800 !important;
}

.kumon-header h1 {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: .005em;
}

.kumon-section-title {
    color: #202328;
    font-size: 24px;
    line-height: 1.25;
}

.kumon-section-description,
.kumon-card-subtitle {
    color: var(--kumon-muted);
    font-size: 14px;
    line-height: 1.55;
}

.kumon-primary-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 9px;
    font-family: var(--kumon-display-font);
    font-size: 14px;
    font-weight: 800;
}

/* User directory */
.kumon-data-card {
    border-radius: 16px;
    box-shadow: 0 9px 26px rgba(35, 52, 64, .07) !important;
}

.kumon-filter-panel {
    padding: 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--kumon-border);
}

.kumon-filter-label {
    margin-bottom: 8px;
    color: #58616b;
    font-size: 12px;
    font-weight: 700;
}

.kumon-filter-control {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 14px;
    background-color: #fff;
    font-size: 14px;
}

.btn-kumon-filter,
.btn-kumon-secondary {
    min-height: 42px;
    border: 1px solid #dfe5e9;
    border-radius: 9px;
    background: #fff;
    color: #333941;
    font-weight: 700;
}

.btn-kumon-filter {
    min-height: 46px;
    background: #f7f9fa;
}

.btn-kumon-filter:hover,
.btn-kumon-filter:focus,
.btn-kumon-secondary:hover,
.btn-kumon-secondary:focus {
    border-color: #bcdfea;
    background: #eef9fd;
    color: #087ea8;
}

.kumon-users-table thead th {
    padding: 16px 24px;
    font-family: var(--kumon-display-font);
    font-size: 10px;
    letter-spacing: .055em;
}

.kumon-users-table tbody td {
    min-height: 82px;
    padding: 20px 24px;
}

.kumon-users-table tbody tr {
    transition: background-color .15s ease;
}

.kumon-users-table tbody tr:hover {
    background: #f8fcfd;
}

.kumon-user-cell {
    min-width: 245px;
}

.kumon-list-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4f6fb;
    color: #087ea8;
    font-family: var(--kumon-display-font);
    font-size: 15px;
    font-weight: 800;
}

.kumon-user-name,
.kumon-table-primary {
    color: #24282d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.kumon-user-name {
    margin-bottom: 4px;
    font-size: 15px;
}

.kumon-secondary-text {
    color: #7a828b;
    font-size: 12px;
    line-height: 1.45;
}

.kumon-table-badge {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.kumon-action-btn {
    min-width: 70px;
    min-height: 36px;
    padding: 7px 15px;
}

.kumon-empty-title {
    color: #343a40;
    font-size: 16px;
}

.kumon-pagination-wrap {
    padding: 18px 24px;
}

/* Center details */
.kumon-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    font-size: 14px;
    font-weight: 700;
}

.kumon-detail-card {
    border-radius: 16px;
    box-shadow: 0 9px 26px rgba(35, 52, 64, .07) !important;
    overflow: hidden;
}

.kumon-detail-card-header {
    padding: 28px 30px 18px;
}

.kumon-detail-card-body {
    padding: 18px 30px 30px;
}

.kumon-card-title {
    color: #202328;
    font-size: 20px;
    line-height: 1.3;
}

.kumon-detail-item {
    min-height: 94px;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    background: #fafcfd;
}

.kumon-detail-item-address {
    min-height: auto;
}

.kumon-detail-label {
    margin-bottom: 8px;
    color: #707985;
    font-family: var(--kumon-display-font);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
}

.kumon-detail-value {
    color: #202328;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.kumon-address-value {
    white-space: pre-line;
    line-height: 1.65;
}

.kumon-login-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    background: #fafcfd;
}

.kumon-login-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--kumon-mint);
    color: #164e41;
    font-family: var(--kumon-display-font);
    font-size: 17px;
    font-weight: 800;
}

.kumon-login-name {
    margin-bottom: 4px;
    color: #202328;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.kumon-login-email {
    color: #717983;
    font-size: 13px;
    line-height: 1.45;
}

.kumon-login-meta {
    padding: 22px 2px;
}

.kumon-manage-login-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .kumon-section-title {
        font-size: 21px;
    }

    .kumon-filter-panel {
        padding: 20px;
    }

    .kumon-users-table thead th,
    .kumon-users-table tbody td {
        padding-left: 18px;
        padding-right: 18px;
    }

    .kumon-detail-card-header {
        padding: 23px 22px 14px;
    }

    .kumon-detail-card-body {
        padding: 16px 22px 24px;
    }

    .kumon-detail-item {
        min-height: auto;
        padding: 16px 17px;
    }
}

/* Phase 03 catalogue */
.kumon-catalog-table tbody td {
    padding-top: 18px;
    padding-bottom: 18px;
}

.kumon-catalog-code {
    width: 52px;
    height: 42px;
    min-width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 10px;
    background: #e8f7fc;
    color: #087ea8;
    font-family: var(--kumon-display-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.kumon-category-description {
    max-width: 420px;
}

.kumon-detail-value {
    color: #24282d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.kumon-catalog-preview {
    padding: 18px 20px;
    border: 1px solid #cfeaf3;
    border-radius: 12px;
    background: #f4fbfd;
}

@media (max-width: 767.98px) {
    .kumon-category-description {
        max-width: 220px;
    }
}
