/* エラーメッセージは赤字で統一 */
.text-danger,
.validation-error,
.field-validation-error,
.validation-summary-errors {
  color: #dc3545 !important;
}

.validation-summary-errors {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== レイアウト（画像参考） ===== */
.layout-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー：青バー */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 1rem;
  background: #2563eb;
  flex-shrink: 0;
}

.app-header-left {
  display: flex;
  align-items: center;
}

.app-header-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.app-header-right {
  min-width: 120px;
  display: flex;
  justify-content: flex-end;
}

.app-header-user {
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
}

.app-header-user:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

/* コンテナ：サイドバー + メイン */
.app-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 52px);
}

/* サイドバー：ダークグレー */
.app-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #2d3748;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.app-sidebar-spacer {
  height: 8px;
  flex-shrink: 0;
}

.app-sidebar-nav {
  padding: 0.75rem 0;
}

.app-sidebar-label {
  padding: 0 1rem 0.5rem;
  font-size: 0.7rem;
  color: #a0aec0;
  letter-spacing: 0.02em;
}

.app-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-sidebar-menu li {
  margin: 0;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.app-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-sidebar-link i:first-child {
  font-size: 1.1rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.app-sidebar-link .bi-arrow-up-right {
  margin-left: auto;
  font-size: 0.75rem;
}

.app-sidebar-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.75rem 1rem;
}

/* メインエリア：白背景 */
.app-main {
  flex: 1;
  background: #f7fafc;
  padding: 1.5rem;
  overflow: auto;
}

/* メイン内のコンテンツカード（フォーム等） */
.app-content-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  max-width: 560px;
}

/* スマホ：サイドバー開閉 */
@media (max-width: 767.98px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 52px;
    bottom: 0;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

.app-sidebar.app-sidebar-open {
  transform: translateX(0);
  }
}

/* ===== ログイン・パスワード変更画面（_LoginLayout で使用） ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  padding: 24px;
  box-sizing: border-box;
}

.login-container {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 32px 28px 36px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: #4a4a4a;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-group:last-of-type {
  margin-bottom: 0;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #1d2327;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0 12px;
  height: 42px;
  font-size: 15px;
  line-height: 1.4;
  color: #2c3338;
  background-color: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-form input:focus {
  border-color: #2171b3;
  box-shadow: 0 0 0 1px #2171b3;
  outline: none;
}

.login-form .btn-login {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #2171b3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-form .btn-login:hover {
  background: #1a5f96;
  color: #fff;
}

.login-form .btn-login:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(33, 113, 179, 0.3);
}

.login-footer {
  text-align: center;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.5;
}

/* 売場一覧：列幅を確保してレイアウト崩れを防止 */
.table-sales-location-list {
  width: 100%;
}

.table-sales-location-list thead th {
  white-space: nowrap;
  vertical-align: middle;
}

.sales-location-name-col {
  min-width: 60ch;
}

.sales-location-date-col {
  min-width: 10rem;
  white-space: nowrap;
}

.sales-location-enable-col {
  min-width: 4.5rem;
  white-space: nowrap;
}

.sales-location-actions-col {
  min-width: 14rem;
}

.table-sales-location-list .sales-location-actions-col a {
  white-space: nowrap;
}

.table-sales-location-list .sales-location-actions-col a + a {
  margin-left: 0.5rem;
}

/* 確認・完了モーダル：長文（60文字等）に対応 */
.modal-dialog-long-text {
  min-width: min(90vw, 36rem);
  max-width: min(95vw, 42rem);
}

.modal-message-wrap {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}