@charset "UTF-8";

/*******************************************************
 * トップページ部分
 ******************************************************/
body {
    margin: 0;
    padding-top: 5px;  /* ヘッダーの実際の高さ分だけ余白をとる（スマホでの高さも考慮） */
    box-sizing: border-box;
    max-width: 100%;
	
}

 
.container{
    white-space: nowrap;
    overflow-x: auto;
    display: block;
    width: calc(100% - 20px); /* 横余白分を引く */
    margin: 0 10px;
}


 
 .box{
	 display: inline-block;
     width: auto;
	 height: 100%px; 
	 background-color: rgb(248, 245, 248); 
	 margin-right: 3px;
	 margin-left: 3px
 }
 
 
 h3{
	 text-align:center;
	 background-color:rgb(92, 231, 250)
 }
 
 
 .login-container {
     display: flex;
     flex-direction: column;
     justify-content: center; /* 垂直方向中央 */
     align-items: center;     /* 水平方向中央 */
     height: 100%;
     text-align: center;
 }

 .login-form {
     border: 1px solid #ccc;
     padding: 20px;
     border-radius: 8px;
     box-shadow: 0 0 10px rgba(0,0,0,0.1);
     background-color: #f9f9f9;
     min-width: 300px;
 }
 
 
 .answer {
   margin-top:5px;
   margin-bottom: 5px;
 }
 
 .materialButton a{
	 font-weight: bold;
	 font-size: 20px;
 }
 
 .totalStock p{
	 margin:0;
 }
 
 .red{
	color: red;
	font-weight: bold;
  }
 /*******************************************************
 * 登録ページ部分
 ******************************************************/
 
 .form-group{
	display: inline-block;
	margin: 6px auto;
}

h1{
	margin:7px 0 3px 0
}

h2 {
	margin:20px 0 4px 0;
    background-color: rgb(182, 248, 220);  /* 背景色 */
    padding: 3px;  /* 内側の余白を調整 */
    border-radius: 5px;  /* 角を丸める */
    color: rgb(66, 66, 77);  /* 文字色 */
}
h4 {
	font-size: 20px;
	margin:1px 0 7px 0
}

.errmsg{
	color: red;
	font-weight: bold;
}
    
    
  /* 初期状態で非表示にする行 */
   .hidden-row {
    display: none;
  }
  .hidden-row.show {
    display: table-row;
  }
 
/*******************************************************
 ヘッダー/ボタン
 ******************************************************/
 /* ヘッダー全体のレイアウト */
 .header {
     display: flex;                /* 横並び */
     justify-content: space-between; /* 左右に配置（左にタイトル、右にボタン） */
     align-items: center;          /* 上下中央揃え */
     background-color: rgb(172, 253, 174);    /* 背景色（任意） */
     padding: 10px 20px;           /* 内側の余白 */
     border-bottom: 2px solid #ccc; /* 下線（任意） */
	 margin-bottom: 20px;
 }

 /* タイトルの見た目 */
 .header h1 {
     margin: 0;                   /* デフォルトの余白を消す */
     font-size: 1.5rem;           /* 見やすいサイズに調整 */
     color: #333;                 /* テキスト色 */
 }

 /* ボタンの並び */
 .button-group {
     display: flex;               /* 横並び */
     gap: 10px;                   /* ボタンの間隔 */
 }

 /* 各ボタンのスタイル */
 .button {
     background-color: #007bff;   /* 青 */
     color: white;                /* 文字色 */
     border: none;
     border-radius: 5px;          /* 角を丸く */
     padding: 8px 14px;
     cursor: pointer;
     font-size: 0.9rem;
     transition: background-color 0.3s ease;
 }

 .button:hover {
     background-color: #0056b3;   /* ホバー時の色 */
 }

 /* 各 form のデフォルト余白を消す */
 .button-group form {
     margin: 0;
 }


/*******************************************************
 * 入荷編集画面
 ******************************************************/
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.inline-form {
    display: inline-block; /* 横並びに配置 */
    margin-right: 10px;    /* フォーム間の間隔を調整 */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* ===== 共通テーブル設定 ===== */
table {
  width: 100%;
  border: 3px double rgb(128, 128, 128);      /* 外枠は少し太めでくっきり */
  border-collapse: separate;    /* 二重線を維持 */
  border-spacing: 0;
  margin-bottom: 20px;
}

th, td {
  border: 1.5px double rgb(128, 128, 128);    /* 内側は細く・少し薄いグレー */
  padding: 6px;
  text-align: center;
}

thead th {
  background-color: #f7f7f7;    /* ヘッダーを淡いグレーに */
  border: 2px double rgb(128, 128, 128);      /* ヘッダーの線は少し濃く */
}

/* ===== 作業テーブル専用設定 ===== */
.work-table .col-action { width: 8%; }
.work-table .col-order { width: 10%; }
.work-table .col-customer { width: 12%; }
.work-table .col-product { width: 13%; }
.work-table .col-date { width: 15%; }
.work-table .col-useweight { width: 10%; }
.work-table .col-lot { width: 10%; }
.work-table .col-user { width: 7%; }
.work-table .col-memo { width: 15%; }

/* ===== 入荷テーブル専用設定 ===== */
.arrival-table {
  width: 40%;              /* 👈 テーブル全体の幅（好みに応じて変更可能） */
  margin-left: 0;          /* 👈 左寄せ */
  margin-right: auto;      /* 👈 右側に自動余白を取る */
  border: 3px double rgb(128, 128, 128); /* 外枠を二重線に */
  border-collapse: separate;
  border-spacing: 0;
}
.arrival-table .col-action { width: 4%; }
.arrival-table .col-date { width: 11%; }
.arrival-table .col-weight { width: 11%; }
.arrival-table .col-lot { width: 11%; }

/*******************************************************
 * 編集画面
 ******************************************************/

.material-edit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* 画面中央に近づける */
    text-align: center;
}

/* フォーム全体 */
.material-edit-container form {
    background-color: #f9f9f9;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 400px;
}

/* ラベルと入力欄 */
.material-edit-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.material-edit-container input[type="text"] {
    width: 100%;
    height: 40px;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}
/*******************************************************
 * レスポンシブ対応
 ******************************************************/
@media screen and (max-width: 768px) {
    body {
        padding-top: 165px;  /* スマホでヘッダーが縦に広がる場合に対応 */
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group {
        flex-wrap: wrap;
        gap: 5px;
    }

    .button {
        width: 100%;  /* ボタンが縦に並ぶように */
    }
}