﻿:root { font-family: Segoe UI, Arial, sans-serif; color: #1e2430; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #145da0; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 58px; background: #fff; border-bottom: 1px solid #d8dee6; display: flex; align-items: center; padding: 0 24px; gap: 28px; }
.brand a { font-size: 22px; font-weight: 700; color: #16202a; }
nav { display: flex; gap: 18px; flex: 1; }
.disabled { color: #8a929c; }
.user { font-size: 14px; }
.container { max-width: 1280px; margin: 24px auto; padding: 0 24px 48px; }
.card { background: #fff; border: 1px solid #d8dee6; border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 14px 20px; }
label { display: block; font-size: 13px; color: #56606d; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #b9c2cd; border-radius: 4px; background: white; font: inherit; }
textarea { min-height: 72px; }
button, .button { display: inline-block; padding: 9px 15px; border: 0; border-radius: 4px; background: #145da0; color: #fff; cursor: pointer; font: inherit; }
.button.secondary, button.secondary { background: #66717d; }
button.success { background: #2d7d46; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e0e5eb; vertical-align: top; }
th { font-size: 13px; color: #56606d; background: #f8fafc; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; background: #e8eef5; font-size: 12px; }
.badge.ok { background: #e0f2e5; }
.notice { padding: 12px; background: #e7f2ff; border: 1px solid #abd0f5; margin-bottom: 16px; border-radius: 6px; }
.error { padding: 12px; background: #fff0f0; border: 1px solid #e9aaaa; margin-bottom: 16px; border-radius: 6px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: #727c87; }
summary { cursor: pointer; font-weight: 600; }
@media (max-width: 800px) { .grid, .grid-3 { grid-template-columns: 1fr; } nav { display: none; } }
.fias-picker { margin-top: 16px; padding: 16px; border: 1px solid #d5dee8; border-radius: 8px; background: #f8fbfe; }
.fias-picker-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.fias-search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.fias-suggestions { margin-top: 8px; border: 1px solid #c8d3df; border-radius: 6px; background: #fff; max-height: 300px; overflow-y: auto; box-shadow: 0 4px 12px rgba(24, 44, 68, .08); }
.fias-suggestion { width: 100%; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid #e7ecf1; border-radius: 0; background: #fff; color: #1e2430; }
.fias-suggestion:last-child { border-bottom: 0; }
.fias-suggestion:hover, .fias-suggestion:focus { background: #eef6ff; outline: none; }
.fias-suggestion-main { font-weight: 600; line-height: 1.35; }
.fias-suggestion-meta { color: #687482; font-size: 12px; }
.fias-empty { padding: 12px; color: #727c87; }
.fias-selected { margin-top: 12px; padding: 12px 14px; border: 1px solid #9bc4ec; border-radius: 6px; background: #eaf4ff; }
.fias-selected-label { color: #56606d; font-size: 12px; margin-bottom: 4px; }
.fias-selected-text { font-weight: 700; line-height: 1.4; }
.fias-house-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d5dee8; }
.manual-address { border-top: 1px dashed #c8d3df; padding-top: 12px; }
@media (max-width: 800px) { .fias-search-row { grid-template-columns: 1fr; } }

/* alpha8-r1 integrations administration */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px 20px; margin-bottom: 16px; }
.span-2 { grid-column: span 2; }
.table-scroll { overflow-x: auto; }
.scope-box { border: 1px solid #d8dee6; border-radius: 6px; padding: 12px 14px; margin: 0 0 16px; }
.scope-box legend { font-weight: 600; padding: 0 6px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; margin-bottom: 8px; color: #1e2430; }
.check-label input[type="checkbox"] { width: auto; margin: 0; }
.scope-badge { margin: 1px 4px 1px 0; }
.badge.bad { background: #fde2e2; color: #8b1e1e; }
button.danger, .button.danger { background: #a12d2d; }
.token-once { background: #fff8d9; border: 2px solid #e0bd4f; border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.token-once h2 { margin-top: 0; }
.token-value { min-height: 82px; font-family: Consolas, monospace; word-break: break-all; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.journal-summary { justify-content: space-between; margin-bottom: 10px; }
.pager { display: flex; gap: 10px; margin-top: 14px; }
.small-code { font-size: 11px; white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 12px 22px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 3px; }
.detail-grid span { color: #727c87; font-size: 13px; }
.json-box { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8fafc; border: 1px solid #e0e5eb; border-radius: 6px; padding: 12px; }
.soap-box { max-height: 520px; overflow: auto; font-size: 12px; line-height: 1.45; }
.warning { padding: 8px 10px; border: 1px solid #d8b35b; border-radius: 6px; background: #fffaf0; }
@media (max-width: 800px) { .form-grid, .filter-grid, .detail-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* alpha8-r1-r12-r6: per-user working date, users and audit */
.working-date-form { display:flex; align-items:center; margin:0; }
.working-date-form label { display:flex; align-items:center; gap:6px; margin:0; white-space:nowrap; font-size:12px; }
.working-date-form input[type="date"] { width:142px; padding:6px 7px; }
.audit-json { max-width:620px; max-height:330px; overflow:auto; font-size:11px; line-height:1.4; }
@media (max-width: 1180px) { .working-date-form label { font-size:0; } .working-date-form input[type="date"] { font-size:12px; } }


/* alpha8-r1-r12-r6 BUILD FIX 2: product attribution footer */
.site-footer { border-top: 1px solid #d8dee6; background: #fff; color: #727c87; font-size: 12px; }
.site-footer-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px 18px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; text-align: center; }
.site-footer a { color: #56606d; font-weight: 600; }
.site-footer-separator { color: #a0a8b1; }
@media (max-width: 600px) { .site-footer-inner { padding: 12px 18px 16px; } .site-footer-separator { display: none; } .site-footer-inner span:first-child, .site-footer-inner a { width: 100%; } }
