/* =====================================================================
   GCAP Admin — Design System
   Base styles for public pages and legacy page components.
   Shared foundation lives in assets_console.css; admin navigation and
   dashboard components live in assets_admin.css.
   ===================================================================== */


/* -- Design Tokens --------------------------------------------------- */

:root {
    --gcap-primary: #2d6c4f;
    --gcap-primary-dark: #1f533d;
    --gcap-primary-600: #245b42;
    --gcap-navy: #173a2d;
    --gcap-lavender: #e8f1df;
    --gcap-indigo-50: #f4f9ef;
    --gcap-indigo-100: #e8f3dc;
    --gcap-surface: #fbf8f1;
    --gcap-card: #FFFFFF;
    --gcap-border: #e7e3d7;
    --gcap-text: #29463a;
    --gcap-text-muted: #6f7d73;
    --gcap-success-bg: #edf8ea;
    --gcap-success-border: #cce7bf;
    --gcap-success-text: #2f7b47;
    --gcap-danger-bg: #fff4f1;
    --gcap-danger-border: #f5d0c7;
    --gcap-danger-text: #bd5b42;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 8px 20px rgba(56, 88, 60, 0.08);
    --shadow-md: 0 14px 34px rgba(56, 88, 60, 0.12);
    --shadow-lg: 0 24px 56px rgba(56, 88, 60, 0.18);
}


/* -- Base ------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--gcap-surface);
    color: var(--gcap-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}


/* -- Navbar ---------------------------------------------------------- */

.navbar-gcap {
    background: linear-gradient(135deg, var(--gcap-navy) 0%, var(--gcap-primary-dark) 100%);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    min-height: 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.navbar-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.navbar-brand:hover {
    color: var(--gcap-lavender);
}

.nav-items {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    padding: 1.1rem 0.9rem;
    border-bottom: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    border-bottom-color: var(--gcap-lavender);
}

.nav-auth-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
}

.nav-signout-link {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0.5rem !important;
    border-bottom: none !important;
    transition: color 0.15s;
}

.nav-signout-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: underline;
    border-bottom: none !important;
}


/* -- Page Layout ----------------------------------------------------- */

.page-wrapper {
    padding: 2rem 0 3rem;
    flex: 1;
}


/* -- Footer ---------------------------------------------------------- */

.footer-gcap {
    background: var(--gcap-navy);
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-gcap a {
    color: var(--gcap-lavender);
    text-decoration: none;
}

.footer-gcap a:hover {
    text-decoration: underline;
}


/* -- Page Headers ---------------------------------------------------- */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gcap-navy);
    margin: 0;
    letter-spacing: -0.02em;
}


/* -- Cards ----------------------------------------------------------- */

.card-gcap {
    background: var(--gcap-card);
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

.card-gcap-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gcap-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gcap-border);
}


/* -- Buttons --------------------------------------------------------- */

.btn-gcap-primary {
    display: inline-block;
    background: var(--gcap-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    padding: 0.55rem 1.35rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-gcap-primary:hover {
    background: var(--gcap-primary-600);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.38);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-gcap-primary:active {
    transform: translateY(0);
}

.btn-gcap-secondary {
    display: inline-block;
    background: var(--gcap-lavender);
    color: var(--gcap-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    padding: 0.55rem 1.35rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    line-height: 1.5;
    transition: background 0.15s, color 0.15s;
}

.btn-gcap-secondary:hover {
    background: #c9c0f0;
    color: var(--gcap-primary-dark);
    text-decoration: none;
}

.full-width {
    width: 100%;
}

.input-gcap {
    min-width: 11rem;
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--gcap-text);
    padding: 0.7rem 0.85rem;
    font: inherit;
}

.input-gcap:focus {
    outline: 2px solid rgba(79, 70, 229, 0.18);
    border-color: var(--gcap-primary);
}


/* -- Form Controls --------------------------------------------------- */

label {
    font-size: 0.8125rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.375rem;
    color: var(--gcap-text);
}

.home-hero-dashboard {
    margin-bottom: 1.5rem;
}

.dashboard-shell {
    display: grid;
    gap: 1.25rem;
}

.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.dashboard-title {
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-toolbar-copy {
    max-width: 42rem;
    margin: 0;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(11rem, 1fr));
    gap: 0.5rem 0.9rem;
    align-items: end;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.summary-card {
    padding: 1.25rem 1.4rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.summary-label {
    display: block;
    color: var(--gcap-text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.summary-value {
    display: block;
    color: var(--gcap-navy);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.dashboard-side-stack {
    display: grid;
    gap: 1rem;
}

.dashboard-chart-card {
    position: relative;
    overflow: hidden;
}

.dashboard-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dashboard-section-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: var(--gcap-navy);
}

.dashboard-section-head p {
    margin: 0;
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard-status.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.dashboard-chart-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: center;
}

.donut-stage {
    position: relative;
    min-height: 22rem;
    border-radius: 20px;
    background: radial-gradient(circle at top, rgba(20, 83, 45, 0.12), transparent 40%), linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.donut-canvas {
    position: absolute;
    inset: 1rem;
    width: calc(100% - 2rem) !important;
    height: calc(100% - 2rem) !important;
    filter: drop-shadow(0 10px 24px rgba(2, 12, 58, 0.08));
}

.donut-center {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    width: 8.2rem;
    height: 8.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
}

.donut-center-label {
    display: block;
    color: var(--gcap-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.donut-center-value {
    display: block;
    color: var(--gcap-navy);
    font-size: 1.55rem;
    line-height: 1.1;
}

.distribution-panel {
    align-self: stretch;
}

.distribution-list {
    display: grid;
    gap: 0.75rem;
}

.distribution-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-md);
    background: #fff;
}

.distribution-swatch {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
}

.distribution-row-copy strong,
.distribution-row-metrics span:first-child {
    display: block;
}

.distribution-row-copy span,
.distribution-row-metrics span:last-child {
    color: var(--gcap-text-muted);
    font-size: 0.82rem;
}

.distribution-row-metrics {
    text-align: right;
    min-width: 6.5rem;
}

.dashboard-empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gcap-text-muted);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.quick-links {
    display: grid;
    gap: 0.85rem;
}

.quick-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-link-card strong,
.quick-link-card span {
    display: block;
}

.quick-link-card span {
    color: var(--gcap-text-muted);
    margin-top: 0.25rem;
    font-size: 0.84rem;
}

.quick-link-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: #c7d2fe;
}

@media (max-width: 980px) {
    .summary-grid,
    .dashboard-main-grid,
    .dashboard-chart-layout,
    .dashboard-filters {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-main-grid,
    .dashboard-chart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .summary-grid,
    .dashboard-filters {
        grid-template-columns: 1fr;
    }
    .summary-value {
        font-size: 1.6rem;
    }
    .distribution-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .distribution-row-metrics {
        grid-column: 2;
        text-align: left;
    }
}

input,
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--gcap-border);
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 0.9rem;
    color: var(--gcap-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gcap-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

.form-text {
    font-size: 0.78rem;
    color: var(--gcap-text-muted);
    margin-top: 0.3rem;
    display: block;
}


/* -- Filter Bar ------------------------------------------------------ */

.filter-bar {
    background: var(--gcap-card);
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 0.5rem;
    align-items: end;
}


/* -- Tables ---------------------------------------------------------- */

.table-wrapper {
    background: var(--gcap-card);
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-lg);
    overflow: auto;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    background: var(--gcap-navy);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--gcap-border);
    transition: background 0.1s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--gcap-indigo-50);
}

tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

tbody td:first-child {
    font-weight: 600;
}


/* -- Alerts ---------------------------------------------------------- */

.alert-gcap-success {
    background: var(--gcap-success-bg);
    border: 1px solid var(--gcap-success-border);
    color: var(--gcap-success-text);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-gcap-danger {
    background: var(--gcap-danger-bg);
    border: 1px solid var(--gcap-danger-border);
    color: var(--gcap-danger-text);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}


/* -- Home Hero ------------------------------------------------------- */

.home-hero {
    background: linear-gradient(135deg, var(--gcap-navy) 0%, var(--gcap-primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1rem;
    color: var(--gcap-lavender);
    margin-bottom: 0;
    opacity: 0.9;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}


/* -- Auth Pages ------------------------------------------------------ */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--gcap-navy) 0%, var(--gcap-primary-dark) 55%, var(--gcap-primary) 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gcap-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--gcap-text-muted);
    margin-top: 0.35rem;
}

.auth-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gcap-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    margin-bottom: 1rem;
}


/* -- Error Pages ----------------------------------------------------- */

.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--gcap-primary);
    letter-spacing: -0.05em;
    line-height: 1;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gcap-navy);
    margin-top: 0.5rem;
}

.error-desc {
    color: var(--gcap-text-muted);
    margin: 0.75rem auto 1.5rem;
    max-width: 360px;
}


/* -- Utilities ------------------------------------------------------- */

.text-muted-sm {
    font-size: 0.8125rem;
    color: var(--gcap-text-muted);
}


/* -- Responsive ------------------------------------------------------ */

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .nav-items {
        gap: 0;
    }
}


/* -- Theme Refresh --------------------------------------------------- */

body {
    background: radial-gradient(circle at top left, rgba(190, 216, 155, 0.18), transparent 22rem), radial-gradient(circle at top right, rgba(234, 215, 170, 0.16), transparent 18rem), linear-gradient(180deg, #fefdf9 0%, #fbf8f1 48%, #f7f3ea 100%);
    color: var(--gcap-text);
}

.navbar-gcap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 252, 246, 0.92);
    border-bottom: 1px solid rgba(231, 227, 215, 0.95);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(91, 117, 84, 0.08);
}

.navbar-inner {
    min-height: 72px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gcap-primary-dark);
    font-size: 1.9rem;
    font-weight: 800;
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.nav-link {
    color: #55685d;
    border-bottom-width: 2px;
    padding: 1.45rem 0.95rem 1.2rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--gcap-primary-dark);
    border-bottom-color: #83b94a;
}

.nav-auth-badge {
    background: #eff6e5;
    border-color: #d7e8c5;
    color: var(--gcap-primary-dark);
}

.nav-signout-link {
    color: #5f6f66 !important;
}

.page-wrapper {
    padding: 1.6rem 0 2.75rem;
}

.footer-gcap {
    background: rgba(255, 252, 246, 0.78);
    border-top: 1px solid rgba(231, 227, 215, 0.95);
    color: #6d7b72;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-gcap a {
    color: var(--gcap-primary);
}

.card-gcap,
.table-wrapper,
.filter-bar {
    border-color: rgba(226, 220, 205, 0.9);
    box-shadow: var(--shadow-sm);
}

.card-gcap-title,
.page-header h1,
.dashboard-section-head h2,
.navbar-brand:hover {
    color: var(--gcap-primary-dark);
}

