@import url("./select2.min.css");
@import url("./vendor/select.bootstrap5.css");

:root {
    --vivero-forest: #244b3f;
    --vivero-forest-deep: #19342d;
    --vivero-forest-soft: #3d6458;
    --vivero-moss: #536f3a;
    --vivero-leaf: #6d8c46;
    --vivero-sage: #e3eadc;
    --vivero-cream: #f6f3ea;
    --vivero-soil: #6f543b;
    --vivero-soil-soft: #a6815d;
    --vivero-sand: #ede4d1;
    --vivero-clay: #a85f4d;
    --vivero-text: #1e2d28;
    --vivero-muted: #44524c;
    --vivero-placeholder: #55625c;
    --vivero-success-text: #2e4920;
    --vivero-warning-text: #5a4026;
    --vivero-danger-text: #7c3f35;
    --vivero-surface: #f3f1e8;
    --vivero-surface-soft: #eef2e8;
    --vivero-panel: #ffffff;
    --vivero-panel-soft: #f8f6f0;
    --vivero-panel-muted: #edf2ea;
    --vivero-border: rgba(36, 75, 63, 0.2);
    --vivero-shadow: 0 18px 45px rgba(34, 70, 60, 0.12);
    --vivero-shadow-soft: 0 10px 24px rgba(34, 70, 60, 0.08);
    --vivero-radius: 18px;
    --vivero-radius-sm: 12px;
}

body.authentication-bg,
body[data-layout="detached"] {
    background: var(--vivero-surface);
    color: var(--vivero-text);
}

body {
    color: var(--vivero-text);
    background: var(--vivero-surface);
}

.wrapper,
.content-page,
.content {
    position: relative;
}

.content-page {
    padding-bottom: 2rem;
}

.content {
    padding-top: 1.25rem;
}

a {
    color: var(--vivero-forest);
}

a:hover,
a:focus {
    color: var(--vivero-forest-deep);
}

.bg-primary,
.btn-primary,
.badge.bg-primary,
.page-item.active .page-link {
    background: var(--vivero-forest) !important;
    border-color: var(--vivero-forest) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--vivero-forest-deep) !important;
    border-color: var(--vivero-forest-deep) !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: var(--vivero-forest);
    border-color: rgba(47, 93, 80, 0.26);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: rgba(47, 93, 80, 0.08);
    color: var(--vivero-forest-deep);
    border-color: var(--vivero-forest);
}

.card {
    border: 1px solid var(--vivero-border);
    border-radius: var(--vivero-radius);
    box-shadow: var(--vivero-shadow);
    background: var(--vivero-panel);
}

.card.vivero-filter-card,
.card.vivero-data-card,
.card.vivero-soft-card {
    overflow: hidden;
}

.card.vivero-filter-card::before,
.card.vivero-data-card::before,
.card.vivero-soft-card::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--vivero-forest);
}

.card .card-header,
.card-header,
.page-title-box,
.table thead th {
    border-color: var(--vivero-border) !important;
}

.card-body {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
}

.page-title-box {
    margin-bottom: 1.2rem;
}

.vivero-hero {
    position: relative;
    padding: 1.6rem 1.7rem;
    border-radius: calc(var(--vivero-radius) + 2px);
    background: var(--vivero-forest-deep);
    box-shadow: 0 18px 36px rgba(34, 70, 60, 0.16);
    color: #f7f5ee;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vivero-hero::after {
    display: none;
}

.vivero-hero__kicker {
    margin-bottom: 0.45rem;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247, 245, 238, 0.88);
}

.vivero-hero__title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.vivero-hero__text {
    max-width: 760px;
    margin: 0.65rem 0 0;
    color: rgba(247, 245, 238, 0.94);
    font-size: 0.98rem;
    line-height: 1.6;
}

.vivero-hero__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

.vivero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
}

.vivero-chip--light {
    color: var(--vivero-forest-deep);
    background: rgba(223, 232, 213, 0.7);
    border-color: rgba(47, 93, 80, 0.12);
}

.vivero-section-label {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--vivero-moss);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vivero-section-heading {
    margin-bottom: 0.4rem;
    color: var(--vivero-forest-deep);
    font-size: 1.3rem;
    font-weight: 700;
}

.vivero-section-text {
    color: var(--vivero-muted);
    margin-bottom: 1.2rem;
    max-width: 720px;
}

