/* ---------------------------------全体--------------------------------- */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0078d4;
  color: white;
  padding: 0.8rem 1.2rem;
}

/* ---------------------------------web site logo--------------------------------- */
.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

/* ---------------------------------login user email--------------------------------- */
.user-info {
  font-size: 0.9rem;
}

/* ---------------------------------パンくずリスト--------------------------------- */
.breadcrumb {
  background-color: #f1f1f1;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
}

.breadcrumb a {
  color: #0078d4;
  text-decoration: none;
  margin-right: 0.5rem;
}

.breadcrumb a::after {
  content: ">";
  margin-left: 0.5rem;
}

.breadcrumb span {
  color: #555;
}

/* ---------------------------------container--------------------------------- */
.container {
  display: flex;
  height: calc(100vh - 94px);
}

/* ---------------------------------sidebar--------------------------------- */
.sidebar {
  width: 220px;
  background-color: #f3f3f3;
  padding-top: 1rem;
}

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

.sidebar li {
  padding: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar li:hover {
  background-color: #e5e5e5;
}

.sidebar i {
  margin-right: 0.5rem;
}

.sidebar ul.sub-menu {
  list-style: none;
  padding-left: 2rem;
  font-size: 0.85rem;
  color: #333;
  margin-top: -0.5rem;
}

#webhook-link {
  display: none;
}

/* ---------------------------------content--------------------------------- */
.content {
  flex: 1;
  padding: 1.5rem;
  background-color: #ffffff;
  overflow-y: auto;
}

/* ---------------------------------横長カード--------------------------------- */
.landscape-section {
  margin-top: 2rem;
}

.landscape-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
}

.landscape-card:hover {
  border-color: #0078d4;
}

.landscape-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

/* ---------------------------------filter--------------------------------- */
.filter-pane {
  width: 300px;
  padding: 1rem;
  background-color: #ffffff;
  border-right: 1px solid #ccc;
}
.filter-pane:empty {
  display: none;
}

.filter-pane h3 {
  margin-top: 0;
}

.filter-pane select,
.filter-pane input[type="date"] {
  /* display: block; */
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
}
.dropdown-container,
.input-container {
  width: 100%;
}
.select-all {
  margin-top: 30px;
  margin-bottom: 30px;
}
.button-reset-submit-container {
  display: flex;
  justify-content: space-between;
}
.submit-button-container {
  text-align: right;
}

/* ---------------------------------table--------------------------------- */
.main-content {
  flex: 1;
  background-color: #ffffff;
  color: #000000;
  padding: 2rem;
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
}
thead {
  background-color: #e0e0e0;
}
thead tr {
  position: sticky;
  top: -10px;
  z-index: 1;
  background-color: #e0e0e0;
}
th,
td {
  border: 1px solid black;
  text-align: center;
  padding: 0.3em;
  word-break: break-word;
}
.checked {
  background-color: #0078d4;
  color: white;
}
.checked td {
  border: 1px solid white;
}
.list-container {
  width: 100%;
  padding: 10px;
  max-height: 70vh;
  overflow-y: auto;
  text-align: left;
}
input[type="file"] {
  width: 100%;
}
.table-tittle {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.list-number {
  text-align: right;
}

/* ---------------------------------dialog--------------------------------- */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
#dialog {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 70%;
  max-height: 90%;
}
.dialog-top-contents {
  display: flex;
  justify-content: space-between;
}
.dialog-top-contents ol {
  text-align: left;
}
#dialog-text {
  white-space: pre-line;
  word-wrap: break-word;
  text-align: left;
  margin: 10px;
  max-height: 25%;
  overflow-y: auto;
}
#dialog-shizai {
  text-align: left;
  overflow-y: auto;
  max-height: 60vh;
}
#dialog-shizai table {
  border-collapse: collapse;
}
#dialog-shizai td {
  padding-left: 2.5px;
  padding-right: 2.5px;
  border: 1px solid black;
}
#dialog-shizai thead tr {
  top: -5px;
}
#confirm-text {
  margin-bottom: 30px;
}

/* ---------------------------------送信中画面--------------------------------- */
#loading {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  width: 100%;
}
#loading div {
  margin: 2.5px;
}
.loader {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 30px;
  clip-path: inset(0 3ch 0 0);
  animation: l4 1s steps(4) infinite;
}
.loader:before {
  content: "送信中...";
}

@keyframes l4 {
  to {
    clip-path: inset(0 -1ch 0 0);
  }
}

/* ---------------------------------結果画面--------------------------------- */
.result-back-button-container {
  margin-top: 30px;
}
#tr-top {
  top: -25px;
}

/* ---------------------------------エラー画面--------------------------------- */
.error-container {
  max-width: 720px;
  margin: 6rem auto;
  padding: 0 1rem;
  background: #f9fafb;
}
.error-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.error-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}
.error-code-h1 {
  margin: 12px 0 4px;
  font-size: 1.5rem;
}
.error-code {
  color: #ef4444;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.error-msg {
  margin: 8px 0 0;
  color: #111827;
  line-height: 1.6;
}
.error-meta {
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.9rem;
}
.error-back-home-button-container {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.error-back-home-btn {
  text-decoration: none;
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #111;
  background: #fff;
}
.error-back-home-btn:hover {
  background: #f3f4f6;
}

/* ---------------------------------button--------------------------------- */

button {
  font-size: 1rem;
  padding: 10px 20px;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:disabled {
  background-color: #c0c0c0;
  color: #666;
  cursor: not-allowed;
}

.submit-btn,
.read-start-btn,
.create-btn {
  background-color: #0078d4;
}

.reset-btn,
.read-end-btn,
.delete-btn {
  background-color: #e53935;
}

.all-select-btn,
.all-select-webhook-btn,
.cancel-btn,
.back-btn {
  background-color: #cccccc;
  color: black;
}

.all-select-btn {
  display: block;
  width: 100%;
}

.read-finish-btn {
  background-color: #444444;
}

.rfid-update-btn,
.fin-sekou-btn {
  background-color: #43a048;
}

.no-sekou-btn {
  background-color: #fb8c00;
}

/* hover */

.submit-btn:hover,
.read-start-btn:hover,
.category-prekako.category-active:hover,
.create-btn:hover {
  background-color: #0056b3;
}

.reset-btn:hover,
.delete-btn:hover {
  background-color: #c62828;
}

.all-select-btn:hover,
.all-select-webhook-btn:hover,
.cancel-btn:hover,
.back-btn:hover {
  background-color: #aaaaaa;
  color: black;
}

.category-prekako:hover {
  background-color: #d0d0d0;
}
.read-finish-btn:hover {
  background-color: #5c5c5c;
}

.rfid-update-btn:hover,
.show-table-btn,
.fin-sekou-btn:hover {
  background-color: #388e3c;
}

.no-sekou-btn:hover {
  background-color: #f57c00;
}

/* ---------------------------------sort--------------------------------- */

.sort-icon {
  cursor: pointer;
}