.btn-gcap-primary {
    background: linear-gradient(180deg, #3f8b5f 0%, #2d6c4f 100%);
    box-shadow: 0 10px 24px rgba(45, 108, 79, 0.2);
}

.btn-gcap-primary:hover {
    background: linear-gradient(180deg, #387c55 0%, #245b42 100%);
    box-shadow: 0 14px 30px rgba(45, 108, 79, 0.26);
}

.btn-gcap-secondary {
    background: #eff6e9;
    color: var(--gcap-primary-dark);
}

.btn-gcap-secondary:hover {
    background: #e2eed6;
    color: var(--gcap-primary-dark);
}

.input-gcap,
input,
select,
textarea {
    border-color: #e2dccd;
    background: rgba(255, 255, 255, 0.96);
}

.input-gcap:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8abf5b;
    box-shadow: 0 0 0 4px rgba(138, 191, 91, 0.16);
}

.home-hero-dashboard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.55rem;
    min-height: 200px;
    padding: 1.6rem 2.2rem;
    margin-bottom: 1.2rem;
    overflow: hidden;
    text-align: left;
    background-color: #f6f5ef;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(221, 219, 206, 0.95);
    border-radius: 26px;
    box-shadow: 0 22px 48px rgba(59, 92, 68, 0.13);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 31rem;
}

.dashboard-hero-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.6rem;
    height: 5.6rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 25%, #f9fff0, #dfedcb);
    color: #3c8a45;
    box-shadow: inset 0 0 0 1px rgba(98, 146, 76, 0.16), 0 14px 32px rgba(58, 91, 54, 0.11);
}

.dashboard-hero-icon .ui-icon {
    width: 2.35rem;
    height: 2.35rem;
}

.hero-title {
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--gcap-primary-dark);
    line-height: 1.02;
    margin-bottom: 0.55rem;
}

.hero-sub {
    max-width: 25rem;
    color: #456758;
    font-size: 0.98rem;
    line-height: 1.38;
}

.dashboard-scene {
    position: relative;
}

.dashboard-scene-leaf {
    position: absolute;
    top: 0.2rem;
    width: 7rem;
    height: 10rem;
    opacity: 0.45;
    pointer-events: none;
    background: center / contain no-repeat url("images/logo.svg");
}

.dashboard-scene-leaf::before,
.dashboard-scene-leaf::after {
    content: none;
}

.dashboard-scene-leaf-left {
    left: -2.4rem;
    transform: rotate(-10deg);
}

.dashboard-scene-leaf-right {
    right: -2.1rem;
    transform: scaleX(-1) rotate(-8deg);
}

.dashboard-shell {
    gap: 1rem;
}

.dashboard-toolbar {
    display: grid;
    gap: 1rem;
    padding: 1.3rem 1.45rem;
}

.dashboard-title {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
}

.dashboard-inline-icon {
    width: 1.95rem;
    height: 1.95rem;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
    transform: scale(1.12);
    transform-origin: center;
}

.dashboard-toolbar-copy {
    color: #6d7e72;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.filter-field {
    position: relative;
    padding: 0.3rem 0 0;
}

.filter-field label {
    color: var(--gcap-primary-dark);
    margin-bottom: 0.48rem;
}

.filter-field::before {
    content: none;
}

.filter-field label,
.filter-field .input-gcap {
    margin-left: 2.9rem;
    width: calc(100% - 2.9rem);
}

.filter-icon-shell {
    position: absolute;
    left: 0;
    top: 0.15rem;
}

.summary-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 7.4rem;
    padding: 1.35rem 1.45rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 249, 243, 0.98) 100%);
}

.summary-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f8fbf0 0%, #e7f2d9 100%);
    box-shadow: inset 0 0 0 1px rgba(158, 193, 110, 0.18);
    flex: 0 0 auto;
}

.summary-copy {
    display: block;
    min-width: 0;
}

.summary-label {
    font-size: 0.88rem;
    color: #607168;
    margin-bottom: 0.62rem;
}

.summary-value {
    color: var(--gcap-primary-dark);
    font-size: 2.15rem;
}

.dashboard-section-head {
    margin-bottom: 1.2rem;
}

.dashboard-section-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    font-size: 1.5rem;
}

.dashboard-status {
    background: #edf8ea;
    color: #2f7b47;
    border: 1px solid #d5ebca;
}

.dashboard-status.is-error {
    background: #fff4f1;
    color: #bd5b42;
    border-color: #f0cdc3;
}

.dashboard-chart-card,
.dashboard-side-stack .card-gcap {
    padding: 1.25rem;
}

.dashboard-chart-layout {
    align-items: stretch;
}

.donut-stage {
    min-height: 18rem;
    background: linear-gradient(180deg, #fcfbf7 0%, #f7f4eb 100%);
    border: 1px solid rgba(228, 221, 208, 0.9);
}

.donut-center {
    background: rgba(255, 255, 255, 0.98);
}

.donut-center-value {
    color: var(--gcap-primary-dark);
}

.distribution-row {
    border-color: rgba(228, 221, 208, 0.9);
    background: linear-gradient(180deg, #fff 0%, #fcfbf7 100%);
}

.distribution-row-copy strong,
.distribution-row-metrics span:first-child {
    color: var(--gcap-primary-dark);
}

.quick-link-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1.15rem 2.7rem 1.15rem 1.1rem;
    background: linear-gradient(180deg, #fff 0%, #fcfbf7 100%);
    border-color: rgba(228, 221, 208, 0.9);
}

.quick-link-icon-shell {
    position: relative;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #f8fbf0 0%, #e7f2d9 100%);
    box-shadow: inset 0 0 0 1px rgba(158, 193, 110, 0.18);
    flex: 0 0 auto;
}

.quick-link-copy {
    display: block;
}

.ui-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #74a74f;
}

.ui-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.quick-link-icon-shell .ui-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 1.28rem;
    height: 1.28rem;
    transform: translate(-50%, -50%);
}