.vivero-card-title {
    margin-bottom: 0.25rem;
    color: var(--vivero-forest-deep);
    font-size: 1.02rem;
    font-weight: 700;
}

.vivero-card-subtitle {
    color: var(--vivero-muted);
    margin-bottom: 1rem;
}

.vivero-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.vivero-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.vivero-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vivero-border);
}

.vivero-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--vivero-muted);
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.85rem;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    color: var(--vivero-muted);
    font-weight: 600;
}

.dataTables_wrapper .dataTables_filter input,
.vivero-table-search {
    min-width: 260px;
    border-color: rgba(36, 75, 63, 0.22);
    border-radius: 10px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.vivero-table-search:focus {
    border-color: var(--vivero-forest);
    box-shadow: 0 0 0 0.18rem rgba(36, 75, 63, 0.12);
}

.dataTables_wrapper .dataTables_info {
    color: var(--vivero-muted);
}

.vivero-panel {
    margin-bottom: 1.25rem;
}

.vivero-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.vivero-kpi {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(47, 93, 80, 0.08);
    box-shadow: var(--vivero-shadow-soft);
}

.vivero-kpi__label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--vivero-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vivero-kpi__value {
    display: block;
    color: var(--vivero-forest-deep);
    font-size: 1.3rem;
    font-weight: 700;
}

.vivero-form-grid .row {
    row-gap: 0.9rem;
}

.vivero-form-shell {
    display: grid;
    gap: 1rem;
}

.vivero-form-section {
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    background: var(--vivero-panel-soft);
    border: 1px solid var(--vivero-border);
    box-shadow: var(--vivero-shadow-soft);
}

.vivero-form-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.vivero-form-section__title {
    margin: 0;
    color: var(--vivero-forest-deep);
    font-size: 1.02rem;
    font-weight: 700;
}

.vivero-form-section__text {
    margin: 0.3rem 0 0;
    color: var(--vivero-muted);
    font-size: 0.92rem;
}

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

.vivero-summary-card {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(47, 93, 80, 0.08);
    box-shadow: var(--vivero-shadow-soft);
}

.vivero-summary-card__label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--vivero-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vivero-summary-card__value {
    display: block;
    color: var(--vivero-forest-deep);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.vivero-summary-card__meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--vivero-muted);
    font-size: 0.84rem;
}

.vivero-entity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.vivero-entity-card {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(47, 93, 80, 0.08);
}

.vivero-entity-card h4,
.vivero-entity-card h5 {
    margin-bottom: 0.45rem;
    color: var(--vivero-forest-deep);
    font-size: 0.98rem;
    font-weight: 700;
}

.vivero-readout {
    margin: 0;
    color: var(--vivero-text);
    line-height: 1.65;
}

.vivero-tabs {
    gap: 0.55rem;
    border-bottom: 0;
}

.vivero-tabs .nav-link {
    border: 1px solid rgba(47, 93, 80, 0.12);
    border-radius: 999px;
    color: var(--vivero-forest);
    background: rgba(255, 255, 255, 0.76);
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.vivero-tabs .nav-link.active,
.vivero-tabs .nav-link:hover,
.vivero-tabs .nav-link:focus {
    color: #fff;
    background: var(--vivero-forest);
    border-color: var(--vivero-forest);
}

.vivero-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.vivero-modal .modal-content {
    border: 1px solid rgba(47, 93, 80, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(32, 51, 44, 0.18);
}

.vivero-modal .modal-header {
    background: var(--vivero-forest-deep);
    color: #fff;
    border-bottom: 0;
}

.vivero-side-filter-modal .modal-dialog {
    width: min(480px, 100vw);
    max-width: 100vw;
    height: 100%;
    margin: 0 0 0 auto;
}

.vivero-side-filter-modal.fade .modal-dialog {
    transform: translateX(100%);
}

.vivero-side-filter-modal.show .modal-dialog {
    transform: translateX(0);
}

.vivero-side-filter-modal .modal-content {
    height: 100%;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--vivero-border);
    box-shadow: -20px 0 48px rgba(32, 51, 44, 0.18);
}

.vivero-side-filter-modal .modal-body {
    background: var(--vivero-panel);
}

.vivero-side-filter-modal .row > [class*="col-"] {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.vivero-side-filter-modal .form-label {
    margin-bottom: 0.35rem;
    color: var(--vivero-forest-deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.vivero-side-filter-modal .select2-container {
    width: 100% !important;
}

.vivero-filter-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.4rem 0 0.1rem;
    color: var(--vivero-moss);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vivero-filter-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vivero-border);
}

.vivero-tab-intro {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--vivero-border);
    border-radius: var(--vivero-radius-sm);
    background: var(--vivero-panel-soft);
}

.vivero-tab-intro h5 {
    margin: 0 0 0.25rem;
    color: var(--vivero-forest-deep);
    font-size: 1rem;
    font-weight: 800;
}

.vivero-tab-intro p {
    margin: 0;
    color: var(--vivero-muted);
}

.vivero-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.vivero-filter-actions .btn {
    min-height: 38px;
}

.vivero-icon-btn {
    width: 38px;
    min-width: 38px;
    padding-right: 0;
    padding-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vivero-icon-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.vivero-side-filter-modal .modal-header {
    border-radius: 0;
}

.vivero-inline-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--vivero-muted);
}

