/* =================================================================
   OPEN SPACE LAND REGISTRY — Main Stylesheet
================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #d8dce0; min-height: 100vh; color: #1c1c1c; }

/* ── TOP NAV ── */
.top-nav { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.top-nav .logo { font-size: 15px; font-weight: 700; color: #2c2c2c; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 22px; height: 22px; background: #3a5a2a; border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { display: block; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user { font-size: 13px; color: #888; }
.header-rule { height: 3px; background: #3a5a2a; }

/* ── BUTTONS ── */
.btn { display: inline-block; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 8px 18px; border-radius: 2px; border: none; cursor: pointer; text-decoration: none; text-align: center; }
.btn-primary   { background: #3a5a2a; color: #fff; }
.btn-primary:hover { background: #4a7235; }
.btn-secondary { background: #2c2c2c; color: #fff; }
.btn-secondary:hover { background: #444; }
.btn-outline   { background: #fff; color: #3a5a2a; border: 1.5px solid #3a5a2a; }
.btn-outline:hover { background: #3a5a2a; color: #fff; }
.btn-gray      { background: #666; color: #fff; }
.btn-gray:hover { background: #888; }
.btn-danger    { background: #a32d2d; color: #fff; }
.btn-danger:hover { background: #c03030; }
.btn-sm { font-size: 11px; padding: 5px 12px; }
.btn-full { width: 100%; display: block; }

/* ── LOGIN PAGE ── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 55px); padding: 40px 20px; background: #eef0ec; }
.login-box { background: #fff; border: 1px solid #ccc; border-top: 3px solid #3a5a2a; border-radius: 2px; padding: 32px; width: 100%; max-width: 380px; }
.login-box h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #2c2c2c; margin-bottom: 4px; }
.login-box .login-sub { font-size: 13px; color: #888; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #555; margin-bottom: 4px; }
.login-field input { width: 100%; font-size: 15px; font-family: Arial; padding: 9px 10px; border: 1.5px solid #bbb; border-radius: 2px; color: #1c1c1c; outline: none; }
.login-field input:focus { border-color: #3a5a2a; }
.login-links { font-size: 12px; color: #999; text-align: center; margin-top: 12px; }
.login-links a { color: #3a5a2a; font-weight: 700; text-decoration: none; }
.msg-error { background: #fff5f5; border-left: 3px solid #a32d2d; color: #a32d2d; font-size: 13px; padding: 9px 12px; border-radius: 2px; margin-bottom: 14px; }
.msg-success { background: #f3faf0; border-left: 3px solid #3a5a2a; color: #2a4a1a; font-size: 13px; padding: 9px 12px; border-radius: 2px; margin-bottom: 14px; }
.msg-info { background: #f0f5fa; border-left: 3px solid #1a3a5c; color: #1a3a5c; font-size: 13px; padding: 9px 12px; border-radius: 2px; margin-bottom: 14px; }

/* ── DASHBOARD SHELL ── */
.dash-shell { max-width: 920px; margin: 0 auto; padding: 18px 16px 60px; }
.dash-header { background: #2c2c2c; padding: 11px 18px 10px; border-radius: 2px 2px 0 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dash-header-title { font-size: 17px; font-weight: 700; color: #fff; }
.dash-header-sub { font-size: 13px; color: #aaa; margin-top: 2px; }
.dash-header-right { font-size: 13px; color: #aaa; text-align: right; line-height: 1.8; }
.dash-header-right strong { color: #c8b060; }
.dash-header-right .status-active { color: #7ec87e; }
.dash-rule { height: 3px; background: #3a5a2a; }

/* ── PROPERTY SWITCHER ── */
.prop-switcher { background: #fff; border: 1px solid #c8c8c8; border-top: none; padding: 8px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prop-switcher label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #555; white-space: nowrap; }
.prop-select { font-size: 14px; font-family: Arial; font-weight: 700; padding: 5px 10px; border: 1.5px solid #2c2c2c; border-radius: 2px; color: #2c2c2c; background: #fff; cursor: pointer; outline: none; }
.prop-badge { font-size: 12px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 2px; padding: 4px 10px; color: #555; }
.prop-badge strong { color: #2c2c2c; }
.prop-spacer { flex: 1; }
.action-group { display: flex; gap: 6px; }
.btn-action { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 5px 14px; border-radius: 2px; border: 1.5px solid #3a5a2a; background: #fff; color: #3a5a2a; cursor: pointer; font-family: Arial; }
.btn-action:hover { background: #3a5a2a; color: #fff; }

/* ── TABS ── */
.tabs-outer { display: flex; align-items: flex-end; gap: 3px; padding: 10px 0 0; }
.tab-btn { flex: 1; border: none; cursor: pointer; font-family: Arial; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; text-align: center; line-height: 1.4; background: #bcc2c8; color: #5a6a78; border-radius: 4px 4px 0 0; padding: 8px 6px 9px; border: 1.5px solid #a8b0b8; border-bottom: none; transition: background 0.15s; }
.tab-btn:hover { background: #adb4bb; color: #2c2c2c; }
.tab-btn.active { background: #fff; color: #2c2c2c; border-color: #3a5a2a; border-bottom: none; padding-bottom: 11px; z-index: 2; position: relative; }
.tabs-content { background: #fff; border: 1.5px solid #3a5a2a; border-top: none; border-radius: 0 0 4px 4px; position: relative; z-index: 1; }
.tab-panel { display: none; padding: 16px 20px; }
.tab-panel.active { display: block; }

/* ── FORM ELEMENTS ── */
.section-rule { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #888; border-bottom: 1px solid #e0e0e0; padding-bottom: 5px; margin: 14px 0 8px; }
.section-rule:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.form-grid.thirds { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.quads  { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-grid.single { grid-template-columns: 1fr; }
.fg { display: flex; flex-direction: column; gap: 2px; }
.fg.span2 { grid-column: 1 / -1; }
.fg.span3 { grid-column: 1 / -1; }
.fg label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #666; }
.fg input, .fg select, .fg textarea {
    font-size: 13px; font-family: Arial; padding: 5px 8px;
    border: 1.5px solid #bbb; border-radius: 2px;
    color: #1c1c1c; outline: none; background: #fff; height: 30px;
}
.fg textarea { height: 70px; resize: vertical; line-height: 1.5; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: #3a5a2a; }
.fg input.autofilled { border-color: #a8c8a0; background: #f8fdf6; }
.save-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 0; margin-top: 10px; border-top: 1px solid #eee; }
.save-hint { font-size: 11px; color: #bbb; }

/* ── ACREAGE BOX ── */
.acreage-box { background: #f5f7f3; border: 1px solid #dde5d8; border-left: 3px solid #3a5a2a; border-radius: 2px; padding: 12px 14px; grid-column: 1 / -1; }
.acreage-box h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #555; margin-bottom: 8px; }
.ac-row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 6px; }
.ac-row label { font-size: 13px; color: #444; }
.ac-row input { font-size: 13px; font-family: Arial; padding: 4px 8px; border: 1.5px solid #bbb; border-radius: 2px; color: #1c1c1c; outline: none; height: 28px; }
.ac-row input:focus { border-color: #3a5a2a; }
.ac-row input[readonly] { background: #eef0ec; font-weight: 700; }
.ac-row .unit { font-size: 11px; color: #999; }
.ac-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ccd8c4; }

/* ── AUTOFILL LOOKUP ── */
.lookup-banner { background: #eef3ea; border: 1px solid #c4d8b8; border-left: 3px solid #3a5a2a; border-radius: 2px; padding: 9px 13px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 9px; }
.lookup-banner p { font-size: 12px; color: #3a5a2a; line-height: 1.55; }
.autofill-row { display: flex; gap: 7px; align-items: flex-end; margin-bottom: 4px; }
.autofill-wrap { position: relative; flex: 1; }
.autofill-wrap input { width: 100%; font-size: 13px; font-family: Arial; padding: 5px 8px; border: 1.5px solid #3a5a2a; border-radius: 2px; color: #1c1c1c; outline: none; height: 30px; }
.suggestions { position: absolute; top: calc(100% + 2px); left: 0; right: 0; background: #fff; border: 1.5px solid #3a5a2a; border-radius: 2px; z-index: 999; max-height: 220px; overflow-y: auto; }
.suggestion-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #eef3ea; }
.si-address { font-size: 13px; font-weight: 700; color: #2c2c2c; }
.si-detail  { font-size: 11px; color: #888; margin-top: 2px; }
.si-match   { color: #3a5a2a; }
.autofill-applied { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #eef3ea; border: 1px solid #c4d8b8; border-radius: 2px; margin-bottom: 10px; font-size: 11px; color: #3a5a2a; font-weight: 700; }
.autofill-applied .af-clear { margin-left: auto; color: #888; cursor: pointer; font-weight: 400; text-decoration: underline; }

/* ── DOCUMENTS ── */
.doc-cat-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.doc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; padding: 4px 10px; border: 1.5px solid #ccc; border-radius: 2px; background: #f5f5f5; color: #555; cursor: pointer; }
.doc-cat.active { background: #3a5a2a; color: #fff; border-color: #3a5a2a; }
.upload-zone { border: 1.5px dashed #bbb; border-radius: 2px; padding: 18px; text-align: center; background: #fafafa; cursor: pointer; margin-bottom: 12px; }
.upload-zone:hover { border-color: #3a5a2a; background: #f5faf3; }
.upload-zone p { font-size: 12px; color: #888; margin-top: 6px; }
.upload-zone .up-link { color: #3a5a2a; font-weight: 700; }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 2px; background: #fff; }
.doc-left { display: flex; align-items: center; gap: 10px; }
.doc-icon { width: 26px; height: 26px; background: #e8e8e8; border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-name { font-size: 13px; font-weight: 700; color: #2c2c2c; }
.doc-meta { font-size: 11px; color: #999; margin-top: 1px; }
.doc-actions { display: flex; gap: 5px; }
.photo-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-item { position: relative; }
.photo-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 2px; border: 1px solid #ddd; display: block; }
.photo-del { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; background: #a32d2d; border-radius: 50%; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; text-decoration: none; }

/* ── ADMIN ── */
.admin-shell { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.admin-card { background: #fff; border: 1px solid #d0d0d0; border-top: 3px solid #2c2c2c; border-radius: 2px; padding: 24px 28px; margin-bottom: 20px; }
.admin-card h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #2c2c2c; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #888; text-align: left; padding: 6px 10px; border-bottom: 1px solid #e0e0e0; }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; color: #333; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.badge-founding { font-size: 10px; background: #1c2e14; color: #a8c898; padding: 2px 7px; border-radius: 2px; font-weight: 700; text-transform: uppercase; }
.badge-admin { font-size: 10px; background: #1a3a5c; color: #a8c4df; padding: 2px 7px; border-radius: 2px; font-weight: 700; text-transform: uppercase; }

/* ── PRINT REPORT ── */
@media print {
    .top-nav, .prop-switcher, .tabs-outer, .action-group, .save-row,
    .btn, .header-rule, .no-print { display: none !important; }
    body { background: #fff; }
    .dash-shell { padding: 0; max-width: 100%; }
    .dash-header { border-radius: 0; }
    .tabs-content { border: none; }
    .tab-panel { display: block !important; padding: 12px 0; border-top: 1px solid #ddd; }
    .print-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #3a5a2a; margin-bottom: 6px; }
}
.print-bar { display: flex; align-items: center; justify-content: space-between; background: #f5f7f3; border: 1px solid #d4dace; border-radius: 2px; padding: 7px 14px; margin-bottom: 0; }
.print-bar p { font-size: 12px; color: #666; }

/* ── UTILITIES ── */
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.text-muted { color: #888; font-size: 12px; }
.text-center { text-align: center; }