.ui-icon-calendar {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.ui-icon-pin {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 22s-7-4.35-7-11a7 7 0 1 1 14 0c0 6.65-7 11-7 11zm0-8.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 22s-7-4.35-7-11a7 7 0 1 1 14 0c0 6.65-7 11-7 11zm0-8.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/%3E%3C/svg%3E");
}

.ui-icon-group {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 11a4 4 0 1 0-3.999-4A4 4 0 0 0 16 11zm-8 0A4 4 0 1 0 4 7a4 4 0 0 0 4 4zm0 2c-3.314 0-6 2.239-6 5v1h8v-1c0-1.13.391-2.17 1.047-3.04A8.46 8.46 0 0 0 8 13zm8 0a7.963 7.963 0 0 0-4.73 1.53A4.978 4.978 0 0 1 14 18v1h8v-1c0-2.761-2.686-5-6-5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 11a4 4 0 1 0-3.999-4A4 4 0 0 0 16 11zm-8 0A4 4 0 1 0 4 7a4 4 0 0 0 4 4zm0 2c-3.314 0-6 2.239-6 5v1h8v-1c0-1.13.391-2.17 1.047-3.04A8.46 8.46 0 0 0 8 13zm8 0a7.963 7.963 0 0 0-4.73 1.53A4.978 4.978 0 0 1 14 18v1h8v-1c0-2.761-2.686-5-6-5z'/%3E%3C/svg%3E");
}

.ui-icon-leaf {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17 2C9 2 4 7 4 13c0 4.42 3.58 8 8 8 6 0 11-5 11-13V2h-6zM8.5 14.5c2.1-3.7 5.3-6.6 9.5-8.7-2 3.1-4.6 6-7.8 8.7H14v2h-5v-5h2v3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17 2C9 2 4 7 4 13c0 4.42 3.58 8 8 8 6 0 11-5 11-13V2h-6zM8.5 14.5c2.1-3.7 5.3-6.6 9.5-8.7-2 3.1-4.6 6-7.8 8.7H14v2h-5v-5h2v3z'/%3E%3C/svg%3E");
}

.ui-icon-seed {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 22c-.55 0-1-.45-1-1v-3.07c-3.39-.49-6-3.39-6-6.93 0-.55.45-1 1-1s1 .45 1 1c0 2.76 2.24 5 5 5s5-2.24 5-5c0-.55.45-1 1-1s1 .45 1 1c0 3.54-2.61 6.44-6 6.93V21c0 .55-.45 1-1 1zM8.5 9A3.5 3.5 0 0 1 5 5.5C5 3.57 6.57 2 8.5 2c1.75 0 4.08 1.09 4.44 5.83A.99.99 0 0 1 12 9H8.5zm7 0H12a.99.99 0 0 1-.94-1.17C11.42 3.09 13.75 2 15.5 2A3.5 3.5 0 0 1 19 5.5 3.5 3.5 0 0 1 15.5 9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 22c-.55 0-1-.45-1-1v-3.07c-3.39-.49-6-3.39-6-6.93 0-.55.45-1 1-1s1 .45 1 1c0 2.76 2.24 5 5 5s5-2.24 5-5c0-.55.45-1 1-1s1 .45 1 1c0 3.54-2.61 6.44-6 6.93V21c0 .55-.45 1-1 1zM8.5 9A3.5 3.5 0 0 1 5 5.5C5 3.57 6.57 2 8.5 2c1.75 0 4.08 1.09 4.44 5.83A.99.99 0 0 1 12 9H8.5zm7 0H12a.99.99 0 0 1-.94-1.17C11.42 3.09 13.75 2 15.5 2A3.5 3.5 0 0 1 19 5.5 3.5 3.5 0 0 1 15.5 9z'/%3E%3C/svg%3E");
}

.ui-icon-chart {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='20' x2='20' y2='20'/%3E%3Cline x1='7' y1='16' x2='7' y2='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='6'/%3E%3Cline x1='17' y1='16' x2='17' y2='12'/%3E%3Cpolyline points='5 12 10 7 14 10 19 4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='20' x2='20' y2='20'/%3E%3Cline x1='7' y1='16' x2='7' y2='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='6'/%3E%3Cline x1='17' y1='16' x2='17' y2='12'/%3E%3Cpolyline points='5 12 10 7 14 10 19 4'/%3E%3C/svg%3E");
}

.ui-icon-registry {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3Ccircle cx='12' cy='16' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3Ccircle cx='12' cy='16' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.ui-icon-settings {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.01A1.65 1.65 0 0 0 10.5 3.1V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h.01a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v.01a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.01A1.65 1.65 0 0 0 10.5 3.1V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h.01a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v.01a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

.ui-icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.ui-icon-clock {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E");
}

.ui-icon-check-circle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='8.5 12.5 11 15 16 10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='8.5 12.5 11 15 16 10'/%3E%3C/svg%3E");
}

.ui-icon-info {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='10.5' x2='12' y2='16'/%3E%3Ccircle cx='12' cy='7.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='10.5' x2='12' y2='16'/%3E%3Ccircle cx='12' cy='7.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.ui-icon-user-plus {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 20v-1c0-2.21-1.79-4-4-4H7c-2.21 0-4 1.79-4 4v1'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='18' y1='8' x2='18' y2='16'/%3E%3Cline x1='14' y1='12' x2='22' y2='12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 20v-1c0-2.21-1.79-4-4-4H7c-2.21 0-4 1.79-4 4v1'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='18' y1='8' x2='18' y2='16'/%3E%3Cline x1='14' y1='12' x2='22' y2='12'/%3E%3C/svg%3E");
}

.ui-icon-shield {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l7 3v6c0 5.25-3.44 9.91-7 11-3.56-1.09-7-5.75-7-11V5l7-3zm0 4.18L8 7.89v3.09c0 3.7 2.22 6.94 4 7.75 1.78-.81 4-4.05 4-7.75V7.89l-4-1.71z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l7 3v6c0 5.25-3.44 9.91-7 11-3.56-1.09-7-5.75-7-11V5l7-3zm0 4.18L8 7.89v3.09c0 3.7 2.22 6.94 4 7.75 1.78-.81 4-4.05 4-7.75V7.89l-4-1.71z'/%3E%3C/svg%3E");
}

.ui-icon-globe {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
}

.ui-icon-farmers {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='8' cy='5.5' r='2.5'/%3E%3Cpath d='M4 17v-1.5C4 13.57 5.79 12 8 12h2'/%3E%3Ccircle cx='16' cy='5.5' r='2.5'/%3E%3Cpath d='M14 12h2c2.21 0 4 1.57 4 3.5V17'/%3E%3Cpath d='M12 23c0 0 3.5-1.5 3.5-4.5S12 14 12 14s-3.5 1.5-3.5 4.5S12 23 12 23z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='8' cy='5.5' r='2.5'/%3E%3Cpath d='M4 17v-1.5C4 13.57 5.79 12 8 12h2'/%3E%3Ccircle cx='16' cy='5.5' r='2.5'/%3E%3Cpath d='M14 12h2c2.21 0 4 1.57 4 3.5V17'/%3E%3Cpath d='M12 23c0 0 3.5-1.5 3.5-4.5S12 14 12 14s-3.5 1.5-3.5 4.5S12 23 12 23z'/%3E%3C/svg%3E");
}

.ui-icon-crown {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 19h20M4 19 2 8l5.5 4L12 4l4.5 8L22 8l-2 11H4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 19h20M4 19 2 8l5.5 4L12 4l4.5 8L22 8l-2 11H4z'/%3E%3C/svg%3E");
}

.ui-icon-download {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.ui-icon-chevron-right {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.ui-icon-filter {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
}

.ui-icon-tag {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

.ui-icon-banknote {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
}

.ui-icon-refresh {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
}

.ui-icon-plus {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.ui-icon-save {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
}

.quick-link-card::after {
    content: "›";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8d81;
    font-size: 1.4rem;
    line-height: 1;
}

.quick-link-card:hover {
    border-color: #d9e8c1;
    box-shadow: var(--shadow-md);
}

.table-wrapper thead th {
    background: linear-gradient(180deg, #315f49 0%, #214a38 100%);
    color: rgba(255, 255, 255, 0.9);
}

tbody tr:hover {
    background: #f6fbf0;
}

.auth-page {
    background: linear-gradient(145deg, #1f533d 0%, #2d6c4f 55%, #7aac49 100%);
}

@media (max-width: 980px) {
    .dashboard-filters,
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .navbar-inner {
        min-height: 66px;
    }
    .navbar-brand {
        font-size: 1.55rem;
    }
    .home-hero-dashboard {
        min-height: 160px;
        padding: 1.35rem 1.4rem;
        background-position: 18% center;
    }
    .hero-content {
        margin-left: 0;
        max-width: 18rem;
    }
    .dashboard-scene-leaf {
        display: none;
    }
    .dashboard-filters,
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .filter-field label,
    .filter-field .input-gcap {
        margin-left: 0;
        width: 100%;
    }
    .filter-icon-shell {
        display: none;
    }
    .summary-card {
        gap: 0.85rem;
    }
}


/* -- Farmers Registry Workspace ------------------------------------- */

.registry-page {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.registry-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.55rem;
    min-height: 200px;
    padding: 1.6rem 2.2rem;
    overflow: hidden;
    border: 1px solid rgba(216, 213, 197, 0.88);
    border-radius: 26px;
    background-color: #eef1df;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 22px 48px rgba(59, 92, 68, 0.14);
}

.registry-hero-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.6rem;
    height: 5.6rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 25%, #f9fff0, #dfedcb);
    color: #3c8a45;
    box-shadow: inset 0 0 0 1px rgba(98, 146, 76, 0.16), 0 14px 32px rgba(58, 91, 54, 0.11);
}

.registry-hero-icon .ui-icon {
    width: 2.35rem;
    height: 2.35rem;
}

.registry-hero::before,
.registry-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.registry-hero::before {
    inset: auto -4rem -4.5rem 34%;
    height: 8.5rem;
    background: radial-gradient(ellipse at center, rgba(250, 208, 112, 0.36), transparent 64%);
}

.registry-hero::after {
    right: 2.4rem;
    bottom: 1.1rem;
    width: 7.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(2px);
}

.registry-hero-figure {
    position: absolute;
    left: 2.15rem;
    bottom: 0;
    width: 5.2rem;
    height: 6.6rem;
    opacity: 0.92;
}

.registry-hero-figure::before {
    content: "";
    position: absolute;
    left: 1.8rem;
    top: 0.5rem;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #173a2d;
    box-shadow: 0 0.5rem 0 -0.12rem rgba(255, 255, 255, 0.22);
}

.registry-hero-figure::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    bottom: -0.15rem;
    width: 2.65rem;
    height: 4.8rem;
    border-radius: 1.45rem 1.45rem 0.55rem 0.55rem;
    background: linear-gradient(180deg, #245b42 0%, #173a2d 100%);
    box-shadow: 1.9rem 0.95rem 0 -0.35rem rgba(23, 58, 45, 0.72);
}

.registry-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.registry-hero h1 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 850;
}

.registry-hero p {
    max-width: 33rem;
    margin: 0.7rem 0 0;
    color: #415f53;
    font-size: 1.04rem;
    line-height: 1.45;
}

.registry-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.registry-metric-card {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    min-height: 126px;
    padding: 1.25rem;
    border: 1px solid rgba(226, 220, 205, 0.9);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 250, 244, 0.96));
    box-shadow: 0 16px 36px rgba(58, 84, 63, 0.08);
}

.registry-metric-icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #fbfff4 0%, #e5f1d7 100%);
    color: #4f8f57;
    box-shadow: inset 0 0 0 1px rgba(126, 171, 87, 0.18);
}

.registry-metric-card strong {
    display: block;
    color: var(--gcap-primary-dark);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.registry-metric-card span:not(.registry-metric-icon) {
    display: block;
    margin-top: 0.4rem;
    color: #314f42;
    font-weight: 800;
}

.registry-metric-card small {
    display: block;
    margin-top: 0.28rem;
    color: #77867c;
    font-size: 0.78rem;
}

.registry-filter-card,
.registry-table-card {
    border: 1px solid rgba(226, 220, 205, 0.9);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 16px 42px rgba(58, 84, 63, 0.09);
}

.registry-filter-card {
    padding: 1.1rem;
}

.registry-filter-grid {
    display: grid;
    grid-template-columns: minmax(15rem, 1.65fr) repeat(4, minmax(9.25rem, 1fr)) auto;
    gap: 0.78rem;
    align-items: center;
}

.registry-field {
    position: relative;
}

.registry-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.registry-field input,
.registry-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e4ddce;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #2e493d;
    font-weight: 600;
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.registry-field-search input {
    padding-left: 2.6rem;
}

.registry-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f9478;
}

.registry-field-icon .ui-icon {
    width: 1rem;
    height: 1rem;
}

.registry-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
}

.registry-filter-actions .btn-gcap-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 15px;
    min-height: 46px;
    padding-inline: 1.45rem;
}

.registry-filter-actions .btn-gcap-primary .ui-icon-shell {
    color: inherit;
}

.registry-filter-actions .btn-gcap-primary .ui-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.registry-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #63766b;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.registry-reset-link .ui-icon-shell {
    color: inherit;
}

.registry-reset-link .ui-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.registry-reset-link:hover {
    color: var(--gcap-primary-dark);
    text-decoration: underline;
}

.registry-table-card {
    padding: 1rem;
}

.registry-table-head,
.registry-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.registry-table-head {
    padding: 0.55rem 0.4rem 1rem;
}

.registry-table-head h2 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.registry-table-head p {
    margin: 0.3rem 0 0;
    color: #75857b;
    font-size: 0.88rem;
}

.registry-export-btn,
.registry-view-btn,
.registry-pagination a,
.registry-kebab {
    border: 1px solid #dfe7d7;
    border-radius: 999px;
    background: rgba(248, 252, 242, 0.92);
    color: var(--gcap-primary-dark);
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.registry-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.62rem 1rem;
    white-space: nowrap;
}

.registry-export-btn:hover,
.registry-view-btn:hover,
.registry-pagination a:hover,
.registry-kebab:hover {
    border-color: #bcd6a2;
    background: #f0f7e8;
    box-shadow: 0 10px 22px rgba(45, 108, 79, 0.12);
    transform: translateY(-1px);
}

.registry-kebab:disabled,
.registry-kebab:disabled:hover {
    border-color: #dfe7d7;
    background: rgba(248, 252, 242, 0.92);
    box-shadow: none;
    transform: none;
    opacity: 0.5;
    cursor: default;
}

.registry-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(226, 220, 205, 0.78);
    border-radius: 20px;
    background: #fffefa;
}

.registry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.registry-table thead th,
.registry-table-wrapper thead th {
    background: #f5f3ea;
    color: #6b7c70;
    border-bottom: 1px solid #e6dfd1;
    font-size: 0.69rem;
    letter-spacing: 0.11em;
}

.registry-table tbody tr {
    border-bottom: none;
}

.registry-table tbody td {
    padding: 1rem 0.95rem;
    border-bottom: 1px solid #eee8dc;
    color: #3b5147;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registry-table tbody tr:hover {
    background: #f9fcf3;
}

.farmer-identity {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    overflow: hidden;
}

.farmer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #e4f2d6, #f8f5e8);
    color: #245b42;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(116, 167, 79, 0.25);
    flex-shrink: 0;
}

.farmer-avatar-photo {
    object-fit: cover;
    background: #e4f2d6;
}

.farmer-identity strong,
.farmer-identity small {
    display: block;
}

