/**
 * INV_HT002 在庫移動入力画面 スタイルシート
 * 共通スタイルは /components/ht-common.css で定義
 */

/* ===========================
   ヘッダー情報
   =========================== */
.ht-user-info {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name::before {
    content: "■ ";
}

/* ===========================
   現在の在庫情報表示エリア
   =========================== */
.current-stock-area {
    background-color: var(--ht-bg-light);
    border: 1px solid var(--ht-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.stock-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.stock-row:last-child {
    margin-bottom: 0;
}

.stock-label {
    font-size: 13px;
    color: var(--ht-text-secondary);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 8px;
}

.stock-value {
    font-size: 15px;
    color: var(--ht-text);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

/* ===========================
   画面固有: プロンプト（カラーブロック）
   =========================== */
.prompt-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--ht-primary);
    text-align: center;
    padding: 12px;
    background-color: var(--ht-primary-light);
    border-radius: 8px;
    border: 2px solid var(--ht-primary);
}

/* ===========================
   セレクトボックス（画面固有）
   =========================== */
.ht-select {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ht-text);
    background-color: var(--ht-white);
    border: 2px solid var(--ht-border);
    border-radius: 6px;
    transition: border-color 0.2s, background-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.ht-select:focus {
    outline: none;
    border-color: var(--ht-border-focus);
    background-color: var(--ht-bg-focus);
}

/* ===========================
   確認画面エリア
   =========================== */
.confirmation-area {
    background-color: var(--ht-bg-light);
    border: 2px solid var(--ht-primary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.confirmation-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--ht-primary);
    margin-bottom: 12px;
    text-align: center;
}

.confirmation-content {
    background-color: var(--ht-white);
    border-radius: 6px;
    padding: 12px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ht-border);
}

.confirmation-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.confirmation-row label {
    font-size: 13px;
    color: var(--ht-text-secondary);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 8px;
}

.confirmation-row span {
    font-size: 15px;
    color: var(--ht-text);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

/* ===========================
   画面固有: メッセージアニメーション
   =========================== */
.error-message,
.success-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   画面固有: ローディングテキスト間隔
   =========================== */
.loading-indicator p {
    margin-top: 12px;
}

/* ===========================
   画面固有: プライマリボタン（青）
   =========================== */
.ht-button-primary {
    background-color: #2196F3;
    color: #fff;
}

.ht-button-primary:hover:not(:disabled) {
    background-color: #1976D2;
}

.ht-button-primary:active:not(:disabled) {
    background-color: #1565C0;
}

/* ===========================
   レスポンシブ対応
   =========================== */
@media (min-width: 768px) {
    .ht-main {
        padding: 24px;
    }

    .ht-input,
    .ht-select {
        max-width: 600px;
    }

    .confirmation-area {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-height: 700px) {
    .ht-main {
        justify-content: flex-start;
    }
}
