:root {
    --cecycle-forest: #073b2f;
    --cecycle-deep: #0b3f3d;
    --cecycle-teal: #0b5660;
    --cecycle-green: #0f8a55;
    --cecycle-leaf: #86c784;
    --cecycle-mint: #edf7f0;
    --cecycle-cream: #f6efe2;
    --cecycle-ink: #10231f;
    --cecycle-muted: #55716b;
    --cecycle-border: #cfe3d7;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--cecycle-ink);
    background: var(--cecycle-mint);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--cecycle-green);
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: var(--cecycle-forest);
    color: #f3fff7;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    width: 280px;
    box-sizing: border-box;
}

.brand {
    align-items: center;
    color: #f3fff7;
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.brand:hover {
    color: #f3fff7;
}

.brand-mark {
    align-items: center;
    background: #e9f4ee;
    border-radius: 8px;
    color: var(--cecycle-forest);
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.brand-mark img {
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    color: #ffffff;
    display: block;
    font-size: 1.05rem;
    line-height: 1.2;
}

.brand small {
    color: #b9d7cd;
    display: block;
    font-size: .78rem;
}

.side-nav {
    display: grid;
    gap: 18px;
}

.side-section h2 {
    color: #b9d7cd;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.side-nav a {
    align-items: center;
    border-radius: 8px;
    color: #e5fff0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 8px 10px;
}

.side-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.side-nav a.active {
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 3px 0 0 var(--cecycle-leaf);
    color: #ffffff;
}

.side-nav-disabled {
    align-items: center;
    border-radius: 8px;
    color: #9fbbb2;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 8px 10px;
}

.side-nav-disabled small {
    border: 1px solid rgba(185, 215, 205, .25);
    border-radius: 999px;
    font-size: .62rem;
    padding: 2px 6px;
    white-space: nowrap;
}

.main-frame {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.menu-toggle,
.sidebar-backdrop {
    display: none;
}

.menu-toggle {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--cecycle-border);
    border-radius: 6px;
    color: var(--cecycle-forest);
    font: inherit;
    font-weight: 700;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    background: currentColor;
    border-radius: 1px;
    display: block;
    height: 2px;
    width: 18px;
}

.menu-toggle-icon {
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    left: 0;
    position: absolute;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #cfe3d7;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 32px;
}

.topbar-product {
    color: var(--cecycle-muted);
    font-size: .88rem;
    font-weight: 700;
}

.eyebrow {
    color: #0b7a4b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.user-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.content {
    padding: 28px 32px;
}

.shell-page-header {
    border-bottom: 1px solid var(--cecycle-border);
    padding-bottom: 18px;
}

.page-action-row {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 18px;
}

.page-header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 1.8rem;
    line-height: 1.15;
    margin: 0;
}

.page-subtitle {
    color: #55716b;
    margin: 6px 0 0;
}

.executive-header {
    border-bottom: 1px solid #cfe3d7;
    padding-bottom: 18px;
}

.app-footer {
    color: #55716b;
    font-size: .86rem;
    padding: 0 32px 24px;
}

.metric-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.metric-card,
.panel,
.setup-panel,
.login-card {
    background: #ffffff;
    border: 1px solid #cfe3d7;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(18, 70, 54, .08);
}

.metric-card {
    padding: 20px;
}

.executive-metrics {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.compact-metrics {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.compact-metrics .metric-card {
    padding: 16px;
}

.metric-card span {
    color: #55716b;
    display: block;
    font-size: .9rem;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    margin-top: 8px;
}

.metric-card small {
    color: #55716b;
    display: block;
    font-size: .82rem;
    line-height: 1.35;
    margin-top: 4px;
}

.content-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid {
    margin-bottom: 20px;
}

.module-summary {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.module-summary .page-subtitle {
    max-width: 840px;
}

.module-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.module-filters {
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) repeat(3, minmax(150px, 1fr)) auto;
}

.activity-grid {
    align-items: start;
}

.panel,
.setup-panel {
    padding: 22px;
}

.panel-heading {
    align-items: start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading h2,
.setup-panel h2 {
    font-size: 1.1rem;
    margin: 0;
}

.panel-note,
.empty-copy {
    color: #55716b;
    font-size: .86rem;
}

.dashboard-filters {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) repeat(3, minmax(150px, 1fr)) auto;
    margin-bottom: 20px;
    padding: 18px;
}

.dashboard-filters label {
    margin: 0;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.trend-list,
.bar-list {
    display: grid;
    gap: 12px;
}

.trend-row,
.bar-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(110px, 1fr) minmax(120px, 2fr) minmax(86px, auto);
}

.bar-row {
    grid-template-columns: minmax(150px, 1.35fr) minmax(120px, 2fr) minmax(86px, auto);
}

.compact-bar {
    grid-template-columns: minmax(72px, .6fr) minmax(120px, 2fr) minmax(86px, auto);
}

.trend-row span,
.bar-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.trend-row strong,
.bar-row strong {
    font-size: .94rem;
    text-align: right;
    white-space: nowrap;
}

.trend-track,
.category-track {
    background: #e5f2eb;
    border-radius: 999px;
    height: 10px;
    min-width: 0;
    overflow: hidden;
}

.trend-bar,
.category-bar {
    background: #0b7a4b;
    border-radius: inherit;
    height: 100%;
    min-width: 3px;
}

.accent-blue {
    background: #176b87;
}

.accent-violet {
    background: #6d5bd0;
}

.accent-amber {
    background: #b7791f;
}

.status-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-summary {
    border: 1px solid #d9e8df;
    border-radius: 8px;
    padding: 12px;
}

.status-summary strong {
    display: block;
    font-size: 1.15rem;
    margin-top: 10px;
}

.status-summary small {
    color: #55716b;
    display: block;
    margin-top: 2px;
}

.data-table {
    border-collapse: collapse;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #d9e8df;
    padding: 10px 8px;
    text-align: left;
}

.data-table th {
    color: #55716b;
    font-size: .78rem;
    text-transform: uppercase;
}

.status {
    background: #e1f7e9;
    border: 1px solid #95d9ae;
    border-radius: 999px;
    color: #0d6a42;
    display: inline-block;
    font-size: .78rem;
    padding: 4px 10px;
}

.status-muted {
    background: #f4f1e8;
    border-color: #d9d0b8;
    color: #5d5a48;
}

.status-open {
    background: #e1f7e9;
    border-color: #95d9ae;
    color: #0d6a42;
}

.status-closed {
    background: #fff5d9;
    border-color: #e9cf82;
    color: #76530c;
}

.status-locked {
    background: #f2f4f3;
    border-color: #c9d3cf;
    color: #44534f;
}

.table-scroll {
    overflow-x: auto;
}

.table-secondary {
    color: #55716b;
    display: block;
    font-size: .78rem;
    margin-top: 3px;
}

.notice {
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.notice-success {
    background: #e9f8ee;
    border-color: #95d9ae;
    color: #0d603d;
}

.notice-error {
    background: #fff0f0;
    border-color: #e5a5a5;
    color: #8a2222;
}

.empty-state {
    align-items: flex-start;
    background: #f6fbf7;
    border: 1px dashed #b9cfc5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding: 18px;
}

.empty-state span {
    color: #55716b;
}

.reporting-period-grid,
.configuration-grid {
    grid-template-columns: minmax(280px, .7fr) minmax(0, 1.6fr);
}

.single-column-form {
    grid-template-columns: 1fr;
}

.section-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.section-tabs a {
    background: #ffffff;
    border: 1px solid #cfe3d7;
    border-radius: 8px;
    color: #17493e;
    font-weight: 700;
    padding: 10px 12px;
    white-space: nowrap;
}

.section-tabs a:hover {
    border-color: #0b7a4b;
}

.section-tabs span {
    background: #e5f2eb;
    border-radius: 999px;
    font-size: .72rem;
    margin-left: 6px;
    padding: 2px 7px;
}

.workflow-list {
    display: grid;
    gap: 14px;
}

.workflow-item {
    border: 1px solid #d9e8df;
    border-radius: 8px;
    padding: 16px;
}

.workflow-summary {
    align-items: start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.workflow-summary h3 {
    font-size: 1.05rem;
    margin: 8px 0 4px;
}

.workflow-summary p,
.decision-note {
    color: #55716b;
    margin: 0;
}

.workflow-emissions {
    text-align: right;
    white-space: nowrap;
}

.workflow-emissions strong,
.workflow-emissions span {
    display: block;
}

.workflow-emissions strong {
    font-size: 1.25rem;
}

.workflow-meta {
    align-items: center;
    border-top: 1px solid #edf3ef;
    color: #55716b;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
}

.workflow-actions {
    margin-top: 14px;
}

.decision-form label {
    margin-top: 0;
}

.button-danger {
    background: #a83232;
}

.button-danger:hover {
    background: #842525;
}

.text-button {
    background: transparent;
    border: 0;
    color: #0b7a4b;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.danger-link {
    color: #9f2424;
}

.module-status-list {
    display: grid;
    gap: 10px;
}

.module-status-row {
    align-items: center;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px;
}

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

.module-status-row small {
    color: #55716b;
    margin-top: 3px;
}

.management-card .action-row {
    margin-top: 16px;
}

.quick-action-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action {
    background: #f6fbf7;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    color: #0e3f35;
    display: block;
    padding: 14px;
}

.quick-action:hover {
    border-color: #0b7a4b;
    color: #0b7a4b;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action small {
    color: #55716b;
    margin-top: 4px;
}

.role-chip-list,
.company-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-chip,
.company-chip {
    border-radius: 999px;
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 6px 10px;
}

.role-platform {
    background: #e6f1ff;
    border: 1px solid #aac7ef;
    color: #174a7c;
}

.role-company {
    background: #e5f2eb;
    border: 1px solid #b8d9c8;
    color: #0b5c3c;
}

.company-chip {
    background: #f6fbf7;
    border: 1px solid #cfe3d7;
    color: #244d45;
}

.muted {
    color: #55716b;
    font-size: .88rem;
}

.table-filter-row {
    align-items: end;
    border-bottom: 1px solid #d9e8df;
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-actions form {
    margin: 0;
}

.link-button {
    background: none;
    border: 0;
    color: #0b7a4b;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.link-button:hover {
    color: #075d3b;
    text-decoration: underline;
}

.user-rbac-table td:first-child strong,
.user-rbac-table td:first-child small {
    display: block;
}

.user-rbac-table td:first-child small {
    color: #55716b;
    margin-top: 3px;
}

.activity-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding: 12px;
}

.activity-tab {
    align-items: center;
    background: #f6fbf7;
    border: 1px solid #cfe3d7;
    border-radius: 8px;
    color: #0e3f35;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 12px;
    min-height: 42px;
    padding: 8px 12px;
}

.activity-tab:hover,
.activity-tab.active {
    background: #0b7a4b;
    border-color: #0b7a4b;
    color: #ffffff;
}

.activity-tab span {
    font-weight: 700;
    white-space: nowrap;
}

.activity-tab strong {
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .78rem;
    min-width: 24px;
    padding: 3px 8px;
    text-align: center;
}

.activity-workspace-grid {
    align-items: start;
    grid-template-columns: minmax(380px, .95fr) minmax(520px, 1.05fr);
}

.activity-entry-layout {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(620px, 1.35fr) minmax(360px, .65fr);
}

.activity-entry-panel {
    min-width: 0;
}

.activity-context-rail {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.activity-picker {
    margin-bottom: 16px;
}

.active-activity-banner {
    align-items: center;
    background: #f6fbf7;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px;
}

.active-activity-banner strong {
    display: block;
    font-size: 1.05rem;
}

.active-activity-banner small {
    color: #55716b;
    display: block;
    margin-top: 4px;
}

.entry-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.readonly-field {
    align-items: center;
    background: #f6fbf7;
    border: 1px solid #b9cfc5;
    border-radius: 8px;
    box-sizing: border-box;
    color: #0e3f35;
    display: flex;
    min-height: 45px;
    padding: 11px 12px;
    width: 100%;
}

.compact-table th,
.compact-table td {
    font-size: .88rem;
    vertical-align: top;
}

.selection-list-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-management-grid {
    align-items: start;
    grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
}

.selection-management-grid > .form-panel {
    position: sticky;
    top: 116px;
}

.selection-option-list {
    display: grid;
    gap: 8px;
}

.selection-option-row {
    align-items: center;
    border-top: 1px solid #edf3ef;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 10px;
}

.selection-option-row small {
    display: block;
    margin-top: 3px;
}

.selection-list-card {
    border: 1px solid #d9e8df;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.selection-list-card h3 {
    font-size: 1.02rem;
    margin: 0 0 4px;
}

.selection-list-card small {
    color: #55716b;
}

.option-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-chip {
    background: #e5f2eb;
    border: 1px solid #cfe3d7;
    border-radius: 999px;
    color: #0e3f35;
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    padding: 5px 10px;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    align-items: center;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px;
}

.activity-row span {
    color: #55716b;
    display: block;
    font-size: .82rem;
    margin-top: 3px;
}

.activity-row small {
    color: #55716b;
    display: block;
    font-size: .82rem;
    line-height: 1.35;
    margin-top: 6px;
}

.activity-pill,
.activity-row .activity-pill {
    background: #e5f2eb;
    border: 1px solid #cfe3d7;
    border-radius: 999px;
    color: #0b7a4b;
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    margin: 0 0 8px;
    padding: 3px 9px;
}

.method-row {
    align-items: flex-start;
}

.plain-list {
    margin: 0;
    padding-left: 20px;
}

.plain-list li {
    margin-bottom: 8px;
}

.alert-panel {
    border-color: #e6b7b7;
    margin-bottom: 18px;
}

.alert-panel .eyebrow,
.alert-panel h2 {
    color: #9f2424;
}

.success-panel {
    border-color: #95d9ae;
    margin-bottom: 18px;
}

.unit-label {
    color: #55716b;
    font-size: .82rem;
    font-weight: 600;
    margin-left: 4px;
}

.button {
    background: #0b7a4b;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    padding: 10px 14px;
}

.button:hover {
    background: #075d3b;
    color: #ffffff;
}

.button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.button-secondary {
    background: #e5f2eb;
    color: #0e3f35;
}

.button-wide {
    margin-top: 18px;
    width: 100%;
}

.login-page {
    background: var(--cecycle-forest);
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(12px, 2vh, 28px);
}

.auth-shell {
    display: grid;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    place-items: center;
    width: 100%;
}

.auth-shell-sustainability {
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(7, 59, 47, .88) 0%, rgba(11, 86, 96, .62) 42%, rgba(246, 239, 226, .94) 72%, rgba(255, 255, 255, .98) 100%),
        url("../img/cecycle-nature-hero-blue-logo-safe.jpg") center / cover no-repeat;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 28px 80px rgba(5, 47, 53, .26);
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 460px);
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: clamp(18px, 2.4vw, 40px);
    width: 100%;
}

.auth-hero-copy {
    align-self: end;
    color: #f9f3e8;
    max-width: 560px;
    padding: 0 24px 12px 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
}

.auth-hero-copy .eyebrow {
    color: #b9ead0;
}

.auth-hero-title {
    color: #ffffff;
    font-size: clamp(2.7rem, 5.2vw, 5rem);
    font-weight: 800;
    line-height: .94;
    margin: 14px 0 12px;
}

.auth-hero-copy p:last-child {
    color: #f4eada;
    font-size: 1.12rem;
    line-height: 1.5;
    margin: 0;
    max-width: 420px;
}

.auth-panel {
    max-width: 420px;
    width: 100%;
}

.auth-panel-glass {
    align-self: center;
    background: rgba(255, 255, 255, .93);
    border: 1px solid rgba(199, 223, 200, .8);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(5, 47, 53, .24);
    justify-self: end;
    padding: clamp(20px, 2.4vw, 28px);
}

.auth-brand {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-brand-single {
    align-items: center;
    border-bottom: 1px solid rgba(11, 86, 96, .12);
    margin-bottom: 22px;
    padding-bottom: 20px;
}

.auth-brand-logo {
    display: block;
    height: 76px;
    object-fit: contain;
    object-position: left center;
    width: 150px;
}

.auth-brand-mark-frame {
    align-items: center;
    background: linear-gradient(135deg, rgba(199, 223, 200, .4), rgba(244, 234, 218, .28));
    border: 1px solid rgba(11, 86, 96, .12);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.auth-brand-mark {
    display: block;
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.auth-brand h1 {
    margin: 0 0 6px;
}

.auth-brand p:last-child {
    color: #64748b;
    margin: 0;
}

label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
}

input {
    border: 1px solid #b9cfc5;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 11px 12px;
    width: 100%;
}

input[type="checkbox"] {
    accent-color: #0b7a4b;
    width: auto;
}

.checkbox-field {
    align-items: center;
    background: #f6fbf7;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 45px;
    padding: 10px 12px;
}

.checkbox-field input {
    margin: 0;
}

.checkbox-field span {
    font-weight: 700;
}

.menu-visibility-editor {
    border: 1px solid var(--cecycle-border);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0;
    padding: 16px;
}

.menu-visibility-editor legend {
    font-size: 1rem;
    font-weight: 800;
    padding: 0 6px;
}

.menu-visibility-editor > .muted {
    grid-column: 1 / -1;
    margin: 0 0 6px;
}

.menu-visibility-option {
    align-items: center;
    background: #f6fbf7;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin: 0;
    min-width: 0;
    padding: 10px;
}

.menu-visibility-option strong,
.menu-visibility-option small {
    display: block;
}

.menu-visibility-option small {
    color: var(--cecycle-muted);
    margin-top: 2px;
}

textarea {
    border: 1px solid #b9cfc5;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 11px 12px;
    resize: vertical;
    width: 100%;
}

select {
    border: 1px solid #b9cfc5;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 11px 12px;
    width: 100%;
}

.form-panel {
    max-width: 980px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.span-2 {
    grid-column: span 2;
}

.detail-grid {
    display: grid;
    gap: 8px 18px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.detail-grid dt {
    color: #55716b;
    font-weight: 700;
}

.detail-grid dd {
    margin: 0;
}

.action-row,
.filter-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.inline-filter {
    flex: 1 1 260px;
    margin: 0;
}

input:focus {
    border-color: #0b7a4b;
    box-shadow: 0 0 0 3px rgba(11, 122, 75, .12);
    outline: none;
}

select:focus {
    border-color: #0b7a4b;
    box-shadow: 0 0 0 3px rgba(11, 122, 75, .12);
    outline: none;
}

textarea:focus {
    border-color: #0b7a4b;
    box-shadow: 0 0 0 3px rgba(11, 122, 75, .12);
    outline: none;
}

.validation {
    color: #9f2424;
    display: block;
    font-size: .86rem;
    margin-top: 4px;
}

@media (max-width: 980px) {
    .app-shell,
    .auth-shell-sustainability,
    .content-grid,
    .metric-grid,
    .dashboard-filters,
    .activity-entry-layout,
    .entry-form-grid,
    .selection-list-grid {
        grid-template-columns: 1fr;
    }

    .reporting-period-grid,
    .configuration-grid,
    .selection-management-grid {
        grid-template-columns: 1fr;
    }

    .selection-management-grid > .form-panel {
        position: static;
    }

    .page-header {
        align-items: start;
        flex-direction: column;
    }

    .module-summary,
    .module-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .menu-visibility-editor {
        grid-template-columns: 1fr;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        bottom: 0;
        height: 100vh;
        left: 0;
        max-width: 88vw;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        width: 320px;
        z-index: 1001;
    }

    .mobile-nav-open {
        overflow: hidden;
    }

    .mobile-nav-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        background: rgba(5, 31, 25, .52);
        border: 0;
        bottom: 0;
        left: min(320px, 88vw);
        padding: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1000;
    }

    .mobile-nav-open .sidebar-backdrop {
        display: block;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 900;
    }

    .login-page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding: 0;
    }

    .auth-shell {
        height: auto;
        min-height: 100vh;
    }

    .auth-shell-sustainability {
        align-content: start;
        border-radius: 0;
        gap: 18px;
        height: auto;
        min-height: 100vh;
        padding: 18px;
    }

    .auth-hero-copy {
        align-self: start;
        padding: 0;
    }

    .auth-hero-title {
        font-size: 2.25rem;
        margin: 8px 0 8px;
    }

    .auth-hero-copy p:last-child {
        font-size: .98rem;
    }

    .auth-panel-glass {
        justify-self: stretch;
        max-width: none;
        padding: 18px;
    }

    .auth-brand-single {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .auth-brand-logo {
        height: 58px;
        width: 118px;
    }

    .login-page label {
        margin-top: 10px;
    }

    .login-page input {
        padding: 9px 10px;
    }

    .login-page .button-wide {
        margin-top: 14px;
    }
}

@media (max-width: 720px) {
    .app-shell {
        display: block;
    }

    .topbar,
    .content,
    .app-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }

    .topbar-heading {
        align-items: start;
        width: 100%;
    }

    .trend-row,
    .bar-row,
    .compact-bar {
        grid-template-columns: 1fr;
    }

    .trend-row strong,
    .bar-row strong {
        text-align: left;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .workflow-summary,
    .workflow-filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .workflow-emissions {
        text-align: left;
    }
}