.farmer-identity strong {
    color: #203d31;
    font-size: 0.94rem;
}

.farmer-identity small {
    margin-top: 0.2rem;
    color: #789084;
    font-size: 0.76rem;
    font-weight: 700;
}

.verification-dot {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.34rem;
    border-radius: 999px;
    background: #67a84b;
    box-shadow: 0 0 0 3px rgba(103, 168, 75, 0.14);
    vertical-align: 0.05rem;
}

.identity-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #39544a;
    font-size: 0.82rem;
}

.registry-chip {
    display: inline-flex;
    align-items: center;
    max-width: 11rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: #edf7e8;
    color: #2f6d47;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.registry-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.registry-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.78rem;
    font-size: 0.78rem;
}

.registry-export-btn .ui-icon,
.registry-view-btn .ui-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.registry-export-btn .ui-icon-shell,
.registry-view-btn .ui-icon-shell {
    color: inherit;
}

.registry-date-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.registry-date-cell .ui-icon-shell {
    color: #7f9478;
}

.registry-date-cell .ui-icon {
    width: 0.88rem;
    height: 0.88rem;
}

.registry-kebab {
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
    cursor: pointer;
}

.registry-empty-state {
    display: grid;
    gap: 0.3rem;
    padding: 2.6rem 1rem;
    text-align: center;
}

.registry-empty-state strong {
    color: var(--gcap-primary-dark);
    font-size: 1.05rem;
}

.registry-empty-state span {
    color: #76877d;
}

.registry-table-footer {
    padding: 1rem 0.35rem 0.2rem;
    flex-wrap: wrap;
}

.registry-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
}

.registry-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    min-height: 2.2rem;
    padding: 0 0.8rem;
    font-size: 0.78rem;
}

.registry-pagination a.is-active {
    background: var(--gcap-primary-dark);
    border-color: var(--gcap-primary-dark);
    color: #fff;
}

.registry-pagination a.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

@media (max-width: 1200px) {
    .registry-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .registry-field-search {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .registry-metrics,
    .registry-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .registry-field-search {
        grid-column: span 2;
    }
    .registry-hero-copy {
        padding-left: 2rem;
    }
    .registry-hero-figure {
        opacity: 0.18;
    }
}

@media (max-width: 680px) {
    .registry-metrics,
    .registry-filter-grid {
        grid-template-columns: 1fr;
    }
    .registry-field-search {
        grid-column: auto;
    }
    .registry-hero {
        min-height: 180px;
    }
    .registry-hero-copy {
        padding: 1.5rem;
    }
    .registry-table,
    .registry-table thead,
    .registry-table tbody,
    .registry-table th,
    .registry-table td,
    .registry-table tr {
        display: block;
        min-width: 0;
    }
    .registry-table thead {
        display: none;
    }
    .registry-table tbody tr {
        margin: 0.85rem;
        border: 1px solid #ebe4d8;
        border-radius: 18px;
        background: #fffefa;
        overflow: hidden;
    }
    .registry-table tbody td {
        display: grid;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: 1rem;
        padding: 0.78rem 0.95rem;
    }
    .registry-table tbody td::before {
        content: attr(data-label);
        color: #7b8b81;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .registry-table tbody td:first-child {
        grid-template-columns: 1fr;
    }
    .registry-table tbody td:first-child::before {
        display: none;
    }
}


/* -- Registration Fees Workspace ------------------------------------ */

.fee-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fee-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.55rem;
    min-height: 200px;
    overflow: hidden;
    border: 1px solid rgba(216, 213, 197, 0.88);
    border-radius: 26px;
    background-color: #edf3e3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 22px 48px rgba(59, 92, 68, 0.14);
    padding: 1.6rem 2.2rem;
}

.fee-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 79% 72%, rgba(233, 180, 56, 0.26), transparent 13rem), linear-gradient(90deg, transparent 0%, transparent 52%, rgba(255, 252, 238, 0.26) 100%);
    pointer-events: none;
}

.fee-hero-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.6rem;
    height: 5.6rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 25%, #f9fff0, #dfedcb);
    color: #3c8a45;
    box-shadow: inset 0 0 0 1px rgba(98, 146, 76, 0.16), 0 14px 32px rgba(58, 91, 54, 0.11);
}

.fee-hero-icon .ui-icon {
    width: 2.35rem;
    height: 2.35rem;
}

.fee-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.fee-eyebrow {
    display: inline-flex;
    margin-bottom: 0.34rem;
    color: #4f755f;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.fee-hero h1 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: clamp(2.15rem, 3.5vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.fee-hero p {
    max-width: 30rem;
    margin: 0.7rem 0 0;
    color: #415f53;
    font-size: 1.05rem;
    line-height: 1.45;
}

.fee-alert {
    margin-bottom: 0;
}

.fee-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.fee-metric-card {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-height: 126px;
    padding: 1.35rem;
    border: 1px solid rgba(226, 220, 205, 0.9);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 244, 0.96));
    box-shadow: 0 16px 36px rgba(58, 84, 63, 0.08);
}

.fee-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #fbfff4 0%, #e6f1d8 100%);
    color: #438d49;
    box-shadow: inset 0 0 0 1px rgba(126, 171, 87, 0.18);
}

.fee-metric-icon .ui-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.fee-metric-card span:not(.fee-metric-icon),
.fee-metric-card small,
.fee-metric-card strong {
    display: block;
}

.fee-metric-card span:not(.fee-metric-icon) {
    color: #445d51;
    font-size: 0.96rem;
    font-weight: 800;
}

.fee-metric-card strong {
    margin-top: 0.46rem;
    color: var(--gcap-primary-dark);
    font-size: 2.05rem;
    line-height: 1;
    letter-spacing: -0.045em;
}

.fee-metric-card small {
    margin-top: 0.42rem;
    color: #76877d;
    font-size: 0.86rem;
    font-weight: 650;
}

.fee-metric-of {
    font-size: 1rem;
    font-weight: 650;
    color: #8a9a8f;
    letter-spacing: 0;
    margin-top: 0;
}

.fee-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.6rem;
}

.fee-section-head h2 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}

.fee-section-head p {
    margin: 0.45rem 0 0;
    color: #65766c;
    font-size: 0.98rem;
}

.fee-page-actions {
    display: inline-flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.fee-secondary-action,
.fee-primary-action,
.fee-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 850;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.fee-secondary-action .ui-icon-shell,
.fee-primary-action .ui-icon-shell,
.fee-save-button .ui-icon-shell {
    color: inherit;
}

.fee-secondary-action .ui-icon,
.fee-primary-action .ui-icon,
.fee-save-button .ui-icon {
    width: 1rem;
    height: 1rem;
}

.fee-secondary-action {
    padding: 0 1.05rem;
    border: 1px solid #ded8ca;
    background: rgba(255, 255, 255, 0.82);
    color: #2f5142;
}

.fee-primary-action,
.fee-save-button {
    border: 1px solid rgba(21, 93, 58, 0.7);
    background: linear-gradient(180deg, #22734c, #125a3a);
    color: #fff;
    box-shadow: 0 12px 26px rgba(18, 90, 58, 0.22);
}

.fee-primary-action {
    padding: 0 1.35rem;
}

.fee-primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.fee-save-button {
    width: 100%;
    padding: 0 1.1rem;
}

.fee-secondary-action:hover,
.fee-save-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(45, 108, 79, 0.18);
}

.fee-country-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fee-country-card {
    display: grid;
    grid-template-columns: minmax(15rem, 1.08fr) minmax(16rem, 1.5fr) minmax(9rem, 0.72fr) minmax(12rem, 0.95fr) minmax(11rem, 0.75fr);
    gap: 1.4rem;
    align-items: center;
    padding: 1.35rem 1.55rem;
    border: 1px solid rgba(226, 220, 205, 0.9);
    border-radius: 23px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 244, 0.98));
    box-shadow: 0 15px 40px rgba(58, 84, 63, 0.085);
}

.fee-country-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.fee-flag {
    position: relative;
    display: inline-flex;
    width: 3.7rem;
    height: 3.7rem;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 22px rgba(40, 76, 52, 0.12);
}

.fee-flag-ghana {
    background: linear-gradient(180deg, #e3222b 0 33.33%, #f7d13d 33.33% 66.66%, #188743 66.66% 100%);
}

.fee-flag-ghana::after {
    content: "★";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 1.1rem;
}

.fee-flag-nigeria {
    background: linear-gradient(90deg, #0d9b5a 0 33.33%, #fff 33.33% 66.66%, #0d9b5a 66.66% 100%);
}

.fee-flag-generic {
    background: linear-gradient(135deg, #e8f3dc, #2d6c4f);
}

.fee-country-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.fee-country-title-row h3 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.fee-status-badge,
.fee-saved-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #3e8b48;
    font-weight: 850;
}

.fee-status-badge {
    padding: 0.25rem 0.65rem;
    background: #e5f2d8;
    font-size: 0.78rem;
}

.fee-country-identity p {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin: 0.7rem 0 0;
    color: #62786d;
    font-weight: 750;
}

.fee-country-region-icon .ui-icon {
    width: 0.82rem;
    height: 0.82rem;
}

.fee-country-control label {
    display: block;
    margin-bottom: 0.55rem;
    color: #2f5142;
    font-size: 0.86rem;
    font-weight: 900;
}

.fee-country-control small {
    display: block;
    margin-top: 0.55rem;
    color: #76877d;
    font-size: 0.84rem;
    font-weight: 650;
}

.fee-money-input {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e2dccd;
    border-radius: 15px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fee-money-input:focus-within {
    border-color: #8abf5b;
    box-shadow: 0 0 0 4px rgba(138, 191, 91, 0.16);
}

.fee-money-input span,
.fee-currency-chip {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    background: #eff6e5;
    color: #214a38;
    font-weight: 900;
}

.fee-money-input span {
    justify-content: center;
    border-right: 1px solid #e2dccd;
}

.fee-money-input input {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #263f35;
    font-size: 1rem;
    font-weight: 750;
}

.fee-money-input input:focus {
    box-shadow: none;
}

.fee-currency-chip {
    width: 100%;
    justify-content: flex-start;
    padding: 0 1.1rem;
    border-radius: 14px;
}

.fee-metadata-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-height: 5.2rem;
    padding: 1rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f1f6ea, #f8f5e9);
    color: #53675d;
}

.fee-metadata-icon {
    display: grid !important;
    place-items: center;
    width: 1.8rem;
    min-width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 1.8rem;
    border-radius: 999px;
    color: #60766b;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(130, 153, 141, 0.26);
}

.fee-metadata-icon .ui-icon {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
}

.fee-metadata-card strong,
.fee-metadata-card span,
.fee-metadata-card small {
    display: block;
}

.fee-metadata-card strong {
    color: #4d6359;
}

.fee-metadata-card small {
    margin-top: 0.15rem;
}

.fee-save-area {
    display: grid;
    gap: 0.65rem;
}

.fee-saved-state {
    justify-content: center;
    gap: 0.35rem;
    color: #4f9b52;
    font-size: 0.84rem;
}

.fee-saved-icon .ui-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.fee-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 0.65rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid #dceacb;
    border-radius: 20px;
    background: linear-gradient(135deg, #edf8ea, #faf7e8);
    color: #315545;
}

.fee-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #4d9b50;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(77, 155, 80, 0.22);
}

.fee-note-icon .ui-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.fee-note strong {
    display: block;
    color: var(--gcap-primary-dark);
    font-size: 1rem;
    margin-bottom: 0.24rem;
}

.fee-note p {
    margin: 0;
    color: #385c4b;
}

@media (max-width: 1200px) {
    .fee-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .fee-country-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fee-hero {
        align-items: flex-start;
        padding: 1.4rem;
    }
    .fee-hero-icon {
        width: 4.25rem;
        height: 4.25rem;
    }
    .fee-metrics,
    .fee-country-card {
        grid-template-columns: 1fr;
    }
    .fee-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .fee-page-actions,
    .fee-secondary-action,
    .fee-primary-action {
        width: 100%;
    }
}


/* -- Admin Users Workspace ------------------------------------------ */

.users-page {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.users-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.55rem;
    min-height: 200px;
    overflow: hidden;
    border: 1px solid rgba(216, 213, 197, 0.92);
    border-radius: 26px;
    background-color: #f7f4e8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 22px 48px rgba(59, 92, 68, 0.12);
    padding: 1.6rem 2.2rem;
}

.users-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 26% 24%, rgba(222, 237, 199, 0.6), transparent 10rem), linear-gradient(90deg, rgba(255, 252, 240, 0.1), transparent 42%, rgba(255, 252, 240, 0.2) 100%);
    pointer-events: none;
}

