body{
  font-family:-apple-system,Segoe UI,Roboto,Arial;
  margin:0;
  background:#f5f5f5;
  color:#111;
}

/* Header */
.header{
  background:#111;
  color:#fff;
  padding:14px 24px;
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{ height:32px; border-radius:6px; }
.header-title{ display:flex; flex-direction:column; line-height:1.1; }
.header-subtitle{ font-size:13px; opacity:0.7; font-weight:500; }
.header-links{ margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }

/* Subnav */
.subnav{ background:#fff; border-bottom:1px solid #e5e5e5; }
.subnav-inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 20px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Container */
.container{
  max-width:1100px;
  margin:25px auto;
  padding:0 20px;
}

/* Cards */
.card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
  padding:20px;
  margin-bottom:20px;
}

/* Buttons */
button,a.btn,span.btn{
  background:#111;
  color:#fff;
  border:0;
  border-radius:8px;
  padding:8px 14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  white-space:nowrap;
}
.btn2{
  background:#555;
  color:#fff;
  border:0;
  border-radius:8px;
  padding:8px 14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  white-space:nowrap;
}
.danger{ background:#c00 !important; }

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid #ddd;
  background:#fafafa;
  color:#333;
}
.pill.ok{ background:#e8ffe8; border-color:#2b9b46; color:#2b9b46; }
.pill.warn{ background:#fff7e6; border-color:#e0c84f; color:#7a5a00; }
.pill.bad{ background:#eee; border-color:#888; color:#444; }

.muted{ color:#666; font-size:12px; }
.right{ text-align:right; }
.mt{ margin-top:10px; }
.chk{ width:auto; }
.inline{ display:flex; gap:10px; align-items:center; }
.flex{ display:flex; gap:10px; align-items:center; }
.flex-between{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; }
.row{ display:flex; gap:12px; flex-wrap:wrap; }
.col{ flex:1; min-width:220px; }
.col.smallcol{ flex:0.35; min-width:120px; }

.flash{
  background:#fff3cd;
  border:1px solid #ffeeba;
  padding:10px;
  border-radius:10px;
  margin-bottom:12px;
}

/* Tables */
table{ width:100%; border-collapse:collapse; font-size:14px; }
th,td{ padding:8px; border-bottom:1px solid #eee; text-align:left; vertical-align:top; }
th{ background:#fafafa; font-weight:600; }

/* Inputs */
input,select,textarea{
  padding:8px;
  border:1px solid #ccc;
  border-radius:8px;
  font-size:14px;
  box-sizing:border-box;
  width:100%;
}
textarea{ min-height:80px; }

.addressbox{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:8px;
  padding:10px;
}

.btnbar{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.btnwide{ width:150px; }
