﻿/* licenseで使用 */
.customer-license-page {
    padding: 28px 16px 72px;
}

.customer-license-container {
    max-width: 1240px;
    margin: 0 auto;
}

.customer-license-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

    .customer-license-page-head h1 {
        margin: 0 0 8px;
        font-size: clamp(32px, 4vw, 46px);
        line-height: 1.15;
        color: #17212f;
    }

    .customer-license-page-head p {
        margin: 0;
        color: #66758a;
        line-height: 1.7;
    }

.customer-license-hero-card,
.customer-license-table-card,
.customer-license-summary-box {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 64px rgba(18, 58, 141, 0.12);
    backdrop-filter: blur(12px);
}

.customer-license-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 24px;
}

    .customer-license-hero-card::before {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        top: -120px;
        right: -110px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(31, 111, 255, 0.16), rgba(31, 111, 255, 0));
        pointer-events: none;
    }

.customer-license-summary-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.customer-license-summary-box {
    border-radius: 22px;
    padding: 18px 20px;
}

    .customer-license-summary-box small {
        display: block;
        color: #66758a;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .customer-license-summary-box strong {
        display: block;
        font-size: 32px;
        color: #123a8d;
        margin-bottom: 4px;
    }

    .customer-license-summary-box span {
        color: #66758a;
        font-size: 14px;
    }

    .customer-license-summary-box.success strong {
        color: #11a36a;
    }

    .customer-license-summary-box.warning strong {
        color: #d18a00;
    }

    .customer-license-summary-box.danger strong {
        color: #ef4444;
    }

.customer-license-filters {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr auto 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.customer-license-input,
.customer-license-select,
.customer-license-btn-search {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    font-size: 16px;
}

.customer-license-input,
.customer-license-select {
    background: #fff;
    padding: 0 16px;
    outline: none;
    color: #17212f;
}

    .customer-license-input:focus,
    .customer-license-select:focus {
        border-color: #1f6fff;
        box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
    }

.customer-license-btn-search {
    width: 90px;
    border: 0;
    background: linear-gradient(135deg, #1f6fff, #52a3ff);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(31, 111, 255, 0.2);
    cursor: pointer;
}

.customer-license-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.customer-license-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4ebf4;
    font-weight: 700;
    color: #314055;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

    .customer-license-tab:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(31, 111, 255, 0.10);
    }

    .customer-license-tab.active {
        background: linear-gradient(135deg, rgba(31, 111, 255, 0.20), rgba(82, 163, 255, 0.28));
        color: #123a8d;
        border-color: #bcd3ff;
        box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.5), 0 8px 18px rgba(31, 111, 255, 0.16);
        transform: translateY(1px);
    }

        .customer-license-tab.active .customer-license-badge-count {
            background: #1f6fff;
            color: #fff;
        }

.customer-license-badge-count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8eef7;
    font-size: 13px;
    font-weight: 800;
    color: #516173;
}

.customer-license-table-card {
    border-radius: 28px;
    overflow: hidden;
}

.customer-license-card-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #e5edf6;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.82));
    flex-wrap: wrap;
}

    .customer-license-card-headline h2 {
        margin: 0 0 4px;
        font-size: 26px;
        color: #17212f;
    }

    .customer-license-card-headline p {
        margin: 0;
        color: #66758a;
        font-size: 14px;
    }

.customer-license-table-wrap {
    overflow-x: auto;
}

