:root { --bsp-brand: #628A1A; --bsp-brand-dark: #4d6d14; --bsp-bg: #f4f6f1; --bsp-card: #fff; --bsp-line: #dfe3d8; --bsp-text: #1f2419; --bsp-muted: #6b7263; --bsp-err: #b3261e; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.bsp-body { background: var(--bsp-bg); color: var(--bsp-text); font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--bsp-brand-dark); }
h1, h2, h3 { font-family: "Bebas Neue", "Segoe UI", Arial, sans-serif; letter-spacing: .5px; margin: 0 0 10px; font-weight: 600; }
h1 { font-size: 28px; } h2 { font-size: 20px; color: var(--bsp-brand-dark); } h3 { font-size: 16px; margin-top: 16px; }
.bsp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 18px; }
.bsp-top { background: #fff; border-bottom: 3px solid var(--bsp-brand); }
.bsp-top-inner { display: flex; align-items: center; gap: 22px; min-height: 60px; flex-wrap: wrap; }
.bsp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bsp-text); font-weight: 700; }
.bsp-brand img { height: 36px; }
.bsp-brand-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--bsp-muted); }
.bsp-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.bsp-nav a { padding: 8px 11px; text-decoration: none; color: var(--bsp-text); border-radius: 6px; font-weight: 500; }
.bsp-nav a.on, .bsp-nav a:hover { background: var(--bsp-brand); color: #fff; }
.bsp-badge { background: var(--bsp-err); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.bsp-user { margin-left: auto; font-size: 13px; color: var(--bsp-muted); }
.bsp-user a { margin-left: 8px; }
.bsp-role { background: #eef2e6; border-radius: 4px; padding: 1px 6px; font-size: 11px; text-transform: uppercase; }
.bsp-main { padding: 22px 18px 40px; }
.bsp-foot { color: var(--bsp-muted); font-size: 12px; padding: 12px 0 30px; }
.bsp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bsp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bsp-card { background: var(--bsp-card); border: 1px solid var(--bsp-line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.bsp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bsp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.bsp-span2 { grid-column: span 2; } .bsp-span3 { grid-column: span 3; }
@media (max-width: 900px) { .bsp-grid-2, .bsp-grid-3 { grid-template-columns: 1fr; } .bsp-span2, .bsp-span3 { grid-column: span 1; } }
.bsp-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--bsp-muted); font-weight: 600; }
.bsp-form label.bsp-inline, label.bsp-inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; color: var(--bsp-text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #c5cbbb; border-radius: 6px; background: #fff; color: var(--bsp-text); width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(98,138,26,.35); border-color: var(--bsp-brand); }
.bsp-row { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bsp-btn { display: inline-block; padding: 7px 13px; border: 1px solid var(--bsp-brand); color: var(--bsp-brand-dark); background: #fff; border-radius: 6px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; }
.bsp-btn:hover { background: #eef2e6; }
.bsp-btn-primary { background: var(--bsp-brand); color: #fff; }
.bsp-btn-primary:hover { background: var(--bsp-brand-dark); }
.bsp-btn-ghost { border-color: #c5cbbb; color: var(--bsp-muted); }
.bsp-btn-sm { padding: 4px 9px; font-size: 12px; }
.bsp-link { background: none; border: 0; padding: 0; color: var(--bsp-brand-dark); text-decoration: underline; cursor: pointer; font: inherit; }
.bsp-inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bsp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bsp-table th { text-align: left; background: var(--bsp-brand); color: #fff; padding: 7px 8px; font-weight: 600; font-size: 12px; }
.bsp-table td { padding: 6px 8px; border-bottom: 1px solid var(--bsp-line); vertical-align: top; }
.bsp-table tbody tr:nth-child(even) td { background: #f8faf5; }
.bsp-table .r, .r { text-align: right; }
.bsp-nowrap { white-space: nowrap; }
.bsp-sortable th { cursor: pointer; }
.bsp-overdue td { background: #fdf1f0 !important; }
.bsp-overdue-cell { color: var(--bsp-err); font-weight: 700; }
.bsp-count { font-size: 13px; color: var(--bsp-muted); font-family: inherit; letter-spacing: 0; }
.bsp-recno { font-size: 14px; color: var(--bsp-muted); font-family: monospace; letter-spacing: 0; }
.bsp-muted { color: var(--bsp-muted); }
.bsp-filter { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.bsp-filter input, .bsp-filter select { width: auto; }
.bsp-filter label { font-size: 12px; color: var(--bsp-muted); display: flex; flex-direction: column; gap: 3px; }
.bsp-filter label.bsp-inline { flex-direction: row; align-items: center; padding-bottom: 8px; }
.bsp-flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; border: 1px solid; }
.bsp-flash-ok { background: #eef6e3; border-color: #b9d38a; color: #2f4a08; }
.bsp-flash-err { background: #fdecea; border-color: #f2b8b3; color: #7a1a13; }
.bsp-flash-info { background: #eef3f8; border-color: #b9cde3; color: #1f3a5a; }
.bsp-pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: #e7ebe0; color: #3c4632; text-transform: capitalize; }
.bsp-pill-submitted, .bsp-pill-ordered { background: #e2ecf7; color: #1f3a5a; }
.bsp-pill-accepted, .bsp-pill-received, .bsp-pill-invoiced { background: #dff0c4; color: #2f4a08; }
.bsp-pill-void, .bsp-pill-cancelled, .bsp-pill-overdue { background: #f8d9d6; color: #7a1a13; }
.bsp-dl { display: grid; grid-template-columns: 120px 1fr; gap: 5px 12px; margin: 0; }
.bsp-dl dt { color: var(--bsp-muted); font-size: 12px; font-weight: 600; } .bsp-dl dd { margin: 0; }
.bsp-note { white-space: pre-wrap; background: #f8faf5; padding: 10px; border-radius: 6px; }
.bsp-comments .bsp-comment { border-left: 3px solid var(--bsp-brand); padding: 6px 10px; margin-bottom: 10px; background: #f8faf5; }
.bsp-comment-meta { font-size: 12px; color: var(--bsp-muted); margin-bottom: 3px; }
.bsp-inbox-item { padding: 10px 12px; border-bottom: 1px solid var(--bsp-line); }
.bsp-inbox-item.bsp-unread { background: #f3f8ea; border-left: 3px solid var(--bsp-brand); }
.bsp-inbox-meta { font-size: 13px; }
.bsp-inbox-body { color: var(--bsp-muted); margin-top: 4px; font-size: 13px; }
.bsp-lines td { padding: 4px 5px; }
.bsp-lines textarea { min-height: 34px; }
.bsp-totals { text-align: right; align-self: end; font-size: 15px; }
.bsp-totals b { display: inline-block; min-width: 110px; }
.bsp-login-card { max-width: 420px; margin: 60px auto; background: #fff; border: 1px solid var(--bsp-line); border-radius: 10px; padding: 26px 28px; }
.bsp-login-card label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--bsp-muted); }
.bsp-login-card label.bsp-inline { flex-direction: row; align-items: center; color: var(--bsp-text); font-weight: 500; }
.bsp-login-card .bsp-btn { width: 100%; text-align: center; padding: 10px; }
@media print { .bsp-top, .bsp-foot, .bsp-actions, .bsp-comments, .bsp-filter { display: none !important; } }