.users-hero-icon,
.users-hero-copy {
    position: relative;
    z-index: 1;
}

.users-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.6rem;
    height: 6.6rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 20%, #f8fff0, #e2efcc);
    box-shadow: inset 0 0 0 1px rgba(128, 170, 94, 0.12);
}

.users-hero-icon {
    color: #72a44c;
}

.users-hero-icon .ui-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.users-hero-copy {
    max-width: 34rem;
}

.users-eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #698067;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.users-hero h1 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: clamp(2.15rem, 3.4vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.users-hero p {
    max-width: 31rem;
    margin: 0.75rem 0 0;
    color: #415f53;
    font-size: 1.04rem;
    line-height: 1.45;
}

.users-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.users-metric-card,
.users-list-card,
.users-side-card {
    border: 1px solid rgba(226, 220, 205, 0.94);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 16px 42px rgba(58, 84, 63, 0.09);
}

.users-metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: 1.3rem;
}

.users-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #fbfff4 0%, #e4efd4 100%);
    color: #6faa48;
    box-shadow: inset 0 0 0 1px rgba(126, 171, 87, 0.16);
}

.users-metric-icon .ui-icon {
    width: 1.38rem;
    height: 1.38rem;
}

.users-metric-card span:not(.users-metric-icon),
.users-metric-card small,
.users-metric-card strong {
    display: block;
}

.users-metric-card span:not(.users-metric-icon) {
    color: #465f54;
    font-size: 0.98rem;
    font-weight: 800;
}

.users-metric-card strong {
    margin-top: 0.42rem;
    color: var(--gcap-primary-dark);
    font-size: 2.08rem;
    line-height: 1;
    letter-spacing: -0.045em;
}

.users-metric-card small {
    margin-top: 0.36rem;
    color: #77867c;
    font-size: 0.86rem;
}

.users-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.85fr);
    gap: 1.1rem;
    align-items: start;
}

.users-list-card,
.users-side-card {
    padding: 1.45rem;
}

.users-section-head,
.users-side-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.users-section-head {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.users-section-head h2,
.users-side-head h2 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.users-section-head p,
.users-side-head p {
    margin: 0.35rem 0 0;
    color: #738278;
    font-size: 0.9rem;
    line-height: 1.45;
}

.users-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(9rem, 0.75fr)) auto;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.users-search-field {
    position: relative;
}

.users-search-field .input-gcap {
    width: 100%;
    min-height: 48px;
    padding-left: 2.8rem;
}

.users-search-icon {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
}

.users-search-icon .ui-icon {
    width: 1rem;
    height: 1rem;
    color: #93a38f;
}

.users-filter-select,
.users-filter-button,
.users-form input,
.users-form select {
    min-height: 48px;
    border-radius: 15px;
}

.users-filter-select,
.users-form input,
.users-form select {
    width: 100%;
    border: 1px solid #e3ddce;
    background: rgba(255, 255, 255, 0.96);
    color: #274438;
    padding: 0.72rem 0.92rem;
    font: inherit;
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.users-filter-select:focus,
.users-form input:focus,
.users-form select:focus {
    outline: none;
    border-color: #8abf5b;
    box-shadow: 0 0 0 4px rgba(138, 191, 91, 0.16);
}

.users-filter-button,
.users-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(21, 93, 58, 0.72);
    background: linear-gradient(180deg, #22734c, #125a3a);
    color: #fff;
    font-family: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(18, 90, 58, 0.2);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.users-filter-button {
    padding: 0 1.25rem;
}

.users-filter-button:hover,
.users-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(18, 90, 58, 0.24);
}

.users-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(226, 220, 205, 0.84);
    border-radius: 20px;
    background: #fffefa;
}

.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.users-table thead th {
    padding: 1rem 1rem 0.92rem;
    border-bottom: 1px solid #e8e1d5;
    background: #f5f2e8;
    color: #61746a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: left;
}

.users-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #efe9dc;
    color: #355045;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-table tbody tr:hover {
    background: #fbfdf7;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    overflow: hidden;
}

.users-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(145deg, #e3f0d2, #f9f7ec);
    color: #315846;
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(116, 167, 79, 0.24);
}

.users-identity strong,
.users-identity small {
    display: block;
}

.users-identity strong {
    color: #203d31;
    font-size: 0.95rem;
}

.users-identity small {
    margin-top: 0.2rem;
    color: #799082;
    font-size: 0.78rem;
    font-weight: 700;
}

.users-username {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #3c584d;
    font-size: 0.84rem;
}

.users-role-badge,
.users-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 850;
    white-space: nowrap;
}

.users-role-badge {
    padding: 0.38rem 0.78rem;
}

.users-role-badge.is-platform {
    background: #e7f2e0;
    color: #2f6e48;
}

.users-role-badge.is-group {
    background: #f0f4c9;
    color: #5f7d31;
}

.users-status-badge {
    gap: 0.42rem;
    padding: 0.38rem 0.8rem;
}

.users-status-badge.is-active {
    background: #edf8ea;
    color: #2f7b47;
}

.users-status-badge.is-pending {
    background: #fef5cf;
    color: #8a6116;
}

.users-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.users-action-button {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dfdfd4;
    border-radius: 999px;
    background: #fff;
    color: #365346;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.users-action-button:hover {
    border-color: #bad69f;
    background: #f3f9eb;
    transform: translateY(-1px);
}

.users-empty-state {
    display: grid;
    gap: 0.35rem;
    padding: 2.6rem 1rem;
    text-align: center;
}

.users-empty-state strong {
    color: var(--gcap-primary-dark);
    font-size: 1.05rem;
}

.users-empty-state span {
    color: #76877d;
}

.users-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.35rem 0;
    flex-wrap: wrap;
}

.users-table-meta {
    color: #66766d;
    font-size: 0.88rem;
    font-weight: 650;
}

.users-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.users-page-button {
    min-width: 2.55rem;
    min-height: 2.55rem;
    padding: 0 0.9rem;
    border: 1px solid #e2dfd4;
    border-radius: 12px;
    background: #fff;
    color: #2e4c3f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.users-page-button:hover:not(:disabled) {
    border-color: #bad69f;
    background: #f4faec;
    transform: translateY(-1px);
}

.users-page-button.is-active {
    border-color: #9ac276;
    background: #eef6e3;
}

.users-page-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.users-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 25%, #fbfff4 0%, #e4efd4 100%);
    color: #6faa48;
    box-shadow: inset 0 0 0 1px rgba(126, 171, 87, 0.16);
}

.users-side-icon .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.users-note-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 1.2rem;
    padding: 1rem 1.05rem;
    border: 1px solid #dceacb;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef8eb, #faf7e9);
    color: #365546;
}

.users-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #74a748;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(116, 167, 72, 0.22);
}

.users-note-icon .ui-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.users-note-card p {
    margin: 0;
    line-height: 1.45;
}

.users-form {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.3rem;
}

.users-form-row label {
    display: block;
    margin-bottom: 0.48rem;
    color: #2f5042;
    font-size: 0.86rem;
    font-weight: 850;
}

.users-submit-button {
    width: 100%;
    min-height: 54px;
    border-radius: 15px;
}

.users-scope-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.3rem;
}

.users-scope-item {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f8ec, #fbf9ef);
    color: #436358;
}

.users-scope-item strong {
    color: var(--gcap-primary-dark);
    font-size: 0.95rem;
}

.users-scope-item span {
    color: #6c7e74;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .users-workspace {
        grid-template-columns: 1fr;
    }
    .users-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .users-toolbar {
        grid-template-columns: 1fr 1fr;
    }
    .users-search-field {
        grid-column: span 2;
    }
}

@media (max-width: 680px) {
    .users-hero {
        align-items: flex-start;
        padding: 1.4rem;
    }
    .users-hero-icon {
        width: 4.8rem;
        height: 4.8rem;
    }
    .users-metrics,
    .users-toolbar {
        grid-template-columns: 1fr;
    }
    .users-search-field {
        grid-column: auto;
    }
    .users-filter-button {
        width: 100%;
    }
    .users-table,
    .users-table thead,
    .users-table tbody,
    .users-table th,
    .users-table td,
    .users-table tr {
        display: block;
        min-width: 0;
    }
    .users-table thead {
        display: none;
    }
    .users-table tbody tr {
        margin: 0.85rem;
        border: 1px solid #ebe4d8;
        border-radius: 18px;
        background: #fffefa;
        overflow: hidden;
    }
    .users-table tbody td {
        display: grid;
        grid-template-columns: 8rem minmax(0, 1fr);
        gap: 0.85rem;
        padding: 0.8rem 0.95rem;
    }
    .users-table tbody td::before {
        content: attr(data-label);
        color: #7b8b81;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .users-table tbody td:first-child {
        grid-template-columns: 1fr;
    }
    .users-table tbody td:first-child::before {
        display: none;
    }
    .users-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* -- Admin user detail and account actions --------------------------- */
.users-group-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: #e6eef9;
    color: #3461a4;
    font-size: 0.79rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.users-status-badge.is-disabled {
    background: #f7e3df;
    color: #a34032;
}

.users-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.users-detail-header {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 0.4rem 0 0.2rem;
}

.users-detail-header h1 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    letter-spacing: -0.045em;
}

