/**
 * SHP_HT001 出庫検品リスト選択画面 スタイルシート
 * HT向けモバイルファースト設計（PCK_HT001ベース）
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%; overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px; line-height: 1.5; color: #333; background-color: #f5f5f5;
    -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}

.ht-container { display: flex; flex-direction: column; width: 100%; height: 100%; background-color: #fff; }

.ht-header-inspection {
    flex-shrink: 0; padding: 12px 16px;
    background-color: #006f5e; color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ht-title { font-size: 20px; font-weight: bold; margin-bottom: 4px; }
.ht-user-info { font-size: 12px; opacity: 0.9; display: flex; gap: 12px; }

.ht-main { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow-y: auto; gap: 16px; }
.prompt-area { flex-shrink: 0; }
.prompt-label { display: block; font-size: 18px; font-weight: 600; color: #333; margin-bottom: 8px; }

.list-container { flex: 1; display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.list-header {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 8px; padding: 12px;
    background-color: #f0f0f0; border-bottom: 2px solid #ddd; font-weight: bold; font-size: 14px; color: #555;
}
.list-header-item { text-align: center; }
.list-area { flex: 1; overflow-y: auto; }

.list-item {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 8px; padding: 16px 12px;
    border-bottom: 1px solid #eee; cursor: pointer; transition: background-color 0.2s; min-height: 56px; align-items: center;
}
.list-item:active { background-color: #fff3e0; }
.list-item.selected { background-color: #fff3e0; border-left: 4px solid #006f5e; }
.list-item-cell { text-align: center; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-cell.list-number { font-weight: 600; color: #006f5e; text-align: left; }
.list-item-cell.status { font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.list-item-cell.status.completed { background-color: #dcfce7; color: #166534; }
.list-item-cell.status.in-progress { background-color: #dbeafe; color: #1e40af; }
.list-item-cell.status.assigned { background-color: #fef3c7; color: #92400e; }
.list-item-cell.status.short { background-color: #fee2e2; color: #991b1b; }

.error-message, .success-message, .info-message { padding: 12px 16px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.error-message { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.success-message { background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.info-message { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.loading-indicator { text-align: center; padding: 32px; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #006f5e; border-radius: 50%; width: 48px; height: 48px; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.ht-footer { flex-shrink: 0; display: flex; gap: 12px; padding: 16px; background-color: #f8f9fa; border-top: 1px solid #dee2e6; }
.ht-button { flex: 1; min-height: 56px; padding: 12px 16px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.ht-button:disabled { opacity: 0.5; cursor: not-allowed; }
.ht-button-primary { background-color: #006f5e; color: #fff; }
.ht-button-primary:hover:not(:disabled) { background-color: #005a4b; }
.ht-button-secondary { background-color: #6c757d; color: #fff; }
.ht-button-tertiary { background-color: #fff; color: #333; border: 1px solid #ddd; }

.empty-state { text-align: center; padding: 48px 24px; color: #666; }
.empty-state-text { font-size: 16px; }
