* { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; color: #333; background: #fff; }
a { color: #2c6fbb; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 12px; }

/* top bar */
.topbar { border-bottom: 3px solid #2c6fbb; background: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand { font-size: 20px; font-weight: bold; color: #2c6fbb; text-decoration: none; letter-spacing: 1px; }
.brand img { max-height: 44px; display: block; }
.backhome { color: #2c6fbb; }

.main { padding: 20px 12px 40px; }

/* panels */
.panel { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 18px 20px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 12px; font-size: 16px; color: #2c6fbb; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.panel h3 { font-size: 14px; color: #2c6fbb; margin: 16px 0 8px; }
.tagline { font-size: 12px; color: #888; font-weight: normal; }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eee; align-items: flex-start; }
.steps li:last-child { border-bottom: none; }
.steps .num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #2c6fbb; color: #fff; text-align: center; line-height: 26px; font-weight: bold; }

/* forms */
.formtbl { width: 100%; border-collapse: collapse; }
.formtbl th { text-align: left; width: 160px; padding: 6px 8px; background: #f5f8fc; border: 1px solid #e3e8ee; vertical-align: top; }
.formtbl td { padding: 6px 8px; border: 1px solid #e3e8ee; }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 7px 8px; border: 1px solid #ccc; border-radius: 4px; font: inherit;
}
input:focus, textarea:focus, select:focus { border-color: #2c6fbb; outline: none; }
.hpfield { display: none; }

/* tables */
.gridtable { width: 100%; border-collapse: collapse; margin: 8px 0; }
.gridtable th { background: #2c6fbb; color: #fff; padding: 7px 10px; border: 1px solid #2c6fbb; text-align: left; }
.gridtable td { padding: 6px 10px; border: 1px solid #ddd; vertical-align: top; }

/* buttons */
.btn { display: inline-block; background: #2c6fbb; color: #fff; border: none; border-radius: 4px; padding: 9px 18px; font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { background: #1f5a9b; color: #fff; }
.btn.primary { background: #1f5a9b; }
.btn.big { font-size: 15px; padding: 11px 28px; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.addbtn { background: #f0f4f9; color: #2c6fbb; }
.btn.addbtn:hover { background: #e1ebf7; }
.delbtn { background: #fdeeee; color: #a33; border: none; border-radius: 4px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.delbtn:hover { background: #f9d9d9; }

/* product rows */
.product-row { border: 1px solid #e0e6ec; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; background: #fafbfd; }
.prow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pnum { font-weight: bold; color: #2c6fbb; }
.pgrid label { display: block; font-size: 12px; color: #555; margin: 8px 0 3px; }

/* code line */
.codeline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.codeline input { max-width: 160px; }

.hint { color: #777; font-size: 12px; }

/* messages */
.alert { background: #fdeeee; border: 1px solid #f2c7c7; color: #933; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }
.okmsg { background: #eaf6ea; border: 1px solid #bfe3bf; color: #2a7a2a; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }

.successbox { text-align: center; padding: 40px 20px; }
.successbox .big { font-size: 20px; color: #2a7a2a; font-weight: bold; }
.successbox .reqid { font-size: 15px; }

.confirmline { margin-top: 18px; display: flex; gap: 12px; }
.submitline { text-align: center; margin-bottom: 30px; }

/* footer */
.footer { background: #f4f6f8; border-top: 1px solid #e4e8ec; padding: 16px 0; color: #888; font-size: 12px; text-align: center; }
.footer a { color: #888; }

/* admin */
.admtop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.filterbar label { font-size: 11px; display: block; color: #666; margin-bottom: 2px; }
.filterbar input, .filterbar select { width: auto; min-width: 120px; }
.pager { margin: 14px 0; }
.pager a { padding: 4px 10px; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; color: #2c6fbb; margin-right: 4px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; color: #fff; vertical-align: middle; }
.st0 { background: #e6a23c; }
.st1 { background: #67c23a; }
.st2 { background: #909399; }
.st3 { background: #f56c6c; }
.st4 { background: #f56c6c; }