.users-detail-header p {
    margin: 0.45rem 0 0;
    color: #66786e;
    line-height: 1.45;
}

.users-back-link {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 0.25rem;
    color: #1e6544;
    font-weight: 850;
    text-decoration: none;
}

.users-back-link:hover {
    text-decoration: underline;
}

.users-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: 1.1rem;
    align-items: start;
}

.users-detail-form {
    margin-top: 0;
}

.users-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.users-detail-save {
    width: auto;
    min-width: 11rem;
    margin-top: 1.1rem;
    padding-inline: 1.45rem;
}

.users-detail-summary {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.85rem 1rem;
    margin: 1.25rem 0;
}

.users-detail-summary dt {
    color: #6f8076;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.users-detail-summary dd {
    min-width: 0;
    margin: 0;
    color: #26483a;
    font-weight: 750;
}

.users-actions-card form + form {
    margin-top: 0.8rem;
}

.users-warning-button,
.users-danger-button {
    width: 100%;
    min-height: 52px;
    border-radius: 15px;
    border: 0;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.users-warning-button {
    background: #fff0c8;
    color: #8a6116;
    box-shadow: 0 10px 22px rgba(138, 97, 22, 0.12);
}

.users-danger-button {
    background: #b84032;
    color: #fff;
    box-shadow: 0 10px 22px rgba(184, 64, 50, 0.18);
}

.users-warning-button:hover:not(:disabled),
.users-danger-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.users-warning-button:disabled,
.users-danger-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .users-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .users-detail-header {
        flex-direction: column;
    }
    .users-form-grid,
    .users-detail-summary {
        grid-template-columns: 1fr;
    }
}


/* -- Admin Users full-width dashboard refinements -------------------- */
.users-page {
    gap: 1.45rem;
}

.users-list-card {
    width: 100%;
}

.users-add-card {
    width: 100%;
}

.users-toolbar {
    grid-template-columns: minmax(18rem, 1.3fr) repeat(3, minmax(10rem, 0.9fr)) minmax(8rem, 0.45fr);
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.users-toolbar-field {
    min-width: 0;
}

.users-filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.users-search-field {
    display: block;
}

.users-filter-select,
.users-filter-button,
.users-search-field .input-gcap {
    min-height: 48px;
    border-radius: 14px;
}

.users-table-wrap {
    overflow-x: auto;
}

.users-table {
    min-width: 940px;
    table-layout: auto;
}

.users-table thead th:nth-child(1) { width: 32%; }
.users-table thead th:nth-child(2) { width: 16%; }
.users-table thead th:nth-child(3) { width: 24%; }
.users-table thead th:nth-child(4) { width: 18%; }
.users-table thead th:nth-child(5) { width: 10%; }

.users-table tbody td {
    padding: 1.14rem 1.05rem;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.users-identity {
    min-width: 15rem;
    overflow: visible;
}

.users-identity > span:last-child {
    min-width: 0;
}

.users-identity strong,
.users-identity small {
    overflow-wrap: anywhere;
}

.users-group-pill {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.users-side-head {
    align-items: center;
}

.users-add-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.31fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
    margin-top: 1rem;
}

.users-form .users-note-card {
    grid-column: 1 / -1;
    margin-top: 0;
}

.users-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(130px, 0.34fr);
    gap: 1rem 1.35rem;
}

.users-submit-button {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: stretch;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 100%;
    margin-top: 0;
    padding: 1.3rem 1rem;
    border-radius: 18px;
    font-size: 1.02rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.users-submit-button .ui-icon-shell {
    width: 2.35rem;
    height: 2.35rem;
    color: #b6d34e;
    background: transparent;
}

.users-submit-button .ui-icon {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 980px) {
    .users-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .users-toolbar-field-search,
    .users-filter-button {
        grid-column: 1 / -1;
    }
    .users-add-layout {
        grid-template-columns: 1fr;
    }
    .users-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .users-submit-button {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 56px;
        flex-direction: row;
    }
}

@media (max-width: 680px) {
    .users-toolbar,
    .users-form,
    .users-add-layout {
        grid-template-columns: 1fr;
    }
    .users-toolbar-field-search,
    .users-filter-button,
    .users-submit-button {
        grid-column: auto;
    }
    .users-submit-button {
        grid-row: auto;
        min-height: 56px;
        flex-direction: row;
    }
    .users-table {
        min-width: 0;
    }
    .users-identity {
        min-width: 0;
    }
}

/* -- Farmer group / association management -------------------------- */
.groups-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.groups-list-card {
    overflow: hidden;
}

.groups-list {
    display: grid;
    gap: 1rem;
}

.groups-list-item {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5dfd2;
    border-radius: 18px;
    background: #fffdf7;
}

.groups-list-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.groups-list-main h2 {
    margin: 0;
    color: var(--gcap-primary-dark);
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.groups-list-main p {
    margin: 0.35rem 0 0;
    color: #718177;
    font-size: 0.88rem;
}

.groups-status-pill {
    display: inline-flex;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
}

.groups-status-pill.is-active {
    color: #2f7b47;
    background: #edf8ea;
}

.groups-status-pill.is-inactive {
    color: #8a6116;
    background: #fef5cf;
}

.groups-admin-tools {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
    align-items: start;
}

.groups-assign-form label,
.groups-assigned-admins strong {
    display: block;
    margin-bottom: 0.48rem;
    color: #2f5042;
    font-size: 0.86rem;
    font-weight: 850;
}

.groups-assign-form > div {
    display: flex;
    gap: 0.55rem;
}

.groups-assign-form select {
    min-width: 0;
    flex: 1;
    min-height: 42px;
    border: 1px solid #e3ddce;
    border-radius: 12px;
    background: #fff;
    color: #274438;
    padding: 0.55rem 0.75rem;
    font: inherit;
}

.groups-assigned-admins {
    display: grid;
    gap: 0.5rem;
}

.groups-admin-chip-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #f4f8ec;
}

.groups-admin-chip-form span {
    min-width: 0;
    overflow: hidden;
    color: #315846;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.groups-admin-chip-form button {
    border: 0;
    border-radius: 999px;
    background: #f7e3df;
    color: #a34032;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    padding: 0.35rem 0.65rem;
}

@media (max-width: 900px) {
    .groups-admin-layout,
    .groups-admin-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .groups-list-main,
    .groups-assign-form > div,
    .groups-admin-chip-form {
        align-items: stretch;
        flex-direction: column;
    }
}

.dashboard-group-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #cfe4bd;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef8eb, #fffdf6);
    color: #1d5f3f;
    font-weight: 850;
    text-decoration: none;
}

.dashboard-group-cta:hover {
    border-color: #9ac276;
    color: #174d34;
    text-decoration: none;
}

.dashboard-group-cta .ui-icon-shell {
    width: 2rem;
    height: 2rem;
    color: #5f9838;
    background: rgba(255, 255, 255, 0.7);
}
/* -- Admin console shell and management dashboard refinements -------- */


.dashboard-scene,
.registry-page {
    max-width: none;
    margin: 0;
}

.home-hero-dashboard,
.registry-hero {
    min-height: 132px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(58, 84, 63, 0.11);
}

.dashboard-hero-icon,
.registry-hero-icon {
    width: 5.2rem;
    height: 5.2rem;
}

.hero-title,
.registry-hero h1 {
    font-size: clamp(2rem, 3vw, 2.85rem);
}

.dashboard-shell,
.registry-page {
    display: grid;
    gap: 1rem;
}

.dashboard-toolbar {
    padding: 1rem;
}

.dashboard-filters-managerial {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(10.5rem, 1fr)) auto;
    align-items: end;
    gap: 1rem;
}

.dashboard-filter-actions,
.registry-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.dashboard-filter-actions .btn-gcap-primary,
.dashboard-filter-actions .btn-gcap-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 10px;
    white-space: nowrap;
}

.dashboard-kpi-grid,
.registry-metrics-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-card {
    min-height: 112px;
    align-items: center;
}

.summary-copy small {
    display: block;
    margin-top: 0.42rem;
    color: #138247;
    font-size: 0.78rem;
    font-weight: 750;
}

.dashboard-management-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.98fr);
}

.dashboard-side-stack {
    display: grid;
    gap: 1rem;
}

.dashboard-chart-card {
    padding: 1.25rem;
}

.dashboard-section-head h2 .ui-icon-shell,
.dashboard-title .ui-icon-shell,
.crop-insight-strip .ui-icon-shell {
    color: var(--gcap-primary-dark);
}

.distribution-panel {
    align-self: stretch;
}

.distribution-table {
    width: 100%;
    border: 1px solid #e8e2d6;
    border-radius: 13px;
    overflow: hidden;
    background: #fffefa;
}

.distribution-header,
.distribution-row {
    display: grid;
    grid-template-columns: 1.55fr 0.9fr 0.75fr 0.65fr;
    align-items: center;
    gap: 0.7rem;
}

.distribution-header {
    padding: 0.75rem 0.9rem;
    background: #f7f4eb;
    color: #68796e;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.distribution-row {
    padding: 0.72rem 0.9rem;
    border-top: 1px solid #eee8dc;
    color: #314b40;
    font-size: 0.86rem;
}

.distribution-row > span:first-child {
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.distribution-swatch {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.crop-insight-strip,
.linked-strip {
    margin-top: 1.05rem;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 13px;
    background: linear-gradient(90deg, #f2f8ec, #fbfaf2);
}

.crop-insight-strip > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.8rem;
    align-items: center;
}

.crop-insight-strip small {
    color: #6b7d72;
}

.crop-insight-strip strong {
    grid-column: 2;
    color: var(--gcap-primary-dark);
}

.quick-link-card {
    min-height: 60px;
    padding: 0.85rem 2.4rem 0.85rem 0.85rem;
}

.quick-link-copy span {
    font-size: 0.76rem;
}

.quality-list,
.coverage-list {
    display: grid;
    gap: 0.7rem;
}

.quality-row {
    display: grid;
    grid-template-columns: 2.6rem 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 54px;
    padding: 0.7rem 0.85rem;
    border: 1px solid #eee5d7;
    border-radius: 11px;
    background: #fffefa;
    color: #2b473a;
    text-decoration: none;
}

.quality-row strong {
    color: var(--gcap-primary-dark);
    font-size: 1.25rem;
}

.quality-row.is-warning strong::before {
    content: '!';
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.55rem;
    border-radius: 999px;
    background: #df7c18;
    color: #fff;
    font-size: 0.75rem;
}

.quality-row.is-good strong::before {
    content: '✓';
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.55rem;
    border-radius: 999px;
    background: #2f8b45;
    color: #fff;
    font-size: 0.75rem;
}

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dashboard-section-head.compact {
    margin-bottom: 0.85rem;
}

.dashboard-section-head.compact h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
}

.dashboard-section-head.compact a {
    color: #1b7b3a;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}

.coverage-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    color: #2c453a;
    text-decoration: none;
}

.coverage-row strong,
.coverage-row small {
    display: block;
}

.coverage-row small {
    color: #6d7c72;
    font-size: 0.75rem;
}

.coverage-row b {
    color: #2b473a;
    font-size: 0.88rem;
}

.group-coverage-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 1.3rem;
}

