/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: white;
  color: #1f2937;
  font-size:14px;
  line-height: 24px;
}
.status-badge{
  font-size: 13px;
  padding-left: 5px;
  text-decoration: underline;
}

.status-badge--success{
  color: #5d36ad;
  text-decoration: none;
}

h1{
  font-size: 17px;
  padding: 10px;
  margin: 0;
}

h2{
  margin: 0;
  font-size: 16px;
}

h3{
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: normal;
}

a {
  color: #318db4;
}
p{
  margin:0;
}

.nlm-header{
  position: fixed;
  width: 100%;
  z-index: 2;
  top: 0;
}
.admin-subnav-wrap {
  background: #f3f4f6;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid #e5e7eb;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  justify-content: center;
}

.admin-subnav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #2563eb;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size:14px;
}

.admin-subnav__item:hover {
  background: #f8fafc;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.link-button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-btn {
  margin-left: 4px;
}
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   NLM風ヘッダー
   ========================= */

   body {
    margin: 0;
    color: #1f2937;
    font-family: math;
  }
  
  .nlm-wrap {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
  }
  
  .nlm-topbar {
    background: #e5e7eb;
    border-bottom: 1px solid #cfd4dc;
    font-size: 13px !important;
    color: #374151;
  }
  
  .nlm-topbar__inner {
    min-height: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .nlm-topbar__flag {
    font-size: 18px;
    line-height: 1;
  }
  
  .nlm-topbar__link {
    color: #0b67c2;
    text-decoration: none;
    margin-left: 8px;
  }
  
  .nlm-topbar__link:hover {
    text-decoration: underline;
  }
  
  .nlm-brandband {
    background: #a29542;
    padding: 6px 0 6px;
  }
  
  .nlm-brandband__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .nlm-brand {
    display: flex;
    align-items: center;
    gap: 22px;
    text-decoration: none;
  }
  
  .nlm-brand__logo {
    width: 48px;
    height: 47px;
    background: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  
  .nlm-brand__logo-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
  }
  
  .nlm-brand__texts {
    color: #ffffff;
  }
  
  .nlm-brand__title {
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  
  .nlm-brand__subtitle {
    margin-top: 0px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
  }
  
  .nlm-auth {
    flex-shrink: 0;
  }
  
  .nlm-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    height: 35px;
    padding: 0 10px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
  }
  
  .nlm-login-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  
  .nlm-login-btn--ghost {
    font-family: inherit;
  }
  
  .nlm-login-btn--ghost form,
  .nlm-login-btn--ghost input,
  .nlm-login-btn--ghost button {
    all: unset;
  }
  
  .nlm-searchband {
    background: #d9d9dc;
    padding: 9px 0 9px;
  }
  
  .nlm-searchrow {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .nlm-searchrow__select {
    width: 210px;
    height: 35px;
    border: 1px solid #9aa3ad;
    background: #ffffff;
    padding: 0 12px;
  }
  
  .nlm-searchrow__form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .nlm-searchrow__input {
    flex: 1;
    height: 35px;
    border: 1px solid #9aa3ad;
    border-radius: 2px;
    background: #ffffff;
    padding: 0 14px;
    box-sizing: border-box;
  }
  
  .nlm-searchrow__button {
    height: 35px;
    padding: 0 22px;
    border: 1px solid #6d87a6;
    border-radius: 10px;
    background: linear-gradient(to bottom, #4a83bf, #2c69a6);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
  }
  
  .nlm-searchrow__button:hover {
    filter: brightness(1.05);
  }
  
  .nlm-mainnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
  }
  
  .nlm-mainnav__link {
    color: #12395f;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 0;
  }
  
  .nlm-mainnav__link:hover {
    text-decoration: underline;
  }
  
  /* 既存レイアウトとのバランス */
  .page-body.container {
    margin-top: 28px;
  }
  
  /* レスポンシブ */
  @media (max-width: 960px) {
    .nlm-brandband__inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .nlm-brand__title {
      font-size: 40px;
    }
  
    .nlm-brand__subtitle {
      font-size: 18px;
    }
  
    .nlm-searchrow {
      flex-direction: column;
      align-items: stretch;
    }
  
    .nlm-searchrow__select {
      width: 100%;
    }
  
    .nlm-searchrow__form {
      width: 100%;
    }
  }
  
  @media (max-width: 640px) {
    .nlm-wrap {
      width: calc(100% - 24px);
    }
  
    .nlm-brand {
      gap: 14px;
    }
  
    .nlm-brand__logo {
      width: 78px;
      height: 58px;
    }
  
    .nlm-brand__title {
      font-size: 28px;
    }
  
    .nlm-brand__subtitle {
      font-size: 14px;
    }
  
    .nlm-login-btn {
      min-width: 100px;
      height: 46px;
      font-size: 17px;
    }
  
    .nlm-searchrow__input,
    .nlm-searchrow__select,
    .nlm-searchrow__button {
      font-size: 16px;
      height: 46px;
    }
  }
/* =========================
   Admin Sidebar Layout
   ========================= */

   .admin-layout {
    width: calc(100% - 25px);
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }
  
  .admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: fixed;
    top: 142px;
    left: 0;
    height: calc(100vh - 80px);
    background: #79723a;
    overflow-y: scroll;
  }
  
  .admin-sidebar__inner {
    padding: 16px 12px;
    position: sticky;
    top: 16px;
    padding-bottom: 100px;
  }
  
  .admin-sidebar__title {
    color: #bbc02b;
    margin-bottom: 10px;
    padding: 4px 8px 0px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 15px;
  }
  
  .admin-sidebar__item {
    display: block;
    color: white;
    text-decoration: none;
    padding: 3px 12px 0px 20px;
    border-radius: 2px;
    margin-bottom: 3px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .admin-sidebar__item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }
  
  .admin-sidebar__item.active,
  .admin-sidebar__item[aria-current="page"] {
    background: #ffffff;
    color: #173f67;
  }
  
  .admin-content {
    min-width: 0;
    flex: 1;
    width: calc(100% - 250px);
    padding-left: 275px;
    padding-top: 155px;
    padding-bottom: 50px;
  }
  
  /* 一般画面の本文 */
  .page-body.container {
    margin-top: 28px;
  }
  
  /* レスポンシブ */
  @media (max-width: 960px) {
    .admin-layout {
      width: calc(100% - 24px);
      flex-direction: column;
      gap: 16px;
    }
  
    .admin-sidebar {
      width: 100%;
    }
  
    .admin-sidebar__inner {
      position: static;
    }
  }

.page-body {
  padding: 24px 0 56px;
}

.hero,
.card,
.flash {
  background: #ffffff;
  border-color: #cad5e0;
}

.card{
  text-align: left;
  padding: 15px;
  margin-bottom: 5px;
  overflow-y: scroll;
}

.card2{
  padding:0 10px 20px 5px;
  overflow-y: scroll;
}

.hero__eyebrow {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero__lead {
  color: #475569;
  line-height: 1.8;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: scroll;
  margin-bottom: 20px;
}

.table th,
.table td {
  padding: 4px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  text-wrap-mode: nowrap;
  max-width: 300px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.filters,
.actions-row,
.stats-grid,
.form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  align-content: flex-end;
}

.filters {
  margin-bottom: 20px;
}

.stats-grid {
  margin-bottom: 20px;
}

.stat-card {
  min-width: 100px;
  background: #fffef7;
  border-width: 1px;
  border-style: solid;
  text-align: center;
  padding-bottom: 9px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  color: #0c466f;
}
.user_search{
  max-width: 500px;
  margin-left:-10px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  flex: 1;
  min-width: 220px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1;
  justify-content: space-between;
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

input,
textarea,
select {
  padding: 5px 5px;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
  line-height: 1.4;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-block;
  border: none;
  border-radius: 5px;
  padding: 2px 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-family: auto;
  justify-content: center;
}

.btn-primary {
  color: #99b63f;
  display: flex;
  align-items: center;
  text-decoration: underline;
  background: transparent;
}

.btn-secondary {
  color: #328cb4;
  display: flex;
  align-items: center;
  text-decoration: underline;
  line-height: 1.3;
}

.btn-danger {
  color: #bd5116;
  padding: 2px 10px;
  line-height: 24px;
  display: flex;
  align-items: center;
  text-decoration: underline;
}

.flash-notice {
  border-left: 4px solid #16a34a;
  background: #b8f9cf;
  color: #19a249;
  padding: 5px;
}

.flash-alert {
  border-left: 4px solid #bd5116;
  background: #ffe4e4;
  padding: 5px;
  color: #eb5400;
}

.meta {
  color: #64748b;
  font-size: 13px;
  max-width: 300px;
  text-wrap-mode: wrap;
  line-height: 1.3;
}

.card2 .meta{
  font-size:11px;
}

.card2 h3{
  font-size:14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 20px 0;
}

.long-text {
  line-height: 1.8;
}

.grid-board {
  display: grid;
  gap: 3px;
  margin-top: 20px;
}

.grid-cell {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 5px;
  min-height: 80px;
  box-sizing: border-box;
}

.cell-code {
  font-size: 12px;
  color: #64748b;
}

.simple-list {
  margin: 0;
  padding-left: 20px;
}

.code-block {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0f172a;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}
.btn-small {
  padding: 0px 10px;
  font-size: 12px;
}
.break-all {
  word-break: break-all;
}
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.auth-card {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.auth-card--wide {
  width: min(720px, 100%);
}

.auth-card__header {
  margin-bottom: 20px;
}

.auth-eyebrow {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.auth-lead {
  color: #475569;
  line-height: 1.8;
}

.auth-form {
  margin-top: 12px;
}

.auth-submit {
  min-width: 180px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-check input[type="checkbox"] {
  width: auto;
}

.auth-check label {
  margin: 0;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.danger-zone {
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 18px;
}
.attention-card {
  border: 1px solid #fecaca;
  background: #fff7f7;
}

.pending-card {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
}
.inline-button {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.attachment-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.attachment-thumb,
.attachment-pdf,
.attachment-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #f8fafc;
}

.attachment-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.attachment-pdf,
.attachment-file {
  color: #475569;
  font-size: 18px;
}

.attachment-meta {
  padding: 12px;
}

.attachment-name {
  word-break: break-all;
}
.attachment-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  color: #334155;
  font-size: 18px;
}

.attachment-file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #f8fafc;
  color: #475569;
  font-size: 18px;
}
.attachment-badge {
  display: inline-block;
  padding: 1px 10px 0px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
}

.attachment-badge--empty {
  background: #e5e7eb;
  color: #4b5563;
}
.grid-cell--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.grid-cell--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  border-color: #60a5fa;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-card {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #374151;
  white-space: nowrap;
}

.detail-value {
  color: #111827;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.code-block {
  display: inline-block;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.pre-block {
  margin: 0;
  padding: 16px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.pre-block--danger {
  background: #fff5f5;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.card--danger {
  border: 1px solid #fecaca;
  background: #fffafa;
}

.text-link {
  color: #1986a2;
  text-decoration: underline;
  word-break: break-all;
}

.empty-message {
  color: #6b7280;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr));
  gap: 5px;
}
.filter-grid.cell_search {
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 5px;
}
.filter-grid.blockcain{
  grid-template-columns: repeat(7, minmax(80px, 1fr));
}

.filter-field label {
  display: block;
  color: #374151;
  line-height: 13px;
  font-size: 12px;
}

.form-control {
  width: 100%;
  padding: 5px 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  box-sizing: border-box;
}

.mt-16 {
  margin-top: 5px;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex-direction: row;
  align-items: flex-end;
}

.btn-sm {
  font-size: 13px;
  padding: 1px 5px;
  min-width: 46px;
  text-align: center;
  width: fit-content;
}

.text-danger {
  color: #b91c1c;
}

.pagination-wrap {
  margin-top: 20px;
}
.event-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}

.event-badge--cell_line_created {
  color: #166534;
}

.event-badge--cell_line_published {
  color: #3f6212;
}

.event-badge--cell_line_unpublished {
  color: #374151;
}

.event-badge--cell_line_deleted {
  color: #991b1b;
}

.pre-block--light {
  background: #f8fafc;
  color: #111827;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
}

details summary {
  cursor: pointer;
  color: #2563eb;
}
.row-discarded {
  opacity: 0.72;
  background: #fff7f7;
}
.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  padding: 5px 0;
  border-bottom: 1px solid #e5e7eb;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-item__left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.timeline-item__time {
  color: #6b7280;
  font-size: 14px;
}

.timeline-item__body {
  margin-top: 0px;
}

.timeline-meta {
  margin-bottom: 8px;
  color: #374151;
}

.timeline-details summary {
  cursor: pointer;
  color: #2563eb;
}

.timeline-error {
  margin-top: 0px;
  padding: 3px 8px;
  background: #fff5f5;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.event-badge {
  display: inline-block;
  padding: 5px 10px 3px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 17px;
}

.event-badge--cell_line_created {
  color: #166534;
}

.event-badge--cell_line_updated {
  color: #1d4ed8;
}

.event-badge--cell_line_published {
  color: #3f6212;
}

.event-badge--cell_line_unpublished {
  color: #374151;
}


.pre-block--light {
  background: #f8fafc;
  color: #111827;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
}

.code-block {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: -8px;
}
.row-discarded {
  opacity: 0.75;
  background: #fff7f7;
}

.row-sync-failed {
  background: #fffbf1;
}

.row-sync-pending {
  background: #fffbeb;
}

.row-sync-conflict {
  background: #fdf2f8;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px;
}

.summary-card__label {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.summary-card__value {
  font-size: 28px;
  color: #111827;
}
.table--cell-lines th,
.table--cell-lines td {
  vertical-align: top;
}

.table--cell-lines th:nth-child(1),
.table--cell-lines td:nth-child(1) {
  width: 130px;
}

.table--cell-lines th:nth-child(2),
.table--cell-lines td:nth-child(2) {
  min-width: 180px;
}

.table--cell-lines th:nth-child(5),
.table--cell-lines td:nth-child(5) {
  min-width: 220px;
}

.cell-line-code {
  word-break: break-word;
}

.cell-line-name a {
  word-break: break-word;
}

.sync-info {
  display: grid;
  gap: 1px;
}

.sync-info__meta {
  font-size: 13px;
  line-height: 16px;
}

.table-actions--stack {
  display: flex;
  gap: 5px;
  justify-items: start;
  align-items: start;
}

.row-discarded {
  opacity: 0.78;
  background: #fff7f7;
}

.row-sync-failed {
  background: #fffbf1;
}

.row-sync-pending {
  background: #fffbeb;
}

.row-sync-conflict {
  background: #fdf2f8;
}
.home-hero__eyebrow {
  color: #64748b;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.home-hero__title {
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.1;
}

.home-hero__lead {
  margin: 0 0 24px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
  max-width: 980px;
}

.home-stat{
  text-align: center;
  border-width: 1px;
  border-style: solid;
  background: #fffdf2;
  margin: 0;
  color: #1e7783;
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.home-stat__label {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.home-stat__value {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.home-stat__sub {
  color: #4b5563;
  font-size: 14px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin: 8px 0 32px;
}

.home-feature-card h2 {
  margin-top: 0;
  margin-bottom:0;
  font-size: 15px;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 36px 0 16px;
}

.home-section-header h2 {
  margin: 0;
  font-size: 16px;
}

.home-post-list {
  display: grid;
  gap: 18px;
}

.home-post-item {
  padding: 8px 0 18px;
  border-bottom: 1px solid #e5e7eb;
}

.home-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-post-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.home-post-item__meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 6px;
}

.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.home-shortcut-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.timeline-item--rails {
  border-left: 4px solid #2f80ed;
  padding-left: 14px;
  margin-left: 15px;
}

.timeline-item--shizuinet {
  border-left: 4px solid #9b51e0;
  padding-left: 14px;
}

.timeline-source-badge {
  display: inline-block;
  padding: 4px 10px;
  text-decoration: underline;
  font-size: 12px;
  line-height: 1.2;
}

.timeline-source-badge--rails {
  color: #1d4ed8;
}

.timeline-source-badge--shizuinet {
  background: #f3e8ff;
  color: #7c3aed;
}

.timeline-link-row {
  margin-top: 10px;
}
.change-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.change-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.change-row__label {
  color: #334155;
}

.change-row__values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.change-row__before {
  color: #64748b;
  text-decoration: line-through;
}

.change-row__arrow {
  color: #94a3b8;
}

.change-row__after {
  color: #111827;
}
.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
}
.home-hero {
  padding: 28px 32px;
  margin-bottom: 24px;
}

.home-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a7f30;
  margin-bottom: 8px;
}

.home-hero__title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.15;
}

.home-hero__lead {
  margin: 0 0 18px;
  max-width: 880px;
  line-height: 1.8;
  color: #4b5563;
}

.home-feature-card {

}

.home-feature-card p {
  margin-top: 0;
  margin-bottom: 5px;
  color: #4b5563;
  line-height: 20px;
  font-size: 13px;
}

.home-post-item + .home-post-item {
  border-top: 1px solid #e5e7eb;
  margin-top: 18px;
  padding-top: 18px;
}

.home-post-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.home-post-item__meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 6px;
}

.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.home-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  text-decoration: none;
  font-weight: 700;
  color: #334155;
}

.home-shortcut-card:hover {
  background: #f8fafc;
}

@media (max-width: 900px) {
  .home-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero__title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .home-shortcut-grid {
    grid-template-columns: 1fr;
  }
}
.auth-page {
  display: flex;
  justify-content: center;
  padding: 36px 16px 60px;
}

.auth-card {
  width: min(720px, 100%);
  padding: 32px 36px;
}

.auth-card__header {
  margin-bottom: 24px;
}

.auth-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a7f30;
  margin-bottom: 8px;
}

.auth-card__title {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.15;
  color: #1f2937;
}

.auth-card__lead {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

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

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #1f2937;
}

.auth-help {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 14px;
}

.auth-input {
  width: 100%;
  height: 48px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 16px;
  background: #fff;
}

.auth-input:focus {
  outline: none;
  border-color: #9e9645;
  box-shadow: 0 0 0 3px rgba(158, 150, 69, 0.12);
}

.auth-actions {
  margin-top: 28px;
  gap: 12px;
}

.auth-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px;
  }

  .auth-card__title {
    font-size: 30px;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions .btn-primary,
  .auth-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
.cell-line-name {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  text-align: center;
}

.cell-stock-name {
  font-size: 15px;
  color: #334155;
  line-height: 1.4;
  margin-top: 4px;
  text-align: center;
}

.cell-stock-date {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  text-align: center;
}

.cell-empty {
  font-size: 17px;
  color: #e4e4e4;
  margin-top: 18px;
  text-align: center;
}

.grid-cell--filled {
  background: #fcfdff;
}

.box-print-area {
  page-break-inside: avoid;
}

@page {
  size: A4 landscape;
  margin: 8mm;
}

@media print {
  .no-print,
  .nlm-topbar,
  .nlm-brandband,
  .nlm-searchband,
  .admin-sidebar,
  #flash-messages,
  turbo-frame#modal {
    display: none !important;
  }

  html,
  body {
    width: 297mm;
    height: 210mm;
    background: #fff !important;
    zoom: 0.92;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .admin-layout,
  .admin-content {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .section-header {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }

  .section-header h1 {
    font-size: 22px !important;
    margin: 0 0 6px 0 !important;
  }

  .card,
  .box-print-area {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
    background: #fff !important;
  }

  .box-print-grid,
  .grid-board {
    gap: 4px !important;
  }

  .grid-cell {
    min-height: 72px !important;
    padding: 6px 8px !important;
    border: 1px solid #777 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .cell-code {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .cell-line-name {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
  }

  .cell-stock-name {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
  }

  .cell-stock-date {
    font-size: 10px !important;
    line-height: 1.2 !important;
    margin-top: 3px !important;
  }

  .cell-empty {
    font-size: 13px !important;
    margin-top: 10px !important;
  }

  .table,
  h2.no-print,
  .table.no-print {
    display: none !important;
  }
}
.post-reaction-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.post-reaction-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-reaction-bar__right {
  color: #64748b;
  font-size: 13px;
}

.post-good-button {
  min-width: 96px;
}

.post-good-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 2px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  line-height: 1.4;
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-item {
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  background: #fafafa;
  padding: 14px 16px;
}

.comment-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-item__author {
  color: #3570ac;
  font-size: 14px;
  display: flex;
}

.comment-item__meta {
  color: #6b7280;
  font-size: 12px;
}

.comment-item__body {
  color: #1f2937;
  line-height: 1.3;
  margin-bottom: 30px;
}

.comment-item__body p {
  margin: 0 0 8px;
}

.comment-item__body p:last-child {
  margin-bottom: 0;
}

.comment-item__actions {
  margin-top: -2px;
  margin-left: 9px;
}

.comment-form__textarea {
  min-height: 120px;
  resize: vertical;
}
.btn-comment{
  padding: 0px 7px;
  font-size: 10px;
  background: no-repeat;
  color: #da0000;
  border-width: 1px;
  border-style: solid;
  line-height: 16px;
}

@media (max-width: 640px) {
  .post-reaction-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-item__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.cell-line-page {
  display: grid;
  gap: 18px;
}

.cell-line-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cell-line-summary__code {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}

.cell-line-summary__name {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
}

.cell-line-summary__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cell-line-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #111827;
}

.cell-line-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .cell-line-related-grid {
    grid-template-columns: 1fr;
  }
}
.user-show-page {
  display: grid;
  gap: 18px;
}

.user-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.user-summary__name {
  font-size: 20px;
  line-height: 1.2;
  color: #316da9;
  font-weight: bold;
}

.user-summary__email {
  color: #6b7280;
  font-size: 13px;
}

.user-summary__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.user-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

@media (max-width: 960px) {
  .user-related-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  #shizuinet-records-print .table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 11px !important;
  }

  #shizuinet-records-print .table thead {
    display: table-header-group !important;
  }

  #shizuinet-records-print .table tbody {
    display: table-row-group !important;
  }

  #shizuinet-records-print .table tr {
    display: table-row !important;
    page-break-inside: avoid;
  }

  #shizuinet-records-print .table th,
  #shizuinet-records-print .table td {
    display: table-cell !important;
    border: 1px solid #d1d5db !important;
    padding: 6px 8px !important;
    white-space: normal !important;
    word-break: break-word !important;
    vertical-align: top !important;
    color: #111827 !important;
    background: #fff !important;
  }

  #shizuinet-records-print .code-block {
    display: inline-block !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    word-break: break-all !important;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 6mm 4mm 6mm 6mm; /* 上 右 下 左 */
  }

  html,
  body {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    zoom: 1 !important;
  }

  body * {
    box-sizing: border-box !important;
  }

  .no-print,
  .actions-row,
  .pagination-wrap {
    display: none !important;
  }

  .admin-layout,
  .admin-content,
  #shizuinet-records-print,
  .shizuinet-print-area,
  .card,
  .table-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .shizuinet-print-area {
    border: none !important;
    box-shadow: none !important;
  }

  .table-wrap {
    overflow: visible !important;
  }

  table.table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  table.table th,
  table.table td {
    padding: 4px 5px !important;
    font-size: 10px !important;
    vertical-align: top !important;
    word-break: break-all !important;
  }

  .code-block {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: break-all !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .break-all {
    word-break: break-all !important;
  }
}
.table-wrap {
  overflow-x: auto;
}

