/* Ridge Network CRM — client portal. Inherits theme fonts (Kadence). */
.rng-portal {
	--rng-green: #2e9e44; --rng-yellow: #e6c11e; --rng-orange: #ee7d1f; --rng-red: #d63232; --rng-gray: #8a8f98;
	--rng-ink: #1f2933; --rng-muted: #6b7280; --rng-line: #e5e7eb; --rng-bg: #f8fafc; --rng-card: #fff;
	--rng-accent: var(--global-palette1, #1f5fae); --rng-radius: 10px;
	color: var(--rng-ink); font-size: 15px; line-height: 1.5; max-width: 1200px; margin: 0 auto;
}
.rng-portal *, .rng-portal *::before, .rng-portal *::after { box-sizing: border-box; }
.rng-portal a { color: var(--rng-accent); }
.rng-portal .rng-muted { color: var(--rng-muted); }
.rng-portal .rng-small { font-size: 13px; }

.rng-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rng-line); margin-bottom: 18px; }
.rng-eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rng-muted); }
.rng-title { margin: 2px 0 0; font-size: 26px; line-height: 1.2; }
.rng-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.rng-nav__link { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--rng-ink) !important; font-weight: 500; }
.rng-nav__link:hover { background: var(--rng-bg); }
.rng-nav__link.is-active { background: var(--rng-accent); color: #fff !important; }
.rng-nav__logout { color: var(--rng-muted) !important; }
.rng-staffbar { background: #fff8e1; border: 1px solid #f3e1a0; padding: 6px 12px; border-radius: 8px; font-size: 13px; }

.rng-alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; border: 1px solid; }
.rng-alert--ok { background: #ecfdf3; border-color: #a6e3b8; color: #14532d; }
.rng-alert--err { background: #fef2f2; border-color: #f5b5b5; color: #7f1d1d; }
.rng-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

.rng-map { height: 440px; border-radius: var(--rng-radius); border: 1px solid var(--rng-line); background: #e9eef2; }
.rng-map--off { height: auto; padding: 28px; text-align: center; color: var(--rng-muted); }
.rng-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 10px 0 22px; padding: 0; font-size: 14px; color: var(--rng-muted); }
.rng-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.rng-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--rng-gray); flex: none; vertical-align: middle; }
.rng-dot--green { background: var(--rng-green); } .rng-dot--yellow { background: var(--rng-yellow); }
.rng-dot--orange { background: var(--rng-orange); } .rng-dot--red { background: var(--rng-red); }

.rng-pop { font-size: 13px; line-height: 1.45; max-width: 280px; color: #1f2933; }
.rng-pop__title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.rng-pop__addr { color: #6b7280; margin-bottom: 2px; }
.rng-pop__status { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.rng-pop__svc { border-top: 1px solid #eee; padding: 6px 0; }
.rng-pop__svc .rng-dot { width: 8px; height: 8px; margin-right: 5px; }
.rng-pop__link { display: inline-block; margin-top: 6px; font-weight: 600; }

.rng-section { margin: 0 0 26px; }
.rng-h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 10px; }
.rng-h3__sub { font-size: 13px; font-weight: 400; }
.rng-h4 { font-size: 16px; margin: 22px 0 10px; }
.rng-table-wrap { overflow-x: auto; border: 1px solid var(--rng-line); border-radius: var(--rng-radius); background: var(--rng-card); }
.rng-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.rng-table th, .rng-table td { text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--rng-line); vertical-align: top; }
.rng-table thead th { background: var(--rng-bg); font-weight: 600; font-size: 13px; color: var(--rng-muted); }
.rng-table tbody tr:last-child td { border-bottom: 0; }

.rng-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap; vertical-align: middle; background: #eceef1; color: #4b5563; }
.rng-badge--green { background: #dcf3e1; color: #1d6b2e; } .rng-badge--yellow { background: #fbf1c7; color: #7a5d00; }
.rng-badge--orange { background: #fde4cf; color: #8a3f00; } .rng-badge--red { background: #f9d6d6; color: #8f1c1c; }

.rng-loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rng-loc-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rng-line); border-radius: var(--rng-radius); background: var(--rng-card); text-decoration: none; color: var(--rng-ink) !important; }
.rng-loc-card:hover { border-color: var(--rng-accent); }
.rng-loc-card .rng-dot { margin-top: 6px; }

.rng-crumbs { margin: 0 0 8px; font-size: 14px; }
.rng-record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.rng-record-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 22px; margin: 0; }
.rng-record-head p { margin: 2px 0 0; }
.rng-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rng-btn { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--rng-accent); background: var(--rng-accent); color: #fff !important; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.rng-btn:hover { filter: brightness(1.08); }
.rng-btn--ghost { background: transparent; color: var(--rng-accent) !important; }
.rng-btn[disabled] { opacity: .6; cursor: wait; }
.rng-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.rng-danger { color: #b42318 !important; }
.rng-inline { display: inline; }

.rng-dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 16px; margin: 12px 0; }
.rng-dl dt { color: var(--rng-muted); font-weight: 500; }
.rng-dl dd { margin: 0; }
@media (max-width: 600px) { .rng-dl { grid-template-columns: 1fr; } .rng-dl dd { margin-bottom: 8px; } }

.rng-svc { border: 1px solid var(--rng-line); border-radius: var(--rng-radius); background: var(--rng-card); padding: 14px 16px; margin-bottom: 12px; }
.rng-svc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.rng-svc__name { font-weight: 700; font-size: 16px; }
.rng-svc__money { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--rng-muted); }
.rng-svc__money strong { color: var(--rng-ink); }
.rng-circuit { border-top: 1px dashed var(--rng-line); margin-top: 10px; padding-top: 10px; }
.rng-ips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; }
.rng-ip__k { color: var(--rng-muted); }
.rng-ip code { background: var(--rng-bg); padding: 1px 6px; border-radius: 4px; user-select: all; }