.group-donut {
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 999px;
    background: radial-gradient(circle, #fffefa 52%, transparent 53%), conic-gradient(#3f8b45 0 100%, #e4eadc 0);
    color: var(--gcap-primary-dark);
}

.group-donut strong {
    font-size: 2rem;
    line-height: 1;
}

.group-donut span,
.group-stats span,
.linked-strip span {
    color: #617368;
    font-size: 0.8rem;
}

.group-stats p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.7rem;
}

.linked-strip {
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.linked-strip strong {
    color: var(--gcap-primary-dark);
    font-size: 1.45rem;
}

/* -- Farmers registry console refinements ---------------------------- */
.registry-metrics-five .registry-metric-card {
    min-height: 116px;
}

.registry-metric-card.is-attention .registry-metric-icon {
    color: #d97706;
    background: #fff7e8;
}

.registry-metric-card.is-attention small {
    color: #c55a11;
}

.registry-filter-grid-console {
    grid-template-columns: minmax(250px, 2.1fr) repeat(5, minmax(128px, 1fr)) minmax(220px, 1.25fr);
    align-items: end;
}

.registry-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.registry-filter-actions-console,
.registry-bulk-actions {
    grid-column: span 2;
    justify-content: flex-start;
}

.registry-bulk-actions {
    justify-content: flex-end;
}

.registry-bulk-btn,
.registry-page-size {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 1.05rem;
    border: 1px solid #bfd7c4;
    border-radius: 10px;
    background: #fbfff8;
    color: var(--gcap-primary-dark);
    font-weight: 850;
}

.registry-bulk-btn:disabled,
.registry-page-size:disabled {
    opacity: 0.85;
    cursor: default;
}

.registry-table-card-console {
    padding: 0;
    overflow: hidden;
}

.registry-table-card-console .registry-table-wrap {
    border: 0;
    border-radius: 0;
}

.registry-table-console {
    table-layout: auto;
}

.registry-table-console th:first-child,
.registry-table-console td:first-child {
    width: 48px;
    text-align: center;
}

.registry-table-console th:nth-child(2) {
    min-width: 250px;
}

.registry-table-console th:nth-child(3) {
    min-width: 220px;
}

.registry-table-console tbody td {
    white-space: normal;
    vertical-align: middle;
}

.location-cell strong,
.location-cell small {
    display: block;
}

.location-cell strong {
    color: #263e34;
    font-weight: 750;
}

.location-cell small {
    margin-top: 0.18rem;
    color: #728278;
    font-size: 0.78rem;
}

.registry-chip.is-neutral {
    background: #eef3ec;
    color: #3d6a4f;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
}

.status-chip .ui-icon {
    width: 0.82rem;
    height: 0.82rem;
}

.status-chip.is-complete {
    background: #edf8ea;
    color: #236b3d;
}

.status-chip.is-incomplete {
    background: #fff4d9;
    color: #b45b0c;
}

.verification-dot.is-muted {
    background: #b7c0b8;
    box-shadow: none;
}

.registry-view-btn {
    min-width: 64px;
    justify-content: center;
}

.registry-table-footer-console {
    padding: 1rem 1.1rem;
    background: #fffefa;
}

@media (max-width: 1180px) {


    .dashboard-filters-managerial,
    .registry-filter-grid-console {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-management-grid,
    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {


    .dashboard-kpi-grid,
    .registry-metrics-five,
    .dashboard-filters-managerial,
    .registry-filter-grid-console,
    .crop-insight-strip,
    .group-coverage-body {
        grid-template-columns: 1fr;
    }
    .registry-filter-actions-console,
    .registry-bulk-actions {
        grid-column: auto;
        justify-content: flex-start;
    }
}


/* -- Dashboard and farmers console final rhythm/readability pass ------ */
.dashboard-shell,
.registry-page {
    gap: 0.9rem;
}

.dashboard-management-grid {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    align-items: start;
    gap: 1rem;
}

.dashboard-chart-layout {
    grid-template-columns: minmax(17.5rem, 0.9fr) minmax(0, 1.1fr);
    gap: 1.1rem;
}

.dashboard-side-stack {
    align-content: start;
}

.dashboard-side-stack .data-quality-card {
    padding: 1rem;
}

.data-quality-card .quality-list {
    gap: 0.5rem;
}

.data-quality-card .quality-row {
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    grid-template-columns: 2.35rem 1fr auto;
    gap: 0.65rem;
}

.data-quality-card .quality-row strong {
    font-size: 1.05rem;
}

.data-quality-card .quality-row span {
    font-size: 0.82rem;
}

.dashboard-secondary-grid {
    margin-top: 0;
    gap: 1rem;
}

.coverage-card {
    min-height: 0;
}

.registry-metric-card.is-complete .registry-metric-icon {
    color: #236b3d;
    background: #edf8ea;
}

.registry-metric-card.is-complete small {
    color: #236b3d;
}

.registry-filter-grid-console {
    grid-template-columns: minmax(360px, 2.25fr) repeat(5, minmax(140px, 1fr)) minmax(235px, 1.2fr);
    align-items: end;
    gap: 0.72rem;
}

.registry-field input,
.registry-field select {
    min-height: 44px;
    font-size: 0.84rem;
}

.registry-field-search input {
    min-width: 0;
    padding-right: 0.9rem;
}

.registry-filter-actions-console {
    grid-column: 1 / span 3;
    justify-content: flex-start;
}

.registry-bulk-actions {
    grid-column: -3 / -1;
    justify-content: flex-end;
}

.registry-bulk-btn,
.registry-export-btn,
.registry-page-size {
    min-height: 40px;
}

.registry-table-card-console .registry-table-wrap {
    overflow-x: auto;
}

.registry-table-console {
    min-width: 1060px;
}

.registry-table thead th,
.registry-table-wrapper thead th {
    background: #ecefe4;
    color: #42594d;
}

.registry-table-console th:nth-child(2),
.registry-table-console td:nth-child(2) {
    min-width: 280px;
    width: 28%;
}

.registry-table-console th:nth-child(3),
.registry-table-console td:nth-child(3) {
    min-width: 240px;
    width: 23%;
}

.registry-table-console th:nth-child(6),
.registry-table-console td:nth-child(6) {
    min-width: 138px;
    white-space: nowrap;
}

.registry-table-console th:nth-child(7),
.registry-table-console td:nth-child(7) {
    min-width: 124px;
    width: 124px;
}

.registry-table-console tbody tr {
    height: 64px;
}

.registry-table-console tbody td {
    padding: 0.72rem 0.95rem;
}

.farmer-identity > span,
.location-cell {
    min-width: 0;
}

.registry-table-console .farmer-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registry-row-actions {
    justify-content: flex-end;
}

@media (max-width: 1340px) {
    .registry-filter-grid-console {
        grid-template-columns: minmax(320px, 2fr) repeat(3, minmax(135px, 1fr));
    }

    .registry-filter-actions-console,
    .registry-bulk-actions {
        grid-column: span 2;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .registry-filter-grid-console {
        grid-template-columns: 1fr;
    }

    .registry-filter-actions-console,
    .registry-bulk-actions {
        grid-column: auto;
        justify-content: flex-start;
    }
}
/* -- Full-scale desktop admin console pass --------------------------- */


.dashboard-shell,
.registry-page {
    gap: 1.35rem;
}

.home-hero-dashboard,
.registry-hero {
    min-height: 154px;
    border-radius: 20px;
}

.dashboard-toolbar,
.registry-filter-card,
.dashboard-chart-card,
.dashboard-side-stack .card-gcap,
.coverage-card,
.registry-table-card,
.registry-metric-card,
.summary-card {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(58, 84, 63, 0.08);
}

.dashboard-filters-managerial {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 1rem;
}

.dashboard-filter-actions {
    align-self: stretch;
}

.dashboard-filter-actions .btn-gcap-primary,
.dashboard-filter-actions .btn-gcap-secondary {
    min-height: 46px;
}

.dashboard-kpi-grid,
.registry-metrics-five {
    gap: 1rem;
}

.summary-card,
.registry-metric-card {
    min-height: 104px;
}

.dashboard-management-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: start;
}

.dashboard-management-grid > .dashboard-chart-card {
    grid-column: span 8;
}

.dashboard-management-grid > .dashboard-side-stack {
    grid-column: span 4;
}

.dashboard-chart-card {
    padding: 1.35rem;
}

.dashboard-chart-layout {
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    gap: 1.35rem;
    align-items: stretch;
}

.donut-stage {
    min-height: 320px;
}

.distribution-header,
.distribution-row {
    grid-template-columns: minmax(140px, 1.5fr) minmax(90px, 0.85fr) minmax(78px, 0.7fr) minmax(70px, 0.6fr);
}

.distribution-header {
    background: #ecefe4;
    color: #42594d;
}

.crop-insight-strip {
    margin-top: 1rem;
}

.dashboard-side-stack {
    gap: 1rem;
}

.dashboard-side-stack .data-quality-card {
    align-self: start;
}

.data-quality-card .quality-row {
    min-height: 42px;
}

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem;
    margin-top: 0;
}

.dashboard-secondary-grid > .coverage-card {
    grid-column: span 6;
}

.registry-filter-grid-console {
    grid-template-columns: minmax(430px, 2.4fr) repeat(5, minmax(150px, 1fr)) minmax(250px, 1.25fr);
    gap: 0.85rem;
}

.registry-field-search input::placeholder {
    color: #738277;
    opacity: 1;
}

.registry-filter-actions-console,
.registry-bulk-actions {
    grid-column: auto;
}

.registry-filter-actions-console {
    grid-column: 1 / span 3;
    justify-content: flex-start;
}

.registry-bulk-actions {
    grid-column: 4 / -1;
    justify-content: flex-end;
}

.registry-table-console {
    min-width: 1180px;
}

.registry-table-console th:first-child,
.registry-table-console td:first-child {
    width: 52px;
}

.registry-table-console th:nth-child(2),
.registry-table-console td:nth-child(2) {
    min-width: 320px;
    width: 30%;
}

.registry-table-console th:nth-child(3),
.registry-table-console td:nth-child(3) {
    min-width: 280px;
    width: 25%;
}

.registry-table-console tbody tr {
    height: 66px;
}

.registry-table-console tbody td {
    padding: 0.78rem 1rem;
}

.registry-chip,
.status-chip {
    max-width: 12.5rem;
}


@media (max-width: 1360px) {


    .dashboard-management-grid,
    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-management-grid > .dashboard-chart-card,
    .dashboard-management-grid > .dashboard-side-stack,
    .dashboard-secondary-grid > .coverage-card {
        grid-column: auto;
    }

    .dashboard-chart-layout {
        grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    }

    .registry-filter-grid-console {
        grid-template-columns: minmax(360px, 2fr) repeat(3, minmax(145px, 1fr));
    }

    .registry-filter-actions-console,
    .registry-bulk-actions {
        grid-column: span 2;
        justify-content: flex-start;
    }
}

@media (max-width: 1180px) {


    .dashboard-chart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {


    .registry-filter-grid-console,
    .dashboard-filters-managerial {
        grid-template-columns: 1fr;
    }
}

/* -- Farmer Detail Profile ------------------------------------------ */
.farmer-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
}

.farmer-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gcap-text-muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.farmer-breadcrumb a {
    color: var(--gcap-primary-dark);
    text-decoration: none;
}

.farmer-profile-header {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr) 220px;
    gap: 1.75rem;
    align-items: center;
}

.farmer-profile-identity {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-width: 0;
}

.farmer-profile-avatar {
    width: 168px;
    height: 168px;
    flex: 0 0 168px;
    border-radius: 16px;
    border: 1px solid var(--gcap-border);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.farmer-profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dcfce7, #eef2ff);
    color: var(--gcap-primary-dark);
    font-size: 2.25rem;
    font-weight: 900;
}

.farmer-profile-summary {
    min-width: 0;
}

.farmer-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.farmer-title-row h1 {
    margin: 0;
    color: var(--gcap-navy);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.farmer-code-pill {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.32rem 0.72rem;
    border-radius: 9px;
    background: #f1f3ee;
    color: #2c4539;
    font-size: 0.82rem;
    font-weight: 850;
}

.farmer-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
}

.farmer-meta-item span,
.detail-label,
.overview-highlight span,
.metric-box span {
    display: block;
    color: var(--gcap-text-muted);
    font-size: 0.76rem;
    font-weight: 650;
}

.farmer-meta-item strong,
.detail-value,
.overview-highlight strong,
.metric-box strong {
    display: block;
    color: var(--gcap-text);
    font-size: 0.94rem;
    font-weight: 800;
    margin-top: 0.15rem;
    word-break: break-word;
}

.farmer-profile-completion {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    border-left: 1px solid var(--gcap-border);
    padding-left: 1.5rem;
}

.completion-ring {
    --completion: 0;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle closest-side, var(--gcap-card) 72%, transparent 73% 100%),
        conic-gradient(var(--gcap-primary) calc(var(--completion) * 1%), #e5e7eb 0);
    color: var(--gcap-navy);
    font-size: 0.95rem;
    font-weight: 900;
}

.farmer-profile-completion h2 {
    color: var(--gcap-primary-dark);
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 0.25rem;
}

.farmer-profile-completion p {
    color: var(--gcap-text-muted);
    font-size: 0.82rem;
    margin: 0 0 0.8rem;
}

.verification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.verification-list li::before {
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-right: 0.4rem;
    color: #fff;
    font-size: 0.75rem;
}

.verification-list .is-complete::before {
    content: "✓";
    background: var(--gcap-success-text);
}

.verification-list .is-missing::before {
    content: "!";
    background: #d97706;
}

.farmer-profile-actions {
    display: grid;
    gap: 0.75rem;
}

.farmer-profile-actions .btn-gcap-primary,
.farmer-profile-actions .btn-gcap-secondary {
    width: 100%;
    box-shadow: none;
}

.farmer-profile-actions button:disabled,
.admin-action-list button:disabled,
.card-title-row button:disabled,
.document-kebab:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.farmer-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 420px;
    gap: 1.5rem;
    align-items: start;
}

