:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color: #182b2b;
  background: #f4f7f6;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 80px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #dce5e1;
}
header a {
  color: #0a746b;
  font-weight: 800;
  text-decoration: none;
  font-size: 23px;
}
header span {
  font-size: 13px;
  color: #697773;
  margin-left: 10px;
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.3px;
  margin: 12px 0 24px;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #0b7a70;
  font-weight: 700;
}
p,
.hint {
  color: #657772;
  line-height: 1.7;
}
.hint {
  font-size: 13px;
}
#login {
  max-width: 420px;
  margin: 7vh auto;
}
label {
  display: grid;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd8d3;
  border-radius: 10px;
  background: white;
  color: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0b7a70;
  outline-offset: 2px;
}
button {
  font: inherit;
  border: 1px solid #cbd8d3;
  border-radius: 10px;
  background: white;
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary,
nav .active {
  background: #087b70;
  color: white;
  border-color: #087b70;
}
#login button {
  width: 100%;
  margin-top: 10px;
}
.heading,
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.heading span {
  color: #667772;
}
nav {
  display: flex;
  gap: 8px;
  margin: 12px 0 32px;
}
#search-form {
  display: flex;
  gap: 8px;
}
.card,
#customer-list article {
  border: 1px solid #dce5e1;
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.customer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.customer-head strong {
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: #edf4ef;
  padding: 5px 9px;
  border-radius: 8px;
  color: #376c52;
}
.store {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #e6ece9;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.meta {
  font-size: 13px;
  color: #667772;
  line-height: 1.8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stat {
  padding: 24px;
  border: 1px solid #dce5e1;
  background: white;
  border-radius: 16px;
}
.stat strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.notice {
  background: #e3f2ec;
  padding: 16px 20px;
  border-radius: 12px;
  line-height: 1.6;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #dce5e1;
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid #e6ece9;
  vertical-align: top;
  min-width: 120px;
}
th {
  font-size: 12px;
  color: #657772;
}
td small {
  display: block;
  color: #657772;
  margin-top: 6px;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
#message {
  background: #183a34;
  color: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  white-space: pre-line;
}
#message:empty {
  display: none;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 28px;
  max-width: 460px;
  width: calc(100% - 40px);
}
dialog::backdrop {
  background: #10251c88;
}
#confirm-content {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#requests p {
  font-size: 13px;
  border-top: 1px solid #e6ece9;
  padding-top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    padding: 28px 18px;
  }
  header {
    height: 68px;
    padding: 0 18px;
  }
  .heading,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 18px;
  }
  .customer-head {
    align-items: flex-start;
    flex-direction: column;
  }
  #search-form {
    width: 100%;
  }
  h1 {
    font-size: 29px;
  }
  .card,
  #customer-list article {
    padding: 20px;
  }
}

#mail-bootstrap {
  max-width: 720px;
  margin: 24px auto;
}
#mail-form {
  max-width: 640px;
}
#mail-form button {
  margin: 4px 8px 8px 0;
}
nav {
  flex-wrap: wrap;
}

#admin-initial {
  max-width: 440px;
  margin: 7vh auto;
}
#initial-submit {
  width: 100%;
  margin-top: 12px;
}

.row-actions { white-space: nowrap; }
.row-actions button { padding: 7px 10px; margin: 0 6px 4px 0; font-size: 13px; }
.danger-link { color: #b42318; border-color: #f0c7c4; }
.danger { color: white; background: #b42318; border-color: #b42318; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.empty-state { padding: 48px; text-align: center; color: #657772; }
#customer-list td, #store-list td { vertical-align: middle; }
#customer-list td:first-child, #store-list td:nth-child(2) { overflow-wrap: anywhere; min-width: 220px; }
#delete-description { white-space: pre-line; overflow-wrap: anywhere; }
#delete-error { color: #b42318; }
#store-search-form { display:flex; gap:8px; }
#store-search { min-width: 270px; }
@media(max-width:700px) { #store-search-form { width:100%; } #store-search { min-width:0; } .pager { gap:12px; } }

.selection-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 12px; color:#657772; font-size:14px; }
.selection-cell { width:48px; min-width:48px !important; text-align:center; padding:16px 12px; }
.selection-cell input { width:18px; height:18px; padding:0; margin:0; vertical-align:middle; accent-color:#087b70; cursor:pointer; }
#customer-list td:nth-child(2) { overflow-wrap:anywhere; min-width:220px; }
#customer-list td:first-child { min-width:48px; }
#delete-description { max-height:45vh; overflow:auto; }
