* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Arial, sans-serif; }
body { background: #f2f0ea; color: #1c2733; min-height: 100vh; }
header { background: #10263f; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
header .brand { display: flex; flex-direction: column; }
header .brand b { color: #c9a227; font-size: 20px; }
header .brand small { color: #c9d4e0; font-size: 12px; }
header .who { font-size: 13px; color: #c9d4e0; display: flex; align-items: center; gap: 10px; }
button { cursor: pointer; border: none; border-radius: 8px; padding: 10px 16px; font-size: 15px; }
.btn-gold { background: #c9a227; color: #10263f; font-weight: bold; }
.btn-navy { background: #10263f; color: #fff; }
.btn-ghost { background: #e3e7ec; color: #10263f; }
.btn-danger { background: #b23b3b; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
nav.tabs { display: flex; gap: 6px; background: #10263f; padding: 0 10px 10px; flex-wrap: wrap; }
nav.tabs button { background: transparent; color: #c9d4e0; border-radius: 8px; padding: 8px 14px; font-size: 15px; }
nav.tabs button.active { background: #c9a227; color: #10263f; font-weight: bold; }
main { max-width: 900px; margin: 0 auto; padding: 16px 12px 60px; }
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(16,38,63,.08); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #5a6b7d; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px; border: 1px solid #ccd5de; border-radius: 8px; font-size: 15px; background: #fbfcfd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #c9a227; border-color: #c9a227; }
.login-wrap { max-width: 380px; margin: 8vh auto; }
.login-wrap h1 { color: #10263f; font-size: 22px; margin-bottom: 4px; }
.login-wrap .slogan { color: #c9a227; font-size: 14px; margin-bottom: 20px; }
.msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.msg.err { background: #fbe5e5; color: #8c2b2b; }
.msg.ok { background: #e3f4e5; color: #1e6b2e; }
.sales-group h3 { background: #10263f; color: #c9a227; padding: 8px 12px; border-radius: 8px; font-size: 15px; margin: 14px 0 8px; display: flex; justify-content: space-between; }
.cust-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px; border-bottom: 1px solid #eceff2; flex-wrap: wrap; }
.cust-row:last-child { border-bottom: none; }
.cust-row .info { flex: 1; min-width: 180px; }
.cust-row .info b { font-size: 15px; }
.cust-row .info .sub { font-size: 12px; color: #6b7a89; margin-top: 2px; }
.cust-row .acts { display: flex; gap: 6px; align-items: center; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; background: #e9eef4; color: #10263f; }
.pill.closed { background: #e3f4e5; color: #1e6b2e; }
.pill.warn { background: #fdf0d5; color: #8a6d1a; }
a.wa, a.tel { text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; background: #e7f6ec; color: #177a3d; }
a.tel { background: #e8eefc; color: #1d4e9c; }
table.rep { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rep th, table.rep td { border: 1px solid #dde4ea; padding: 8px; text-align: center; }
table.rep th { background: #10263f; color: #fff; font-weight: normal; }
table.rep tr:nth-child(even) td { background: #f6f8fa; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { padding: 8px; border: 1px solid #ccd5de; border-radius: 8px; font-size: 14px; flex: 1; min-width: 120px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 12px 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(16,38,63,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 18px; max-width: 480px; width: 100%; max-height: 85vh; overflow-y: auto; }
.modal h3 { color: #10263f; margin-bottom: 12px; font-size: 17px; }
.hist-item { border-right: 3px solid #c9a227; padding: 6px 10px; margin-bottom: 8px; background: #faf8f2; border-radius: 6px; font-size: 13px; }
.row-flex { display: flex; gap: 8px; flex-wrap: wrap; }
.row-flex > * { flex: 1; min-width: 140px; }
.list-edit { display: flex; gap: 6px; margin-bottom: 8px; }
.list-edit input { flex: 1; padding: 8px; border: 1px solid #ccd5de; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #eef2f6; border-radius: 20px; padding: 4px 10px; margin: 3px; font-size: 13px; }
.chip button { padding: 0 6px; background: none; color: #b23b3b; font-size: 15px; }
.muted { color: #6b7a89; font-size: 13px; }
.section-title { color: #10263f; font-size: 16px; margin: 18px 0 8px; border-right: 4px solid #c9a227; padding-right: 8px; }
.count-badge { background: #c9a227; color: #10263f; border-radius: 12px; padding: 1px 9px; font-size: 13px; font-weight: bold; }