.farmer-detail-main,
.farmer-detail-aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.farmer-split-grid,
.personal-detail-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.personal-detail-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title-row .card-gcap-title {
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.farm-overview-card .card-gcap-title {
    margin-bottom: 1rem;
}

.farm-overview-topline {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, 1fr));
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.overview-highlight {
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.detail-grid-compact {
    padding-top: 1rem;
    border-top: 1px solid var(--gcap-border);
}

.detail-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-field-large .detail-value {
    font-size: 1.05rem;
}

.farm-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.farm-status-strip div {
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 0.5rem;
    align-items: center;
}

.farm-status-strip div + div {
    border-left: 1px solid var(--gcap-border);
}

.farm-status-strip small {
    grid-column: 2;
    color: var(--gcap-text-muted);
    font-size: 0.76rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-dot-green { background: var(--gcap-success-text); }
.status-dot-amber { background: #f59e0b; }
.status-dot-blue { background: #3b82f6; }

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.status-yes {
    background: #dcfce7;
    color: #166534;
}

.status-no {
    background: #fef3c7;
    color: #92400e;
}

.status-neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.crops-table thead th {
    background: #f9fafb;
    color: var(--gcap-text-muted);
}

.empty-state {
    color: var(--gcap-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 0.75rem;
}

.metric-box {
    border: 1px solid var(--gcap-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    background: #fff;
}

.metric-box strong {
    font-size: 1.05rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 1rem;
}

.detail-group + .detail-group {
    border-left: 1px solid var(--gcap-border);
    padding-left: 1rem;
}

.detail-group h3 {
    color: var(--gcap-primary-dark);
    font-size: 0.9rem;
    font-weight: 900;
    margin: 0;
}

.document-list,
.status-row-list,
.admin-action-list,
.activity-timeline {
    display: flex;
    flex-direction: column;
}

.document-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gcap-border);
}

.document-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.document-thumb {
    width: 58px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--gcap-border);
    object-fit: cover;
    background: #f9fafb;
}

.document-thumb-empty {
    display: grid;
    place-items: center;
    color: var(--gcap-text-muted);
    font-weight: 900;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    align-items: center;
    min-width: 0;
}

.document-meta strong {
    flex-basis: 100%;
    font-size: 0.82rem;
}

.document-meta small {
    color: var(--gcap-text-muted);
    font-size: 0.72rem;
}

.document-action,
.document-kebab {
    border: 1px solid var(--gcap-border);
    border-radius: 8px;
    background: #fff;
    color: var(--gcap-primary-dark);
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.document-action-disabled {
    color: var(--gcap-text-muted);
}

.document-kebab {
    color: var(--gcap-text-muted);
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.85rem;
}

.status-row + .status-row {
    border-top: 1px solid #f3f4f6;
}

.admin-action-list {
    gap: 0.65rem;
}

.admin-action-list button {
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--gcap-text);
    font-weight: 800;
    padding: 0.45rem 0;
}

.admin-action-list .danger {
    color: var(--gcap-danger-text);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.admin-action-list-expanded {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.admin-action-item {
    border-bottom: 1px solid var(--gcap-border);
    padding: 0.15rem 0;
}

.admin-action-item:last-of-type {
    border-bottom: none;
}

.admin-action-item summary {
    cursor: pointer;
    list-style: none;
    color: var(--gcap-text);
    font-weight: 800;
    padding: 0.45rem 0;
}

.admin-action-item summary::-webkit-details-marker {
    display: none;
}

.admin-action-item summary::after {
    content: "›";
    float: right;
    color: #9aa79f;
    transform: rotate(90deg);
    transition: transform 0.15s;
}

.admin-action-item[open] summary::after {
    transform: rotate(270deg);
}

.admin-action-item summary.is-disabled-summary {
    color: #9aa79f;
    cursor: default;
}

.admin-action-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.2rem 0 0.9rem;
}

.admin-action-form label {
    font-size: 0.8rem;
    font-weight: 750;
    color: #2f5042;
}

.admin-action-form small {
    color: #6f8076;
    font-size: 0.76rem;
}

.admin-action-form .btn-gcap-secondary {
    align-self: flex-start;
}

.admin-action-empty {
    color: #6f8076;
    font-size: 0.82rem;
    padding: 0 0 0.9rem;
    margin: 0;
}

.admin-action-link {
    display: block;
    color: var(--gcap-text);
    font-weight: 800;
    padding: 0.45rem 0;
    text-decoration: none;
    border-bottom: 1px solid var(--gcap-border);
}

.admin-action-link:hover {
    color: var(--gcap-primary);
}

.admin-action-form-inline {
    margin: 0;
}

.admin-action-form-inline button {
    border: 0;
    background: transparent;
    text-align: left;
    width: 100%;
    color: var(--gcap-text);
    font-weight: 800;
    padding: 0.45rem 0;
    cursor: pointer;
    font: inherit;
}

.admin-action-form-inline button.danger {
    color: var(--gcap-danger-text);
}

.table-action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


.dashboard-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--gcap-danger-bg);
    border: 1px solid var(--gcap-danger-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
}

.dashboard-alert-card strong {
    color: var(--gcap-danger-text);
}

.dashboard-alert-card p {
    margin: 0.15rem 0 0;
    color: var(--gcap-text);
    font-size: 0.85rem;
}

.activity-timeline {
    gap: 0;
    border-left: 2px solid var(--gcap-border);
    margin-left: 0.35rem;
}

.activity-item {
    position: relative;
    padding: 0 0 1rem 1.25rem;
    display: grid;
    gap: 0.15rem;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-item::before {
    content: "";
    position: absolute;
    left: -0.42rem;
    top: 0.2rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: var(--gcap-primary);
    border: 2px solid var(--gcap-card);
}

.activity-item strong {
    font-size: 0.86rem;
}

.activity-item span,
.activity-item time {
    color: var(--gcap-text-muted);
    font-size: 0.76rem;
}

@media (max-width: 1200px) {
    .farmer-profile-header,
    .farmer-detail-grid {
        grid-template-columns: 1fr;
    }

    .farmer-profile-completion {
        border-left: 0;
        border-top: 1px solid var(--gcap-border);
        padding-left: 0;
        padding-top: 1.25rem;
    }

    .farmer-profile-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .farmer-profile-identity,
    .farmer-profile-completion {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .farmer-meta-grid,
    .farm-overview-topline,
    .farm-status-strip,
    .farmer-split-grid,
    .personal-detail-groups,
    .detail-grid-two,
    .farmer-profile-actions {
        grid-template-columns: 1fr;
    }

    .detail-group + .detail-group,
    .farm-status-strip div + div {
        border-left: 0;
    }

    .detail-group + .detail-group {
        border-top: 1px solid var(--gcap-border);
        padding-left: 0;
        padding-top: 1rem;
    }
}