.customer-license-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

    .customer-license-table thead th {
        background: linear-gradient(180deg, #1f2732, #18202b);
        color: #fff;
        text-align: left;
        padding: 18px 16px;
        font-size: 15px;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .customer-license-table tbody td {
        padding: 18px 16px;
        border-bottom: 1px solid #e7edf6;
        vertical-align: middle;
        background: rgba(255, 255, 255, 0.92);
    }

    .customer-license-table tbody tr:hover td {
        background: #f8fbff;
    }

    /* 購入受付番号 */
    .customer-license-table td:nth-child(2) {
        white-space: nowrap;
    }

    /* ライセンス番号 */
    .customer-license-table td:nth-child(3) {
        white-space: nowrap;
    }

    /* 製品 */
    .customer-license-table td:nth-child(4) {
        max-width: 240px;
    }

    /* ライセンスタイプ */
    .customer-license-table td:nth-child(5) {
        width: 110px;
    }

    /* 状態 */
    .customer-license-table td:nth-child(9) {
        width: 110px;
        white-space: nowrap;
    }

    /* 有効期限 */
    .customer-license-table td:nth-child(10) {
        min-width: 160px;
    }


.customer-license-empty {
    text-align: center;
    color: #66758a;
    font-weight: 700;
}

.customer-license-link,
.customer-license-product-link {
    color: #1f6fff;
    font-weight: 700;
}

.customer-license-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

    .customer-license-mini-badge.dark {
        background: #1e2732;
        color: #fff;
    }

    .customer-license-mini-badge.gray {
        background: #808a96;
        color: #fff;
    }

    .customer-license-mini-badge.warning {
        background: #ffc933;
        color: #2f2400;
    }

    .customer-license-mini-badge.success {
        background: rgba(17, 163, 106, 0.12);
        color: #0c7d50;
    }

    .customer-license-mini-badge.danger {
        background: rgba(239, 68, 68, 0.12);
        color: #b42318;
    }

    .customer-license-mini-badge.primary {
        background: #1f6fff;
        color: #fff;
    }

    .customer-license-mini-badge.light {
        background: #f3f7fc;
        color: #314055;
    }

    .customer-license-mini-badge.info {
        background: #d9f2ff;
        color: #0b5f85;
    }

.customer-license-muted {
    color: #66758a;
}


.customer-license-deadline {
    display: grid;
    gap: 4px;
}

    .customer-license-deadline small {
        color: #66758a;
        font-size: 13px;
    }

    .customer-license-deadline span {
        white-space: nowrap;
    }

.customer-license-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px 20px;
    flex-wrap: wrap;
}

.customer-license-page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid #dbe4f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #66758a;
    text-decoration: none;
}

    .customer-license-page-btn.active {
        background: linear-gradient(135deg, #1f6fff, #52a3ff);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 12px 24px rgba(31, 111, 255, 0.2);
    }

@media (max-width: 980px) {
    .customer-license-summary-grid,
    .customer-license-filters {
        grid-template-columns: 1fr 1fr;
    }

    .customer-license-btn-search {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .customer-license-summary-grid,
    .customer-license-filters {
        grid-template-columns: 1fr;
    }

    .customer-license-hero-card,
    .customer-license-card-headline {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.customer-license-inline-scroll-cell {
    max-width: 180px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: block;
}

    .customer-license-inline-scroll-cell::-webkit-scrollbar {
        height: 6px;
    }

    .customer-license-inline-scroll-cell::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }



/* licenseDetailで使用 */
.customer-license-detail-hero {
    margin-bottom: 22px;
}

.customer-license-detail-page .customer-license-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
}

.customer-license-detail-page .customer-license-summary-box {
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #e4ebf4;
}

.customer-license-detail-page .customer-license-summary-box-expired {
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, #fff7f7, #fff1f1);
}

.customer-license-detail-page .customer-license-summary-box-expiring {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, #fffdf7, #fff8e8);
}

.customer-license-detail-page .customer-license-summary-label {
    color: #66758a;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.customer-license-detail-page .customer-license-summary-title {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #17212f;
}

.customer-license-detail-page .customer-license-summary-note {
    margin-top: 6px;
    color: #66758a;
    font-size: 13px;
    line-height: 1.7;
}

.customer-license-detail-page .customer-license-summary-note-danger {
    color: #b42318;
}

.customer-license-detail-page .customer-license-tag-active {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.customer-license-detail-page .customer-license-tag-expired {
    background: rgba(239, 68, 68, 0.14);
    color: #b42318;
}

.customer-license-detail-page .customer-license-tag-expiring {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.customer-license-detail-page .customer-license-tag-trial {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.customer-license-detail-page .customer-license-tag-full {
    background: rgba(31, 111, 255, 0.14);
    color: #123a8d;
}

.customer-license-detail-page .customer-license-tag-floating {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.customer-license-detail-page .customer-license-tag-node {
    background: rgba(17, 24, 39, 0.14);
    color: #111827;
}

.customer-license-detail-page .customer-license-tag-db {
    background: rgba(6, 182, 212, 0.14);
    color: #0f766e;
}

.customer-license-detail-page .customer-license-tag-neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.customer-license-detail-page .customer-license-detail-table-wrap {
    padding: 0 24px 24px;
}

.customer-license-detail-page .customer-license-detail-table {
    width: 100%;
    border-collapse: collapse;
}

    .customer-license-detail-page .customer-license-detail-table th,
    .customer-license-detail-page .customer-license-detail-table td {
        padding: 16px 12px;
        border-bottom: 1px solid #e7edf6;
        vertical-align: middle;
    }

    .customer-license-detail-page .customer-license-detail-table th {
        width: 220px;
        color: #334155;
        font-weight: 800;
        text-align: left;
        background: #fbfdff;
    }

    .customer-license-detail-page .customer-license-detail-table td {
        color: #17212f;
    }

.customer-license-detail-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.customer-license-detail-muted {
    color: #66758a;
}

.customer-license-detail-page .customer-license-issue-body {
    padding: 24px;
}

.customer-license-detail-page .customer-license-form-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.customer-license-detail-page .customer-license-form-label {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    color: #334155;
}

.customer-license-detail-page .customer-license-form-field {
    display: grid;
    gap: 8px;
}

.customer-license-detail-page .customer-license-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 16px;
}

.customer-license-detail-page .customer-purchase-footer-note {
    margin: 0;
}

.customer-license-detail-page .customer-purchase-action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.customer-license-detail-page .customer-license-inline-warning {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    font-size: 14px;
    padding: 0 14px;
    border-radius: 16px;
    background: #fff9ef;
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #8a5a13;
    font-weight: 700;
    white-space: nowrap;
}

.customer-license-detail-page .customer-license-warning {
    margin-top: 18px;
}

.customer-alert-warning {
    border-radius: 18px;
    padding: 16px 18px;
    background: #fff9ef;
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #8a5a13;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.06);
}

.customer-license-detail-page .customer-license-warning-title {
    font-weight: 800;
    margin-bottom: 6px;
    color: #7c2d12;
}

.customer-license-detail-page .customer-license-warning-line {
    line-height: 1.8;
    margin-bottom: 8px;
}

.customer-license-detail-page .customer-license-warning-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 14px;
}

.customer-license-detail-page .customer-license-warning-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 42px;
    color: #a16207;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 28px;
}

.customer-license-detail-page .customer-license-warning-action-row .btn-license-issue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.customer-license-detail-page .customer-license-warning-note {
    color: #7c6a4c;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .customer-license-detail-page .customer-license-detail-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .customer-license-detail-page .customer-license-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .customer-license-detail-page .customer-license-form-label {
        min-height: auto;
    }

    .customer-license-detail-page .customer-license-detail-table th,
    .customer-license-detail-page .customer-license-detail-table td {
        display: block;
        width: 100%;
    }

    .customer-license-detail-page .customer-license-detail-table th {
        padding-bottom: 6px;
        border-bottom: 0;
    }

    .customer-license-detail-page .customer-license-detail-table td {
        padding-top: 0;
    }

    .customer-license-detail-page .customer-license-warning-action-row {
        align-items: flex-start;
    }

        .customer-license-detail-page .customer-license-warning-action-row .btn-license-issue {
            white-space: normal;
        }
}


/* licenseIssueで使用 */
.customer-license-issue-hero {
    margin-bottom: 18px;
}

.customer-license-issue-info-panel {
    color: #30465f;
}

    .customer-license-issue-info-panel h2 {
        margin: 0 0 10px;
        font-size: 28px;
        color: #17212f;
    }

.customer-license-issue-info-line {
    line-height: 1.9;
    margin-bottom: 10px;
    font-weight: 600;
    color: #30465f;
}

.customer-license-issue-info-line-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.customer-license-issue-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 28px;
    color: #a16207;
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    flex: 0 0 20px;
}

.customer-license-issue-warning {
    margin-bottom: 18px;
}

.customer-license-issue-warning-inner {
    align-items: flex-start;
    gap: 12px;
}

.customer-license-warning-title {
    font-weight: 800;
    margin-bottom: 6px;
    color: #7c2d12;
}

.customer-license-warning-line {
    line-height: 1.8;
    margin-bottom: 8px;
}



.customer-license-issue-note {
    margin-bottom: 18px;
}

.customer-license-issue-note-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.customer-license-issue-note-line {
    line-height: 1.8;
    margin-bottom: 4px;
}

.customer-license-issue-form-card {
    margin-top: 4px;
}

.customer-license-issue-field-note {
    color: #66758a;
    font-size: 13px;
    line-height: 1.7;
}

.customer-license-issue-file-picker {
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .customer-license-issue-file-picker:focus-within {
        border-color: #1f6fff;
        box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
    }

.customer-license-issue-file-input-hidden {
    display: none;
}

.customer-license-issue-file-button {
    height: 56px;
    padding: 0 18px;
    border-right: 1px solid #dbe4f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #123a8d;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    margin: 0;
    flex: 0 0 auto;
}

    .customer-license-issue-file-button:hover {
        background: #f8fbff;
    }

.customer-license-issue-file-name {
    padding: 0 16px;
    color: #66758a;
    font-size: 15px;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.customer-license-issue-textarea {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}

.customer-license-issue-actions {
    margin-top: 28px;
}

@media (max-width: 767px) {
    .customer-license-issue-warning-line-inline {
        align-items: flex-start;
    }

    .customer-license-issue-file-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-license-issue-file-button {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #dbe4f0;
    }

    .customer-license-issue-file-name {
        padding: 14px 16px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}



/* licenseIssueCompleted */
.customer-license-issue-completed-success {
    margin-bottom: 18px;
}

.customer-license-completed-title {
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 18px;
}

.customer-license-completed-line {
    line-height: 1.8;
}

.customer-license-issue-completed-info {
    margin-bottom: 18px;
}

.customer-license-completed-info-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.customer-license-completed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.customer-license-completed-label {
    font-weight: 700;
    color: #30465f;
    min-width: 180px;
}

.customer-license-completed-value {
    flex: 1;
    text-align: right;
    font-size: 16px;
    color: #17212f;
}

.customer-license-issue-completed-note {
    margin-bottom: 18px;
}

.customer-license-issue-completed-actions {
    margin-top: 10px;
}

.customer-license-summary-card {
    min-height: 140px;
}

.customer-file-picker {
    margin-top: 8px;
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
}

.customer-file-picker-input {
    display: none;
}

.customer-file-picker-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 56px;
    border: 1px solid #cfd9e6;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

.customer-file-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    min-width: 128px;
    border-right: 1px solid #cfd9e6;
    color: #1d4ed8;
    font-weight: 700;
    background: #fff;
    white-space: nowrap;
}

.customer-file-picker-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 18px;
    color: #94a3b8;
    background: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-file-picker-help {
    margin-top: 8px;
    margin-left: 24px;
    font-size: 0.95rem;
    color: #6b7280;
}

    .customer-file-picker-help.is-loaded {
        color: #374151;
    }


/* ===== 折りたたみ説明 ===== */
.customer-license-help-toggle-wrap {
    margin-top: 10px;
    margin-left: 24px;
    margin-right: 24px;
}

.customer-license-help-toggle {
    padding: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

    .customer-license-help-toggle:hover {
        color: #1d4ed8;
    }

.customer-license-help-panel {
    margin-top: 10px;
}

.customer-license-help-panel-inner {
    padding: 14px 16px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fbff;
}

.customer-license-help-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

    .customer-license-help-list li + li {
        margin-top: 6px;
    }

.text-danger {
    margin-top: 4px;
    display: block;
}

.customer-license-help-note {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.9em;
}
