/* ===== ZIPビルダー（フロント） 最小スタイル（貼り付け用） ===== */

/* コンテナ／パンくず */
.main-container{
  max-width:980px;
  margin:20px auto;
  padding:0 12px;
  font-family:system-ui, Segoe UI, Roboto, Helvetica, Arial;
  font-size:clamp(14px, 1.6vw, 16px);
}
.main-breadcrumbs{ color:#666; margin:6px 0 12px; }
.main-breadcrumbs .sep{ margin:0 6px; color:#999; }
.main-breadcrumbs .current{ font-weight:600; }

/* カード */
.main-card{
  background:#c7c7c7;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px 16px 12px;
  margin:12px 0;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.main-card table{ width:100% !important; }
.main-sec-title{ font-weight:600; margin-bottom:10px; color:#111; }

/* 入力 */
.main-input{
  width:100%;
  padding:8px 10px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  color:#111;
  box-sizing:border-box;
  font-size:inherit;
  line-height:1.4;
  margin:0; /* 余分な下余白を殺す */
}
.main-input--sm{ width:auto; padding:6px 8px; }

/* ボタン */
.main-btn{
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:8px 12px;
  background:#f9fafb;
  font-size:inherit;
  line-height:1.2;
  white-space:nowrap;
  display:inline-block; /* テーマの block 指定対策 */
  color:#111;
  cursor:pointer;
  margin:0; /* 余分な下余白を殺す */
}
.main-btn.-primary{
  background:#111827;
  color:#fff;
  border-color:#111827;
  text-align:center;
}
.main-btn.-ghost{
  background:#ffffff;
  border-color:#d1d5db;
  color:#111;
}
.main-btn[disabled]{ cursor:not-allowed; opacity:.6; }

/* === 新規作成フォーム（ASBの挙動をmain-*へ移植） === */
.main-form-table{
  width:100% !important;
  table-layout:fixed;
  border-collapse:collapse;
  border:none;
  font-size:inherit;
}
.main-form-table th,
.main-form-table td{
  padding:8px 0;
  vertical-align:middle;  /* 入力とボタンの縦位置を揃える */
  background:transparent;
  color:inherit;
  border:none;
  box-sizing:border-box;
}
/* 行の下線 */
.main-form-table tr > th,
.main-form-table tr > td{
  border-bottom:1px solid #dcdcdc;
}
/* 左右比率（65/35） */
.main-form-table .td-input{  width:65%; }
.main-form-table .td-actions{
  width:35%;
  text-align:center;
  white-space:nowrap;
}
/* 入力/ボタン周りの“謎スペース”対策 */
.main-form-table .td-input .main-input{ margin-bottom:0; }
.main-form-table td:last-child .main-input{ margin-bottom:0; }
/* 最終行の下線は消してカード下の余白を詰める */
.main-form-table tr:last-child > th,
.main-form-table tr:last-child > td{ border-bottom:none; }

/* 一覧ツールバー／ページング */
.main-list-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.main-pagination{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  margin-top:10px;
}
.main-page-info{ color:#333; }

/* 実テーブル（一覧） */
.main-table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
  font-size:inherit;
}
.main-table th,
.main-table td{
  border-bottom:1px solid #e5e5e5;
  padding:10px;
  vertical-align:middle;
  background:transparent;
  color:#111;
}

/* 幅ユーティリティ（列の固定幅） */
.main-w64  { width:64px;  text-align:center; }
.main-w120 { width:120px; text-align:center; }
.main-w200 { width:200px; }

/* タブ（単一パネル） */
.main-tab-panel{ display:none; }
.main-tab-panel.is-active{ display:block; }
.main-tab-btn{ border-radius:10px; }