.rng-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.rng-panel { border: 1px solid var(--rng-line); border-radius: var(--rng-radius); background: var(--rng-card); padding: 4px 16px 16px; }
.rng-panel .rng-h4 { margin-top: 14px; }
.rng-note { background: var(--rng-bg); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.rng-note__meta { font-size: 12px; color: var(--rng-muted); }
.rng-docs { list-style: none; margin: 0 0 12px; padding: 0; }
.rng-docs li { padding: 6px 0; border-bottom: 1px solid var(--rng-line); margin: 0; }
.rng-panel form textarea, .rng-panel form input[type=text] { width: 100%; margin-bottom: 8px; }
.rng-panel form input[type=file] { display: block; margin-bottom: 8px; }
.rng-pricing .rng-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.rng-pricing .rng-mini th, .rng-pricing .rng-mini td { text-align: left; padding: 5px 6px; border: 0; border-bottom: 1px solid var(--rng-line); }

.rng-form { max-width: 720px; }
.rng-field { display: block; margin: 0 0 14px; }
.rng-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.rng-form input[type=text], .rng-form input[type=email], .rng-form input[type=tel], .rng-form input[type=number], .rng-form input[type=date], .rng-form select, .rng-form textarea { width: 100%; max-width: 100%; }
.rng-form--inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; max-width: none; }
.rng-form--inline .rng-field { margin: 0; }

.rng-wizard fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.rng-wizard legend { font-size: 18px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.rng-steps { display: none; }
.rng-wizard.is-js .rng-steps { display: flex; list-style: none; padding: 0; margin: 10px 0 20px; gap: 6px; counter-reset: s; }
.rng-steps li { flex: 1; margin: 0; text-align: center; font-size: 13px; color: var(--rng-muted); border-top: 4px solid var(--rng-line); padding-top: 6px; counter-increment: s; }
.rng-steps li::before { content: counter(s) ". "; }
.rng-steps li.is-active { color: var(--rng-ink); border-color: var(--rng-accent); font-weight: 600; }
.rng-steps li.is-done { border-color: color-mix(in srgb, var(--rng-accent) 45%, white); }
.rng-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rng-choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--rng-line); border-radius: var(--rng-radius); padding: 14px; cursor: pointer; background: var(--rng-card); font-weight: 500; }
.rng-choice:has(input:checked) { border-color: var(--rng-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rng-accent) 25%, transparent); }
.rng-wizard__nav { display: flex; gap: 10px; }
.rng-wizard:not(.is-js) [data-prev], .rng-wizard:not(.is-js) [data-next] { display: none; }
.rng-step__err { color: #b42318; font-weight: 600; margin: 8px 0 0; }
.rng-step__err:empty { display: none; }
.rng-review { background: var(--rng-bg); padding: 14px; border-radius: 8px; }

.rng-login, .rng-empty { max-width: 460px; margin: 30px auto; padding: 24px; border: 1px solid var(--rng-line); border-radius: var(--rng-radius); background: var(--rng-card); }
.rng-login form p { margin-bottom: 12px; }
.rng-login input[type=text], .rng-login input[type=password] { width: 100%; }
.rng-list { margin: 0; padding-left: 18px; }
.rng-row-actions { white-space: nowrap; }
.rng-vis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rng-vis { display: block; margin-bottom: 6px; font-weight: 400; }
.rng-portal .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
