/**
 * 領収書発行ページ用スタイル
 */

.cloudtech-receipt-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

.cloudtech-receipt-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f90;
    color: #333;
}

.cloudtech-receipt-subtitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* フォーム */
.cloudtech-receipt-form {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.cloudtech-receipt-field {
    margin-bottom: 0;
}

.cloudtech-receipt-field label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
}

.cloudtech-receipt-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cloudtech-receipt-input-wrapper input {
    flex: 1;
    max-width: 400px;
    padding: 12px 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cloudtech-receipt-input-wrapper input:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.cloudtech-receipt-suffix {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.cloudtech-receipt-suffix-select {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cloudtech-receipt-suffix-select:focus {
    outline: none;
    border-color: #f90;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.cloudtech-receipt-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

/* 注文テーブル */
.cloudtech-receipt-orders {
    margin-bottom: 40px;
}

.cloudtech-receipt-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cloudtech-receipt-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cloudtech-receipt-table thead {
    background: linear-gradient(135deg, #f90 0%, #ff6b00 100%);
}

.cloudtech-receipt-table th {
    padding: 15px;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #fff;
}

.cloudtech-receipt-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.cloudtech-receipt-table tbody tr:hover {
    background-color: #fff8f0;
}

.cloudtech-receipt-table tbody tr:last-child {
    border-bottom: none;
}

.cloudtech-receipt-table td {
    padding: 18px 15px;
    vertical-align: middle;
}

.cloudtech-receipt-table .col-date {
    width: 120px;
    font-weight: bold;
    color: #333;
}

.cloudtech-receipt-table .col-amount {
    width: 140px;
}

/* 金額列：ヘッダーは白、本文はオレンジ */
.cloudtech-receipt-table tbody .col-amount {
    font-size: 18px;
    font-weight: bold;
    color: #f90;
}

.cloudtech-receipt-table .col-detail {
    color: #666;
    font-size: 13px;
}

.cloudtech-receipt-table .col-detail .detail-item {
    display: inline-block;
    margin-right: 15px;
}

.cloudtech-receipt-table .col-action {
    width: 150px;
    text-align: center;
}

/* ボタン */
.cloudtech-receipt-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.cloudtech-receipt-btn-issue {
    background: linear-gradient(135deg, #f90 0%, #ff6b00 100%);
    color: #fff;
    box-shadow: 0 3px 6px rgba(255, 153, 0, 0.3);
}

.cloudtech-receipt-btn-issue:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 153, 0, 0.4);
}

.cloudtech-receipt-btn-issue:active {
    transform: translateY(0);
}

.cloudtech-receipt-btn-issue:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* 注意書き */
.cloudtech-receipt-notes {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 20px 25px;
    border-left: 4px solid #3498db;
}

.cloudtech-receipt-notes h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cloudtech-receipt-notes ul {
    margin: 0;
    padding-left: 20px;
}

.cloudtech-receipt-notes li {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.6;
}

.cloudtech-receipt-notes li:last-child {
    margin-bottom: 0;
}

/* 支払いなし */
.cloudtech-receipt-no-orders {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #888;
    font-size: 16px;
}

/* エラー */
.cloudtech-receipt-error {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    border-radius: 5px;
    color: #721c24;
}

/* ローディング */
.cloudtech-receipt-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cloudtech-receipt-loading-content {
    background: #fff;
    padding: 40px 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cloudtech-receipt-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top-color: #f90;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cloudtech-receipt-loading-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* 会社名変更のお知らせ */
.cloudtech-receipt-company-notice {
    margin-top: 30px;
    padding: 15px 20px;
    background: #fffbf0;
    border: 1px solid #f0e0c0;
    border-radius: 8px;
}

.cloudtech-receipt-company-change-note {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .cloudtech-receipt-page {
        padding: 15px;
    }
    
    .cloudtech-receipt-title {
        font-size: 22px;
    }
    
    .cloudtech-receipt-form {
        padding: 20px;
    }
    
    .cloudtech-receipt-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cloudtech-receipt-input-wrapper input {
        max-width: 100%;
        width: 100%;
    }
    
    .cloudtech-receipt-table th,
    .cloudtech-receipt-table td {
        padding: 12px 10px;
    }
    
    .cloudtech-receipt-table .col-detail {
        display: none;
    }
    
    .cloudtech-receipt-btn-issue {
        padding: 8px 15px;
        font-size: 13px;
    }
}

