/* ========================================
   段ボール価格改定システム - 統合CSS (青テーマ)
   ======================================== */

/* ================
   1. 基本設定・リセット
   ================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
}

/* ================
   2. ヘッダー
   ================ */
.header {
    background: #3271b8;
    color: white;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.header-center {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.back-btn,
.logout-btn,
.toggle-btn {
    background-color: #6c757d;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover,
.logout-btn:hover,
.toggle-btn:hover {
    background-color: #5a6268;
}

/* ================
   3. レイアウト
   ================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.main-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.content-area {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

/* グリッドレイアウト */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.col {
    flex: 1;
    padding: 0.5rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0.5rem;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0.5rem;
}

/* ================
   4. サイドバー
   ================ */
.sidebar {
    width: 280px;
    background: #255e9e;
    color: white;
    box-shadow: 4px 0 20px rgba(30, 64, 175, 0.2);
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* background-color: #245e9d; */
}

.filter-grid {
    display: grid;
    /* gap: 0.75rem; */
}

.quick-panel {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    padding: 1rem;
    color: white;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.quick-panel .section-title {
    color: white;
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

/* ================
   5. ボタン
   ================ */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.import-btn {
    background: #2563eb;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.import-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ================
   6. フォーム 
   ================ */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.75rem;
}

.sidebar .form-group label {
    color: white;
}

.form-control,
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2c3e50;
}

.sidebar .form-control,
.sidebar .form-group input,
.sidebar .form-group select {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    color: #2c3e50;
    height: 36px;
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control,
.form-group select {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* ================
   7. カード
   ================ */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.import-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ================
   8. テーブル
   ================ */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-container {
    background: white;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.table-container {
    max-height: 80vh; /* 適切な高さに調整 */
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

/* テーブルレイアウトを固定化 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed; /* 重要：幅計算を固定化 */
}

.data-table thead {
    background: #f8f9fa;
}

/* ヘッダーを固定 */
.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #e9ecef;
    font-size: 11px;
    white-space: nowrap;
}

.data-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #e9ecef;
    font-size: 11px;
    white-space: nowrap;
}

.data-table th .db-field {
    display: block;
    font-size: 9px;
    color: #6c757d;
    font-weight: normal;
    font-style: italic;
    margin-top: 2px;
}

.data-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #f1f3f4;
    border-right: 1px solid #f8f9fa;
    vertical-align: middle;
    font-size: 12px;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.extended-column {
    background-color: #f0f9ff !important;
}

/* ================
   9. 見積書関連
   ================ */
.quotation-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.quotation-preview {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 12px;
    line-height: 1.4;
}

.quotation-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.quotation-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.quotation-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.quotation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 11px;
}

.quotation-table th,
.quotation-table td {
    border: 1px solid #000;
    padding: 8px 4px;
    text-align: center;
    vertical-align: middle;
}

.quotation-table th {
    background: #000;
    color: white;
    font-weight: bold;
}

.quotation-table .text-left {
    text-align: left;
}

.quotation-table .text-right {
    text-align: right;
}

.quotation-remarks {
    margin-top: 1rem;
    border: 1px solid #000;
    padding: 1rem;
}

.quotation-total {
    margin-top: 1rem;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
}

.company-info {
    font-size: 10px;
    text-align: right;
    margin-top: 1rem;
    line-height: 1.2;
}

/* ================
   10. ファイルアップロード
   ================ */
.upload-section {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.upload-section:hover {
    border-color: #2563eb;
    background: #f0f4ff;
}

.upload-section.dragover {
    border-color: #2563eb;
    background: #e0e7ff;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-button {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.file-input-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.upload-info {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.selected-file {
    margin-top: 1rem;
    padding: 1rem;
    background: #e0f2fe;
    border-radius: 6px;
    border-left: 4px solid #0ea5e9;
}

/* ================
   11. ステータス・メッセージ
   ================ */
.status-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.status-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.status-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.status-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid #f39c12;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.warning-box ul {
    color: #856404;
    margin-left: 1.5rem;
}

.warning-box li {
    margin-bottom: 0.5rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ================
   12. 通知
   ================ */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    max-width: 250px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

/* ================
   13. インポート結果
   ================ */
.import-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.summary-item.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.summary-item.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.summary-item.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.summary-item .label {
    font-weight: 600;
}

.summary-item .value {
    font-weight: 700;
}

.error-details {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.error-details h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.error-details ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.error-details li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* ================
   14. バッジ・ラベル
   ================ */
.material-badge {
    background: #3373ba;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
    display: inline-block;
}

.supplier-badge {
    background: #10b981;
    color: white;
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: bold;
    display: inline-block;
}

.profit-rate {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
    text-align: center;
    min-width: 40px;
    font-size: 9px;
    display: inline-block;
}

.profit-high { background: #27ae60; }
.profit-medium { background: #f39c12; }
.profit-low { background: #e74c3c; }

/* ================
   15. その他のコンポーネント
   ================ */
.toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.no-data-container {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.no-data-container h3 {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.no-data-container p {
    color: #868e96;
    margin-bottom: 2rem;
}

/* ================
   16. ローディング・アニメーション
   ================ */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 20px 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================
   17. ユーティリティクラス
   ================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: #6c757d; }
.text-primary { color: #2563eb; }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* ================
   18. レスポンシブ対応
   ================ */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-6,
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .header {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header h1 {
        font-size: 1rem;
    }
    
    .header-stats,
    .header-center {
        justify-content: center;
    }
    
    .table,
    .data-table {
        font-size: 0.8rem;
    }
    
    .result-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-item {
        justify-content: space-between;
    }
    
    .quotation-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ログイン画面 */

.login-body {
    display: flex;
    text-align: center;
    /* padding: 50px; */
    margin: 100px auto;
    width: 500px;
    /* height: 500px; */
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 700px; /* デバッグ情報のため幅を拡張 */
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-header p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.form-group {
    /* margin-bottom: 1.5rem; */
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.success-message {
    background: #d1fae5;
    color: #059669;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid #a7f3d0;
}

.debug-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    font-family: monospace;
    font-size: 0.7rem;
    color: #856404;
    max-height: 350px;
    overflow-y: auto;
}

.debug-info h3 {
    margin: 0 0 0.5rem 0;
    color: #b8860b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
}

.debug-item {
    margin-bottom: 0.25rem;
    word-break: break-all;
    line-height: 1.3;
}

.debug-label {
    font-weight: bold;
    color: #b8860b;
}

.debug-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

.system-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.8rem;
}

.icon {
    font-size: 1.2em;
}

.debug-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-align: center;
}

.hash-recommendation {
    background: #e0f2fe;
    border: 1px solid #81d4fa;
    color: #0277bd;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }
}


/* import */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 4px;
}
button {
    background-color: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}
button:hover {
    background-color: #005a8a;
}
.message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.status-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}
.status-info h3 {
    margin-top: 0;
    color: #333;
}
.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}
.status-row:last-child {
    border-bottom: none;
}
.status-label {
    font-weight: bold;
    color: #666;
}
.status-value {
    color: #333;
}
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s ease;
}
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.jobs-table th,
.jobs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.jobs-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}
.jobs-table tr:hover {
    background-color: #f5f5f5;
}
.job-link {
    color: #007cba;
    text-decoration: none;
}
.job-link:hover {
    text-decoration: underline;
}
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.status-pending { background-color: #ffeaa7; color: #2d3436; }
.status-processing { background-color: #74b9ff; color: white; }
.status-completed { background-color: #00b894; color: white; }
.status-failed { background-color: #e17055; color: white; }
.status-cancelled { background-color: #636e72; color: white; }
.breadcrumb {
    margin-bottom: 20px;
    color: #666;
}
.breadcrumb a {
    color: #007cba;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.job-url {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: monospace;
    word-break: break-all;
}

.action-buttons {
    margin: 10px 0px;
}