.form-control::placeholder,
.form-select::placeholder,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder,
.dataTables_filter input::placeholder {
    color: var(--vivero-placeholder) !important;
    opacity: 1;
}

.vivero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.vivero-stat {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: var(--vivero-panel-soft);
    border: 1px solid var(--vivero-border);
    box-shadow: var(--vivero-shadow-soft);
}

.vivero-stat__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--vivero-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vivero-stat__value {
    display: block;
    color: var(--vivero-forest-deep);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
}

.vivero-stat--money .vivero-stat__value {
    max-width: 100%;
    font-size: clamp(1.02rem, 1.25vw, 1.25rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
}

.vivero-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.vivero-insight-card {
    padding: 1.05rem 1.1rem;
    border-radius: 18px;
    background: var(--vivero-panel-soft);
    border: 1px solid var(--vivero-border);
    box-shadow: var(--vivero-shadow-soft);
}

.vivero-insight-card__label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--vivero-moss);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vivero-insight-card__value {
    display: block;
    color: var(--vivero-forest-deep);
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.25;
}

.vivero-insight-card__meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--vivero-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.vivero-guide {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(223, 232, 213, 0.58);
    border: 1px dashed rgba(47, 93, 80, 0.2);
}

.vivero-guide__title {
    margin: 0 0 0.45rem;
    color: var(--vivero-forest-deep);
    font-size: 0.94rem;
    font-weight: 700;
}

