/* RAZA Portal — builds on the theme's tokens (--navy-*, --gold, --line, …) */

.rzp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold, #c19a4b); color: var(--navy-950, #06142b); font-size: .75rem; font-weight: 700; }
.rzp-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 12px 20px; background: #7a2e0e; color: #fff; text-align: center; font-weight: 600; }
.rzp-preview-bar a { color: #fff; }

.rzp-wrap { background: var(--bg-alt, #f5f7fa); min-height: 70vh; padding: 32px 0 64px; }
.rzp-shell { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.rzp-side { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.rzp-user { display: grid; gap: 2px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.rzp-user strong { color: var(--navy-900); }
.rzp-user span { font-size: .85rem; color: var(--gold-text); font-weight: 600; }
.rzp-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rzp-side ul a, .rzp-side-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.rzp-side ul a:hover, .rzp-side-link:hover { background: var(--bg-alt); }
.rzp-side ul a[aria-current="page"] { background: var(--navy-900); color: #fff; }
.rzp-side-link { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; }
.rzp-logout { margin-top: 6px; }
.rzp-link-btn { background: none; border: 0; padding: 6px 12px; color: var(--navy-700); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

.rzp-main { min-width: 0; }
.rzp-main h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.rzp-main h2 { font-size: 1.2rem; }
.rzp-main h3 { font-size: 1rem; font-family: var(--sans); margin-top: 18px; }
.rzp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rzp-head p { margin: 0; }
.rzp-back { display: inline-block; font-size: .9rem; margin-bottom: 6px; text-decoration: none; }
.rzp-muted { color: var(--muted); font-size: .92rem; }
.rzp-help { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.rzp-meta { font-size: .95rem; }

.rzp-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.rzp-panel > summary, .rzp-sub > summary { cursor: pointer; font-weight: 700; color: var(--navy-900); }
.rzp-panel[open] > summary { margin-bottom: 14px; }
.rzp-sub { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rzp-sub > summary { font-weight: 600; font-size: .95rem; }
.rzp-panel-warn { border-left: 4px solid #d97706; }
.rzp-panel-success { border-left: 4px solid #12a150; }
.rzp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rzp-grid-2 > .rzp-panel { margin-bottom: 20px; }

.rzp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.rzp-stat { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--muted); font-size: .88rem; text-decoration: none; box-shadow: var(--shadow); }
.rzp-stat span { font: 700 1.6rem/1.1 var(--serif); color: var(--navy-900); }
a.rzp-stat:hover { border-color: var(--gold); }
.rzp-stat-warn span { color: #b45309; }

.rzp-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap; background: #eef1f5; color: #344054; }
.rzp-badge-info { background: #e8f0fe; color: #1b3a66; }
.rzp-badge-warning { background: #fff4e5; color: #93370d; }
.rzp-badge-progress { background: #f0ebff; color: #4a1fb8; }
.rzp-badge-success { background: #e7f8ee; color: #05603a; }
.rzp-badge-danger { background: #fdecea; color: #912018; }
.rzp-badge-muted { background: #f2f4f7; color: #667085; }

.rzp-notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .95rem; word-break: break-word; }
.rzp-notice-success { background: #ecfdf3; border: 1px solid #abefc6; color: #05603a; }
.rzp-notice-error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.rzp-notice-warning { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.rzp-notice-info { background: #eff8ff; border: 1px solid #b2ddff; color: #175cd3; }

.rzp-empty { text-align: center; padding: 36px 20px; background: #fff; border: 1px dashed #c9d2de; border-radius: var(--radius); color: var(--muted); }
.rzp-empty-title { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 6px; }

.rzp-table-wrap { overflow-x: auto; }
.rzp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rzp-table th, .rzp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rzp-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-alt); }
.rzp-table .num { text-align: right; }
.rzp-table .center { text-align: center; }
.rzp-table tr.rzp-urgent td:first-child { box-shadow: inset 3px 0 0 #d92d20; }
.rzp-total td { font-weight: 700; border-top: 2px solid var(--navy-900); }
.rzp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rzp-matrix td:first-child { min-width: 260px; }

/* Forms */
.rzp-form .rzp-field, .rzp-field { margin-bottom: 14px; }
.rzp-field > label, .rzp-field > legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-900); }
fieldset.rzp-field, .rzp-step, .rzp-new-customer { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.rzp-step > legend, .rzp-new-customer > legend { font: 700 1.1rem var(--serif); color: var(--navy-900); margin-bottom: 12px; }
.rzp-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .rzp-field select, .rzp-field textarea, .rzp-filters input, .rzp-filters select, .rzp-inline select {
	width: 100%; min-height: 44px; padding: 10px 12px; font: 400 .97rem/1.4 var(--sans); color: var(--ink);
	background: #fff; border: 1.5px solid #c9d2de; border-radius: var(--radius-sm);
}
.rzp-field textarea { min-height: 80px; resize: vertical; }
.rzp-field input:focus, .rzp-field select:focus, .rzp-field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(27, 58, 102, .14); }
.rzp-field input:disabled { background: var(--bg-alt); }
.rzp-field input[type="file"] { display: block; padding: 8px 0; }
.rzp-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 16px; font-size: .95rem; }
.rzp-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.rzp-grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }
.rzp-grid-form .rzp-step-nav { grid-column: 1 / -1; }
.rzp-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0 4px 6px 0; }
.rzp-inline select { width: auto; min-height: 34px; padding: 4px 8px; }
.rzp-inline-form { margin-top: 12px; }
.rzp-step-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.btn-outline { border-color: #c9d2de; color: var(--navy-900); background: #fff; }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn-xs { min-height: 32px; padding: 4px 12px; font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.rzp-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 4px; margin-bottom: 14px; }
.rzp-filter-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; font-size: .92rem; }

/* Auth */
.rzp-auth { max-width: 520px; margin: 0 auto; padding: 56px 20px 72px; }
.rzp-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy-900); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.rzp-card h1 { font-size: 1.7rem; }
.rzp-auth-links { font-size: .92rem; margin-top: 16px; }
.rzp-auth-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }
.rzp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.rzp-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rzp-tabs a[aria-selected="true"] { color: var(--navy-900); border-bottom-color: var(--gold); }

/* Orders */
.rzp-progress { list-style: none; display: flex; padding: 0; margin: 0 0 18px; counter-reset: s; }
.rzp-progress li { flex: 1; position: relative; padding-top: 30px; font-size: .8rem; text-align: center; color: var(--muted); }
.rzp-progress li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #e5e9f0; color: var(--muted); font-weight: 700; line-height: 24px; z-index: 1; }
.rzp-progress li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #e5e9f0; }
.rzp-progress li:first-child::after { display: none; }
.rzp-progress li.done::before { content: "✓"; background: #12a150; color: #fff; }
.rzp-progress li.done::after, .rzp-progress li.current::after { background: #12a150; }
.rzp-progress li.current { color: var(--navy-900); font-weight: 700; }
.rzp-progress li.current::before { background: var(--navy-900); color: #fff; }
.rzp-dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.rzp-dl dt { color: var(--muted); }
.rzp-dl dd { margin: 0; word-break: break-word; }
.rzp-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 12px; font-size: .93rem; }
.rzp-timeline li { position: relative; }
.rzp-timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.rzp-timeline .rzp-tl-internal::before { background: #98a2b3; }
.rzp-tl-date { display: block; font-size: .8rem; color: var(--muted); }
.rzp-docs { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; font-size: .94rem; }
.rzp-docs a { font-weight: 600; }
.rzp-checklist { margin: 0 0 12px; padding-left: 1.2em; color: var(--muted); font-size: .94rem; }
.rzp-thread { display: grid; gap: 10px; }
.rzp-msg { background: var(--bg-alt); border-radius: 12px; padding: 10px 14px; max-width: 90%; }
.rzp-msg p { margin: 0; }
.rzp-msg-me { background: #e8f0fe; justify-self: end; }
.rzp-msg-meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px !important; }
.rzp-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rzp-notes li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rzp-unread { font-weight: 600; }
.rzp-unread::before { content: "● "; color: var(--gold); }
.rzp-actions-list { margin: 0; padding-left: 1.2em; }
.rzp-bank { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.rzp-invoice { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.rzp-invoice p { margin: 0 0 6px; }
.rzp-payment { padding: 8px 0; border-top: 1px dashed var(--line); font-size: .93rem; }
.rzp-lines { display: grid; gap: 8px; }
.rzp-line { display: grid; grid-template-columns: 1fr 160px; gap: 8px; }
.rzp-line input { min-height: 42px; padding: 8px 10px; border: 1.5px solid #c9d2de; border-radius: var(--radius-sm); font: inherit; }
.rzp-service-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rzp-service-option { display: flex; flex-direction: column; margin: 0; }
.rzp-service-option p { color: var(--muted); flex: 1; }
.rzp-service-option .btn { align-self: flex-start; }
.rzp-stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; counter-reset: st; }
.rzp-stepper li { flex: 1; padding: 10px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--muted); text-align: center; }
.rzp-stepper li.active { border-color: var(--navy-900); color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--gold); }
.rzp-wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.rzp-summary { display: grid; grid-template-columns: minmax(120px, 35%) 1fr; gap: 6px 14px; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .94rem; }
.rzp-summary dt { color: var(--muted); }
.rzp-summary dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.rzp-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rzp-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rzp-stars-input label { font-size: 2rem; color: #d0d5dd; cursor: pointer; line-height: 1; }
.rzp-stars-input input:checked ~ label, .rzp-stars-input label:hover, .rzp-stars-input label:hover ~ label { color: var(--gold); }
.rzp-stars-input input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.rzp-main blockquote { margin: 8px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.rzp-secret { display: inline-block; margin: 8px 0; padding: 10px 14px; background: var(--bg-alt); border-radius: 8px; font-size: 1.1rem; letter-spacing: .08em; word-break: break-all; }
.rzp-sections { display: grid; gap: 8px; }
.rzp-section-row { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.rzp-section-row input[type="number"] { width: 64px; min-height: 36px; padding: 4px 8px; border: 1.5px solid #c9d2de; border-radius: 8px; }
.rzp-img-preview { max-width: 160px; max-height: 120px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.rzp-sticky-actions { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 0; background: linear-gradient(transparent, var(--bg-alt) 30%); z-index: 5; }
.rzp-pages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.rzp-pages a, .rzp-pages span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.rzp-pages span { background: var(--navy-900); color: #fff; }
.req { color: #b42318; }

@media (max-width: 960px) {
	.rzp-shell { grid-template-columns: 1fr; }
	.rzp-side { position: static; }
	.rzp-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
	.rzp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.rzp-wrap { padding-top: 16px; }
	.rzp-panel { padding: 18px 16px; }
	.rzp-table thead { display: none; }
	.rzp-table, .rzp-table tbody, .rzp-table tr, .rzp-table td { display: block; width: 100%; }
	.rzp-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
	.rzp-table td { border: 0; padding: 4px 0; }
	.rzp-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-size: .85rem; }
	.rzp-matrix thead { display: table-header-group; }
	.rzp-dl, .rzp-summary { grid-template-columns: 1fr; }
	.rzp-line { grid-template-columns: 1fr 110px; }
	.rzp-progress li { font-size: .7rem; }
}
