﻿/* 証明書一覧画面 */
.customer-tab-switch {
    display: inline-flex;
    gap: 8px;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 999px;
}

.customer-tab {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #495057;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .customer-tab:hover {
        background: #e9ecef;
    }

    .customer-tab.active {
        background: #cfe2ff; /* 薄い青 */
        color: #0d6efd;
        border: none;
        box-shadow: none;
    }

.customer-certificate-page .customer-certificate-table-wrap {
    overflow-x: auto;
}

.customer-certificate-page .customer-certificate-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    table-layout: auto;
}

    .customer-certificate-page .customer-certificate-table thead th {
        background: linear-gradient(180deg, #1f2732, #18202b);
        color: #fff;
        text-align: left;
        padding: 18px 16px;
        font-size: 15px;
        white-space: nowrap;
    }

    .customer-certificate-page .customer-certificate-table tbody td {
        padding: 18px 16px;
        border-bottom: 1px solid #e7edf6;
        vertical-align: middle;
        background: rgba(255, 255, 255, 0.94);
    }

    .customer-certificate-page .customer-certificate-table tbody tr:hover td {
        background: #f8fbff;
    }

    .customer-certificate-page .customer-certificate-table th,
    .customer-certificate-page .customer-certificate-table td {
        vertical-align: middle;
    }

.customer-certificate-page .customer-certificate-inline-scroll-cell {
    max-width: 180px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: block;
}

.customer-certificate-page .customer-certificate-inline-scroll-cell-memo {
    max-width: 140px;
}

.customer-certificate-page .customer-certificate-inline-scroll-cell::-webkit-scrollbar {
    height: 6px;
}

.customer-certificate-page .customer-certificate-inline-scroll-cell::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.customer-certificate-page .customer-certificate-table-cell-action {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 110px;
}

    .customer-certificate-page .customer-certificate-table-cell-action .customer-page-back-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.customer-page-back-link.active {
    font-weight: bold;
    text-decoration: underline;
}

.customer-certificate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.customer-certificate-badge-client {
    background: rgba(31, 111, 255, 0.12);
    color: #123a8d;
}

.customer-certificate-badge-server {
    background: rgba(17, 163, 106, 0.12);
    color: #0c7d50;
}

.customer-certificate-badge-active {
    background: rgba(17, 163, 106, 0.12);
    color: #0c7d50;
}

.customer-certificate-badge-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #b42318;
}

.customer-certificate-badge-inactive {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.customer-certificate-badge-neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}




/* 証明書発行画面 */
.customer-certificate-issue-page {
    --certificate-label-width: 150px;
    --certificate-form-gap: 18px;
}

    .customer-certificate-issue-page .customer-purchase-guide-card {
        margin-bottom: 24px;
    }

    .customer-certificate-issue-page .customer-purchase-table-card {
        max-width: 100%;
        padding: 0;
    }

    .customer-certificate-issue-page .customer-purchase-card-headline {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 24px 28px 12px 28px;
    }

    .customer-certificate-issue-page form {
        padding: 0 28px 28px 28px;
    }

    .customer-certificate-issue-page .customer-license-form-row {
        margin-bottom: 18px;
    }

        .customer-certificate-issue-page .customer-license-form-row:first-of-type {
            margin-top: 12px;
        }

    .customer-certificate-issue-page .customer-form-horizontal {
        display: flex;
        align-items: center;
        gap: var(--certificate-form-gap);
    }

        .customer-certificate-issue-page .customer-form-horizontal .customer-license-form-label {
            width: var(--certificate-label-width);
            min-width: var(--certificate-label-width);
            margin-bottom: 0;
            padding-left: 6px;
            font-size: 15px;
            font-weight: 600;
            color: #334155;
            line-height: 1.5;
        }

        .customer-certificate-issue-page .customer-form-horizontal .customer-license-form-field {
            flex: 1;
            min-width: 0;
            margin-top: 0;
        }

    .customer-certificate-issue-page .customer-form-vertical {
        margin-top: 4px;
    }

        .customer-certificate-issue-page .customer-form-vertical .customer-license-form-label {
            display: block;
            margin-bottom: 8px;
            margin-left: calc(var(--certificate-label-width) + var(--certificate-form-gap) + 6px);
            font-size: 15px;
            font-weight: 600;
            color: #334155;
            line-height: 1.5;
        }

        .customer-certificate-issue-page .customer-form-vertical .customer-license-form-field {
            margin-top: 0;
            margin-left: calc(var(--certificate-label-width) + var(--certificate-form-gap));
        }

    .customer-certificate-issue-page .customer-registration-input {
        min-height: 48px;
        width: 100%;
    }

    .customer-certificate-issue-page #clientFields,
    .customer-certificate-issue-page #serverFields {
        width: 100%;
    }

    .customer-certificate-issue-page .customer-license-actions {
        width: 100%;
        max-width: 100%;
        margin-top: 24px;
        margin-left: 0;
    }

    .customer-certificate-issue-page .customer-purchase-footer-note {
        font-size: 14px;
        line-height: 1.6;
    }

@media (max-width: 768px) {
    .customer-certificate-issue-page .customer-form-horizontal {
        display: block;
    }

        .customer-certificate-issue-page .customer-form-horizontal .customer-license-form-label {
            width: auto;
            min-width: 0;
            margin-bottom: 8px;
        }

    .customer-certificate-issue-page .customer-form-vertical .customer-license-form-label {
        margin-left: 6px;
    }

    .customer-certificate-issue-page .customer-form-vertical .customer-license-form-field {
        margin-left: 0;
    }

    .customer-certificate-page .customer-certificate-inline-scroll-cell,
    .customer-certificate-page .customer-certificate-inline-scroll-cell-memo {
        max-width: 100%;
    }
}