.code-block {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  background: #f5f6f8;
  border-radius: 6px;
  padding: 6px 8px;
  width: max-content;
}

.shizuinet-print-area th, .shizuinet-print-area td{
  max-width:auto;
}
.shizuinet-show-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.shizuinet-show-layout {
  display: grid;
  gap: 20px;
}

.shizuinet-summary-card,
.shizuinet-match-card,
.shizuinet-raw-card {
  padding: 20px 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.card-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.card-description {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.status-badge-wrap {
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.info-item {
  min-width: 0;
}

.info-item--full {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-value {
  font-size: 16px;
  line-height: 1.7;
  color: #111827;
  word-break: break-word;
}

.code-like {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2px 12px;
  word-break: break-all;
}

.pre-block--json {
  margin: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0b1730;
  color: #e5eefc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-badge--neutral {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 900px) {
  .shizuinet-show-header {
    flex-direction: column;
    align-items: stretch;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item--full {
    grid-column: auto;
  }

  .shizuinet-summary-card,
  .shizuinet-match-card,
  .shizuinet-raw-card {
    padding: 16px;
  }
}
.page-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-activate-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-card {
  padding: 20px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.field-help {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.info-item--full {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.info-value {
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  word-break: break-word;
}

.code-like,
.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-like {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
}

.code-block {
  word-break: break-all;
}

.status-badge--neutral {
  background: #f3f4f6;
  color: #4b5563;
}

@media (max-width: 900px) {
  .form-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .form-field--full,
  .info-item--full {
    grid-column: auto;
  }

  .inline-activate-form {
    flex-direction: column;
    align-items: stretch;
  }
}
.btn-danger {
  color: #dc2626;
  border: none;
  background: none;
}

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

.btn-disabled {
  cursor: not-allowed;
  display: inline-block;
  text-align: center;
  color: #b1aaaa;
}
.stock-show-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 5px;
}

.page-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7c8a4a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.page-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.stock-show-layout {
  display: grid;
  gap: 20px;
}

.stock-hero-card {
  padding: 10px;
  background: linear-gradient(135deg, #f7f8ef 0%, #ffffff 100%);
  border: 1px solid #e8ead7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.stock-hero-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.stock-hero-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.stock-hero-value {
  font-size: 25px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}

.stock-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat {
  background: #fff;
  border: 1px solid #ecefe0;
  padding: 6px 12px;
}

.hero-stat__label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 6px;
}

.hero-stat__value {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.6;
  word-break: break-word;
}

.stock-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.detail-card {
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.detail-card--full {
  grid-column: 1 / -1;
}

.card-header {
  margin-bottom: 5px;
}

.card-header h2 {
  margin: 0;
  font-size: 17px;
  color: #306da9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

.info-item {
  min-width: 0;
}

.info-item--full {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0px;
}

.info-value {
  font-size: 14px;
  color: #111827;
  line-height: 1.7;
  word-break: break-word;
}

.code-like {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  background: #eef6ff;
  color: #1d4ed8;
  border: 1px solid #cfe2ff;
  border-radius: 5px;
  padding: 3px 14px;
  font-weight: 700;
  font-size: 14px;
}

.status-badge--info {
  background: #dbeafe;
  color: #1d4ed8;
  padding-right: 5px;
}

@media (max-width: 1000px) {
  .stock-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card--full {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .stock-show-header {
    flex-direction: column;
    align-items: stretch;
  }

  .stock-hero-main {
    flex-direction: column;
  }

  .stock-hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item--full {
    grid-column: auto;
  }

  .stock-hero-card,
  .detail-card {
    padding: 18px;
  }

  .stock-hero-value {
    font-size: 28px;
  }
}