.vivero-guide__list {
    margin: 0;
    padding-left: 1rem;
    color: var(--vivero-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.vivero-empty-state {
    padding: 1.35rem 1.2rem;
    border-radius: 16px;
    background: var(--vivero-panel-soft);
    border: 1px dashed rgba(36, 75, 63, 0.28);
    text-align: center;
}

.vivero-empty-state__title {
    margin: 0 0 0.35rem;
    color: var(--vivero-forest-deep);
    font-size: 1rem;
    font-weight: 700;
}

.vivero-empty-state__text {
    margin: 0;
    color: var(--vivero-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.vivero-list {
    display: grid;
    gap: 0.8rem;
}

.vivero-list-item {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(47, 93, 80, 0.1);
}

.vivero-list-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vivero-list-item__title {
    margin: 0;
    color: var(--vivero-forest-deep);
    font-size: 0.94rem;
    font-weight: 700;
}

.vivero-list-item__meta {
    margin-top: 0.2rem;
    color: var(--vivero-muted);
    font-size: 0.84rem;
}

.vivero-progress-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
    color: var(--vivero-muted);
    font-size: 0.84rem;
}

.page-title,
.header-title,
.leftbar-user-name,
.account-user-name {
    color: var(--vivero-forest-deep) !important;
}

.text-muted,
.account-position,
.leftside-menu .side-nav .side-nav-title {
    color: var(--vivero-muted) !important;
}

.form-control,
.form-select,
.dataTables_filter input,
.select2-container--bootstrap-5 .select2-selection {
    border-radius: var(--vivero-radius-sm);
    border: 1px solid rgba(47, 93, 80, 0.18);
    background-color: rgba(255, 255, 255, 0.92);
    min-height: 44px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: rgba(111, 143, 82, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(111, 143, 82, 0.16);
}

.form-label {
    color: var(--vivero-forest-deep);
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.input-group-text {
    border-color: rgba(47, 93, 80, 0.18);
    background: rgba(247, 244, 234, 0.84);
    color: var(--vivero-forest);
}

.navbar-custom,
.topnav-navbar-dark {
    background: var(--vivero-forest-deep) !important;
    box-shadow: 0 10px 30px rgba(34, 70, 60, 0.16);
    min-height: 72px;
}

.topnav-logo-lg,
.topnav-logo-sm,
.nav-user,
.nav-user .account-position,
.nav-user .account-user-name,
.button-menu-mobile,
.navbar-custom .topbar-menu .nav-link {
    color: #f6f5ef !important;
}

.navbar-custom .topbar-menu .notification-list,
.navbar-custom .topbar-menu .notification-list .nav-link,
.navbar-custom .topbar-menu .nav-user,
.navbar-custom .topbar-menu .nav-user.show,
.navbar-custom .topbar-menu .show > .nav-link {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar-custom .topbar-menu .nav-user {
    border-radius: 14px;
    padding: 0.8rem 1rem !important;
    min-height: 52px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 0.7rem;
    white-space: nowrap;
}

.navbar-custom .topbar-menu .nav-user:hover,
.navbar-custom .topbar-menu .nav-user:focus,
.navbar-custom .topbar-menu .show > .nav-user {
    background: rgba(255, 255, 255, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.navbar-custom .container-fluid {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.navbar-custom .topbar-menu {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-right: 0.15rem !important;
}

.navbar-custom .topbar-menu .notification-list,
.topbar-user-cluster {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-user-cluster {
    margin-left: 0.4rem;
    padding: 0.2rem 0;
}

.navbar-custom .topbar-menu .nav-user > span {
    line-height: 1.15;
}

.navbar-custom .topbar-menu .nav-user > span:last-child,
.topbar-user-meta {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    margin-left: 0 !important;
}

.navbar-custom .topbar-menu .account-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.navbar-custom .topbar-menu .account-user-avatar img {
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.navbar-custom .topbar-menu .account-user-name {
    display: block;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.navbar-custom .topbar-menu .account-position {
    display: block;
    font-size: 0.72rem;
    opacity: 0.9;
}

.topbar-user-actions {
    display: inline-flex;
    align-items: center;
    padding-left: 0.15rem;
}

.topbar-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f6f5ef !important;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topbar-logout-btn i {
    font-size: 1.05rem;
    line-height: 1;
}

.topbar-logout-btn:hover,
.topbar-logout-btn:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.topbar-logout-btn span {
    letter-spacing: 0.01em;
}

@media (max-width: 991px) {
    .navbar-custom .topbar-menu .notification-list {
        gap: 0.4rem;
    }

    .topbar-user-cluster {
        gap: 0.35rem;
        margin-left: 0;
    }

    .navbar-custom .topbar-menu .nav-user {
        padding: 0.65rem 0.8rem !important;
    }

    .topbar-logout-btn span {
        display: none;
    }

    .topbar-logout-btn {
        width: 44px;
        justify-content: center;
        padding: 0.7rem;
    }
}

.leftside-menu {
    background: var(--vivero-panel-soft) !important;
    border-right: 1px solid rgba(47, 93, 80, 0.08);
    box-shadow: 10px 0 30px rgba(47, 93, 80, 0.07);
}

.leftbar-user {
    background: rgba(111, 143, 82, 0.12);
    margin: 14px;
    border-radius: var(--vivero-radius);
    border: 1px solid rgba(36, 75, 63, 0.12);
}

.topnav-logo {
    display: inline-flex;
    align-items: center;
    min-height: 70px;
}

.topnav-logo-lg {
    letter-spacing: 0.04em;
}

.leftside-menu .side-nav .side-nav-link {
    color: var(--vivero-text);
    border-radius: 14px;
    margin: 4px 10px;
    transition: all 0.2s ease;
}

.leftside-menu .side-nav .side-nav-link:hover,
.leftside-menu .side-nav .side-nav-link:focus,
.leftside-menu .side-nav .side-nav-item.menuitem-active > .side-nav-link,
.leftside-menu .side-nav .side-nav-link[aria-expanded="true"] {
    background: rgba(36, 75, 63, 0.12);
    color: var(--vivero-forest-deep);
}

.leftside-menu .side-nav .side-nav-link i {
    color: var(--vivero-moss);
}

.leftside-menu .side-nav .side-nav-second-level li a {
    color: var(--vivero-muted);
    border-radius: 12px;
}

.leftside-menu .side-nav .side-nav-second-level li a:hover {
    color: var(--vivero-forest);
    background: rgba(47, 93, 80, 0.08);
}

.table {
    --bs-table-striped-bg: rgba(137, 169, 91, 0.08);
}

.table-responsive,
.dataTables_wrapper {
    border-radius: 16px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 40px;
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--vivero-border);
    vertical-align: middle;
}

.table thead th {
    color: var(--vivero-forest-deep);
    background: rgba(223, 232, 213, 0.45);
    font-weight: 700;
}

.table tbody tr:hover {
    background: rgba(137, 169, 91, 0.06);
}

.badge.badge-success-lighten,
.badge.bg-success-subtle {
    background: rgba(111, 143, 82, 0.22) !important;
    color: var(--vivero-success-text) !important;
}

.badge.badge-warning-lighten {
    background: rgba(237, 227, 206, 0.92) !important;
    color: var(--vivero-warning-text) !important;
}

.badge.badge-danger-lighten {
    background: rgba(168, 95, 77, 0.18) !important;
    color: var(--vivero-danger-text) !important;
}

.progress {
    background-color: rgba(47, 93, 80, 0.08);
    border-radius: 999px;
}

.progress-bar.bg-success {
    background: var(--vivero-forest) !important;
}

.dropdown-menu {
    border: 1px solid rgba(47, 93, 80, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(32, 51, 44, 0.14);
}

.topbar-dropdown-menu .dropdown-item,
.topbar-dropdown-menu .dropdown-item.notify-item,
.topbar-dropdown-menu .dropdown-item.notify-item span,
.topbar-dropdown-menu .dropdown-item.notify-item i {
    color: var(--vivero-text) !important;
}

.navbar-custom .topbar-menu .topbar-dropdown-menu,
.navbar-custom .topbar-menu .profile-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-custom .topbar-menu .topbar-dropdown-menu .dropdown-item,
.navbar-custom .topbar-menu .profile-dropdown .dropdown-item,
.navbar-custom .topbar-menu .profile-dropdown .notify-item,
.navbar-custom .topbar-menu .profile-dropdown .notify-item span,
.navbar-custom .topbar-menu .profile-dropdown .notify-item i {
    color: var(--vivero-text) !important;
}

.topbar-dropdown-menu .dropdown-item:hover,
.topbar-dropdown-menu .dropdown-item:focus {
    background: rgba(47, 93, 80, 0.08);
    color: var(--vivero-forest-deep) !important;
}

.navbar-custom .topbar-menu .profile-dropdown .dropdown-item:hover,
.navbar-custom .topbar-menu .profile-dropdown .dropdown-item:focus,
.navbar-custom .topbar-menu .profile-dropdown .notify-item:hover,
.navbar-custom .topbar-menu .profile-dropdown .notify-item:focus {
    background: rgba(47, 93, 80, 0.08) !important;
    color: var(--vivero-forest-deep) !important;
}

.topbar-dropdown-menu .dropdown-item:hover span,
.topbar-dropdown-menu .dropdown-item:focus span,
.topbar-dropdown-menu .dropdown-item:hover i,
.topbar-dropdown-menu .dropdown-item:focus i {
    color: var(--vivero-forest-deep) !important;
}

.navbar-custom .topbar-menu .profile-dropdown .dropdown-item:hover span,
.navbar-custom .topbar-menu .profile-dropdown .dropdown-item:focus span,
.navbar-custom .topbar-menu .profile-dropdown .notify-item:hover span,
.navbar-custom .topbar-menu .profile-dropdown .notify-item:focus span,
.navbar-custom .topbar-menu .profile-dropdown .dropdown-item:hover i,
.navbar-custom .topbar-menu .profile-dropdown .dropdown-item:focus i,
.navbar-custom .topbar-menu .profile-dropdown .notify-item:hover i,
.navbar-custom .topbar-menu .profile-dropdown .notify-item:focus i {
    color: var(--vivero-forest-deep) !important;
}

.topbar-dropdown-menu .dropdown-header,
.topbar-dropdown-menu .noti-title,
.topbar-dropdown-menu .dropdown-header h6 {
    color: var(--vivero-forest-deep) !important;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    min-height: 44px;
}

.select2-container--bootstrap-5 .select2-selection {
    display: flex;
    align-items: center;
    padding: 0.1rem 0.35rem;
    border-color: rgba(47, 93, 80, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--vivero-shadow-soft);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--vivero-text);
    line-height: 1.8rem;
    padding-left: 0.25rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: var(--vivero-placeholder);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid rgba(47, 93, 80, 0.14);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(32, 51, 44, 0.14);
}

.select2-container--bootstrap-5 .select2-search {
    padding: 0.65rem;
    background: rgba(247, 244, 234, 0.72);
}

.select2-container--bootstrap-5 .select2-search .select2-search__field {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(47, 93, 80, 0.14);
    padding: 0.55rem 0.8rem;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.65rem 0.9rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--selected {
    background: rgba(36, 75, 63, 0.12);
    color: var(--vivero-forest-deep);
}

.btn-light {
    color: var(--vivero-forest-deep);
    background: var(--vivero-panel-soft);
    border-color: rgba(36, 75, 63, 0.18);
    box-shadow: var(--vivero-shadow-soft);
}

.btn-light:hover,
.btn-light:focus {
    color: var(--vivero-forest-deep);
    border-color: rgba(36, 75, 63, 0.3);
    background: var(--vivero-sand);
}

.breadcrumb {
    gap: 0.2rem;
}

.alert-danger {
    border: 0;
    border-radius: 14px;
    background: rgba(173, 95, 78, 0.12);
    color: #7b4538;
}

.account-pages .card {
    overflow: hidden;
}

.account-pages .card-header {
    background: var(--vivero-forest-deep) !important;
    position: relative;
}

.account-pages .card-header::after {
    display: none;
}

.account-pages .card-body {
    background: var(--vivero-panel);
}

.authentication-bg .footer-alt {
    color: var(--vivero-muted);
}

.login-brand-copy {
    max-width: 420px;
    margin: 0 auto 1.4rem;
}

.login-brand-copy .vivero-chip {
    margin-bottom: 0.85rem;
}

.login-brand-copy h4 {
    margin-bottom: 0.4rem;
}

.page-title-box .breadcrumb-item a,
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--vivero-muted) !important;
}

.action-icon {
    color: var(--vivero-forest);
}

.action-icon:hover {
    color: var(--vivero-forest-deep);
}

.login-submit {
    min-height: 48px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.login-screen {
    min-height: 100vh;
    padding: 2rem 0;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 720px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--vivero-border);
    box-shadow: 0 26px 60px rgba(34, 70, 60, 0.14);
}

.login-showcase {
    position: relative;
    padding: 3rem;
    background: var(--vivero-forest-deep);
    color: #f7f5ee;
}

.login-showcase::after {
    display: none;
}

.login-showcase__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.login-showcase__title {
    margin: 1.25rem 0 0.9rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.05;
    font-weight: 800;
    max-width: 520px;
}

.login-showcase__text {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(247, 245, 238, 0.92);
}

.login-showcase__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.login-showcase__stat {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.login-showcase__label {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(247, 245, 238, 0.8);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.login-showcase__value {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.2rem;
    background: var(--vivero-panel);
}

.login-panel__header {
    margin-bottom: 1.6rem;
}

.login-panel__eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--vivero-moss);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.login-panel__title {
    margin: 0 0 0.45rem;
    color: var(--vivero-forest-deep);
    font-size: 2rem;
    font-weight: 800;
}

.login-panel__text {
    margin: 0;
    color: var(--vivero-muted);
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field {
    display: grid;
    gap: 0.45rem;
}

.login-field__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.login-input {
    min-height: 52px;
    font-size: 0.98rem;
}

.login-link {
    color: var(--vivero-forest);
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover,
.login-link:focus {
    color: var(--vivero-forest-deep);
}

.login-helper {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(223, 232, 213, 0.62);
    border: 1px solid rgba(47, 93, 80, 0.08);
    color: var(--vivero-forest-deep);
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .leftside-menu {
        box-shadow: 0 18px 35px rgba(34, 70, 60, 0.18);
    }

    .card {
        border-radius: 16px;
    }

    .vivero-hero {
        padding: 1.25rem;
    }

    .vivero-hero__actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .vivero-stat-grid {
        grid-template-columns: 1fr;
    }

    .vivero-insight-grid {
        grid-template-columns: 1fr;
    }

    .vivero-kpi-strip {
        grid-template-columns: 1fr;
    }

    .vivero-summary-grid,
    .vivero-entity-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-showcase,
    .login-panel {
        padding: 1.5rem;
    }

    .login-showcase__stats {
        grid-template-columns: 1fr;
    }

    .login-panel__title {
        font-size: 1.6rem;
    }
}
