:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #18212f;
    --muted: #64748b;
    --line: #dbe3ec;
    --green: #0f7b4f;
    --green-dark: #0a5f3c;
    --green-soft: #e7f4ee;
    --yellow: #f3bd2f;
    --yellow-soft: #fff5d7;
    --red: #b42318;
    --red-soft: #fff0ed;
    --blue: #2364aa;
    --blue-soft: #eaf2fb;
    --shadow: 0 18px 45px rgba(24, 33, 47, 0.08);
    --shadow-soft: 0 8px 24px rgba(24, 33, 47, 0.06);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 22px;
    background: #101820;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--yellow);
    color: #151515;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.brand span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.nav-list {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.nav-item {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    padding: 12px 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    text-align: left;
    font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
    background: var(--green);
    color: #ffffff;
}

.nav-item.active {
    box-shadow: inset 4px 0 0 var(--yellow);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.sidebar-footer .nav-item {
    padding: 12px 14px;
    font-size: 16px;
    line-height: normal;
}

.sidebar-logout {
    color: rgba(255, 255, 255, 0.76);
}

.sidebar-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-footer strong {
    color: #ffffff;
}

.main {
    min-width: 0;
    padding: 28px;
}

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

.eyebrow {
    margin: 0 0 7px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 34px;
    line-height: 1.15;
}

h2 {
    margin-bottom: 12px;
    font-size: 23px;
    line-height: 1.25;
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.25;
}

.top-actions,
.button-row,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
}

.btn-small {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
}

.btn-primary {
    background: var(--green);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    background: #ffffff;
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: #b8c4d1;
}

.btn-danger {
    background: var(--red-soft);
    border-color: #ffd4cc;
    color: var(--red);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.hero-panel,
.panel,
.card,
.metric-card,
.meta-card,
.table-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    padding: 28px;
}

.hero-panel h2 {
    margin-bottom: 12px;
    font-size: 32px;
}

.hero-panel p,
.panel p,
.card p,
.empty-state p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-side {
    display: grid;
    gap: 12px;
}

.status-strip {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.status-strip strong {
    font-size: 24px;
}

.status-strip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.metric-card {
    padding: 18px;
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    word-break: break-word;
}

.metric-note {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.meta-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.meta-card {
    padding: 16px;
}

.meta-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.meta-value {
    margin-top: 8px;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.28;
    word-break: break-word;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 18px;
}

.compact-meta {
    color: var(--muted);
    font-size: 13px;
    margin: -8px 0 14px;
}

.decision-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.decision-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.decision-item:hover {
    border-color: var(--dv);
    background: var(--dv-bg);
}

.compact-help {
    margin-top: 16px;
    font-size: 12px;
}

.won-work-panel {
    margin-bottom: 14px;
}

.compact-year-picker {
    min-width: 96px;
    margin: 0;
}

.decision-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compact-check {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.won-work-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding-bottom: 2px;
}

.won-work-card {
    min-width: 0;
    min-height: 132px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.won-work-card strong {
    display: block;
    margin: 4px 0;
    font-size: 19px;
}

.won-work-card span {
    color: var(--muted);
    min-height: 22px;
    font-size: 14px;
}

.won-work-card small {
    color: var(--muted);
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.target-progress {
    height: 6px;
    margin: auto 0 5px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--border);
}

.target-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--neg);
}

.decision-details {
    margin-top: 14px;
}

.decision-details > summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    list-style-position: inside;
    padding-bottom: 4px;
}

.decision-details[open] > summary {
    margin-bottom: 14px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.scenario-card {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
}

.scenario-card.recommended {
    border-color: var(--neg);
    background: var(--neg-bg);
}

.scenario-card strong {
    display: block;
    margin: 5px 0;
    font-size: 22px;
}

.scenario-card span,
.scenario-meta {
    color: var(--muted);
    font-size: 12px;
}

.scenario-meta {
    margin-top: 9px;
    font-weight: 600;
}

.inline-cost-form {
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 14px;
    margin-top: 14px;
    border: 1px dashed var(--border2);
    border-radius: var(--r);
    background: var(--surface);
}

.inline-cost-form > div {
    flex: 1;
}

.inline-cost-form p {
    margin-top: 3px;
}

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

.panel,
.card,
.table-card {
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.panel-header p {
    margin-bottom: 0;
}

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

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 11px;
    background: #ffffff;
    color: var(--text);
}

.field textarea {
    min-height: 112px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
    outline: 3px solid rgba(15, 123, 79, 0.14);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

td {
    color: var(--text);
    font-size: 14px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: var(--radius);
    padding: 4px 9px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.badge.good {
    background: var(--green-soft);
    color: var(--green);
}

.badge.warn {
    background: var(--yellow-soft);
    color: #7a5600;
}

.badge.risk {
    background: var(--red-soft);
    color: var(--red);
}

.chart-list {
    display: grid;
    gap: 12px;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
}

.bar-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecf2;
}

.bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--green);
}

.bar-fill.alt {
    background: var(--yellow);
}

.bar-label {
    font-weight: 800;
}

.bar-value {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.insight-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.insight-list li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: var(--surface-soft);
    color: var(--muted);
    line-height: 1.55;
}

.empty-state {
    border: 1px dashed #b7c4d4;
    border-radius: var(--radius);
    padding: 24px;
    background: #ffffff;
}

.notice {
    border: 1px solid #cfe3d8;
    border-radius: var(--radius);
    padding: 14px;
    background: var(--green-soft);
    color: #164d35;
    line-height: 1.55;
}

.warning {
    border: 1px solid #ffe1a1;
    border-radius: var(--radius);
    padding: 14px;
    background: var(--yellow-soft);
    color: #6f4c00;
    line-height: 1.55;
}

.upload-box {
    display: grid;
    place-items: center;
    min-height: 190px;
    border: 2px dashed #b7c4d4;
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface-soft);
    color: var(--text);
    text-align: center;
    cursor: pointer;
}

.upload-box:hover,
.upload-box.drag {
    border-color: var(--green);
    background: var(--green-soft);
}

.upload-box strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.upload-box span {
    color: var(--muted);
    line-height: 1.5;
}

.muted {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 32, 52, .48);
}

.wizard-modal {
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 32, 52, .24);
}

.wizard-header,
.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.wizard-header {
    border-bottom: 1px solid var(--border);
}

.wizard-header h2 {
    margin: 3px 0 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wizard-steps {
    display: flex;
    gap: 8px;
    padding: 16px 22px 0;
}

.wizard-steps span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.wizard-steps span.active,
.wizard-steps span.done {
    border-color: var(--neg);
    background: var(--neg);
    color: #fff;
}

.wizard-body {
    min-height: 270px;
    padding: 22px;
}

.wizard-body h3 {
    margin: 0 0 6px;
}

.wizard-summary,
.wizard-final {
    display: grid;
    gap: 5px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-soft);
}

.wizard-summary span,
.wizard-final span {
    color: var(--muted);
}

.wizard-final strong {
    font-size: 22px;
}

.wizard-final b {
    font-size: 30px;
}

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

.tender-info-grid > div {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-soft);
}

.tender-info-grid span,
.tender-info-section span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.tender-info-grid strong {
    font-size: 17px;
}

.tender-info-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tender-info-section p {
    margin: 7px 0 0;
    color: var(--muted);
}

.tender-info-actions {
    margin-top: 20px;
}

.wizard-market-list,
.wizard-scenario-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.wizard-market-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
}

.wizard-market-list span,
.wizard-scenario span {
    color: var(--muted);
}

.wizard-scenario {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.wizard-scenario:hover,
.wizard-scenario.selected {
    border-color: var(--neg);
    background: var(--neg-bg);
}

.wizard-scenario b {
    font-size: 23px;
}

.wizard-footer {
    border-top: 1px solid var(--border);
}

.wizard-footer > div {
    display: flex;
    gap: 8px;
}

.indexation-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.indexation-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.tender-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(160px, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

[data-tender-row][hidden] {
    display: none;
}

.indexation-project-card {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.indexation-project-card:hover,
.indexation-project-card.selected {
    border-color: var(--neg);
    background: var(--neg-bg);
}

.indexation-project-card[hidden] {
    display: none;
}

.indexation-project-card strong {
    font-size: 18px;
}

.indexation-project-card span,
.indexation-project-card small {
    color: var(--muted);
}

.indexation-result {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-soft);
}

.indexation-result > div {
    display: grid;
    gap: 5px;
}

.indexation-result strong {
    font-size: 24px;
}

.indexation-result p {
    grid-column: 1 / -1;
    margin: 0;
}

.pipeline-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0;
    color: var(--muted);
}

.pipeline-summary strong {
    color: var(--text);
    font-size: 20px;
}

.revenue-distribution-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    align-items: end;
}

.revenue-distribution-check {
    display: grid;
    gap: 3px;
    min-height: 72px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.revenue-distribution-check strong {
    font-size: 20px;
}

.revenue-distribution-check small {
    color: var(--muted);
}

.revenue-distribution-check.valid {
    border-color: #b9dfcd;
    background: var(--green-soft);
}

.revenue-distribution-check.invalid {
    border-color: #f2c8c0;
    background: var(--red-soft);
}

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

.revenue-year-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.revenue-year-card > strong {
    font-size: 20px;
}

.input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-suffix input {
    min-width: 0;
}

.input-suffix span {
    color: var(--muted);
    font-weight: 800;
}

.revenue-year-amount {
    margin: 2px 0 0;
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 800;
}

.pipeline-status-buttons {
    display: flex;
    gap: 4px;
}

.pipeline-status {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.pipeline-status.active.go {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green-dark);
}

.pipeline-status.active.hold {
    border-color: var(--yellow);
    background: var(--yellow-soft);
    color: #8a6500;
}

.pipeline-status.active.no-go {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
}

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

.dashboard-heading h2 {
    margin-bottom: 5px;
    font-size: 30px;
}

.dashboard-controls {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.dashboard-controls .field {
    min-width: 130px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 18px;
    margin-top: 18px;
}

.pipeline-visual {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 220px;
    padding-top: 20px;
}

.pipeline-column {
    display: flex;
    min-height: 100px;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 5px;
    padding: 12px 8px;
    border-radius: var(--radius) var(--radius) 4px 4px;
    color: var(--text);
    text-align: center;
}

.pipeline-column strong {
    font-size: 30px;
}

.pipeline-column span {
    font-weight: 800;
}

.pipeline-column small {
    color: var(--muted);
    font-size: 11px;
}

.pipeline-column.go { min-height: 190px; background: var(--green-soft); }
.pipeline-column.hold { min-height: 135px; background: var(--yellow-soft); }
.pipeline-column.review { min-height: 155px; background: var(--blue-soft); }
.pipeline-column.no-go { min-height: 105px; background: var(--red-soft); }

.dashboard-target-list {
    display: grid;
    gap: 13px;
}

.dashboard-target-row {
    display: grid;
    grid-template-columns: 150px minmax(100px, 1fr) 150px;
    align-items: center;
    gap: 10px;
}

.target-track {
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line);
}

.target-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.dashboard-target-row > span,
.dashboard-stat-row {
    color: var(--muted);
    font-size: 13px;
}

.dashboard-callout {
    padding: 15px;
    border-radius: var(--radius);
    background: var(--green-soft);
    color: var(--text);
    line-height: 1.5;
}

.dashboard-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-stat-row strong {
    color: var(--text);
}

.dashboard-3d .metric-card,
.dashboard-3d .panel {
    transform: perspective(900px) rotateX(1deg) translateZ(0);
    box-shadow: 10px 12px 0 rgba(15, 123, 79, .08), var(--shadow);
}

.dashboard-3d .pipeline-column {
    transform: perspective(500px) rotateX(4deg);
    box-shadow: 0 9px 0 rgba(24, 33, 47, .1);
}

@media (max-width: 620px) {
    .wizard-header,
    .wizard-footer,
    .wizard-body {
        padding: 16px;
    }

    .wizard-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .wizard-footer > div,
    .wizard-footer button {
        width: 100%;
    }
}

/* Dashboard widgets */
.dashboard-widget-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dashboard-widget {
    min-width: 0;
    grid-column: span 6;
}

.dashboard-widget.widget-kpis {
    grid-column: 1 / -1;
}

.dashboard-widget.widget-pipeline {
    grid-column: span 6;
}

.dashboard-widget.widget-actions {
    grid-column: span 6;
}

.dashboard-widget.widget-recent,
.dashboard-widget.widget-index {
    grid-column: span 6;
}

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

.widget-dragbar {
    align-items: center;
    background: var(--surface-soft, #f5f7f8);
    border: 1px solid var(--line, #d7e1e8);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    color: var(--muted, #5d7390);
    cursor: grab;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    letter-spacing: .04em;
    padding: 8px 12px;
    text-transform: uppercase;
}

.widget-dragbar:active {
    cursor: grabbing;
}

.widget-header-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.widget-header-actions .widget-grip {
    color: var(--muted, #5d7390);
    font-size: 16px;
    letter-spacing: -3px;
}

.widget-remove {
    align-items: center;
    background: #fff0f0;
    border: 1px solid #e7aaaa;
    border-radius: 50%;
    color: #bd2d2d;
    cursor: pointer;
    display: inline-flex;
    font-size: 17px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 24px;
}

.widget-remove:hover {
    background: #bd2d2d;
    color: #fff;
}

.btn-danger-outline {
    background: #fff0f0;
    border-color: #e7aaaa;
    color: #bd2d2d;
}

.btn-danger-outline:hover {
    background: #bd2d2d;
    border-color: #bd2d2d;
    color: #fff;
}

.dashboard-widget > .panel,
.dashboard-widget > .dashboard-kpis {
    border-radius: 0 0 12px 12px;
    margin: 0;
}

.dashboard-widget.dragging {
    opacity: .45;
}

.dashboard-widget-picker {
    align-items: center;
    background: var(--surface, #fff);
    border: 1px dashed var(--brand, #087f4f);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
}

.dashboard-widget-picker > span {
    color: var(--muted, #5d7390);
    font-size: 13px;
}

.dashboard-widget-picker > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 840px) {
    .dashboard-widget,
    .dashboard-widget.widget-kpis,
    .dashboard-widget.widget-pipeline,
    .dashboard-widget.widget-actions,
    .dashboard-widget.widget-recent,
    .dashboard-widget.widget-index {
        grid-column: 1 / -1;
    }

    .dashboard-widget-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-widget-picker > div {
        margin-left: 0;
    }

    .scenario-progress-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero,
    .grid-two,
    .grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

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

    .main {
        padding: 18px;
    }

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

    h1 {
        font-size: 28px;
    }

    .hero-panel h2 {
        font-size: 27px;
    }
}

@media (max-width: 620px) {
    .metric-grid,
    .meta-row,
    .form-grid,
    .nav-list,
    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .inline-cost-form {
        align-items: stretch;
        flex-direction: column;
    }

    .indexation-result {
        grid-template-columns: 1fr;
    }

    .revenue-distribution-total,
    .revenue-distribution-grid {
        grid-template-columns: 1fr;
    }

    .indexation-filters {
        grid-template-columns: 1fr;
    }

    .tender-info-grid {
        grid-template-columns: 1fr;
    }

    .tender-filters {
        grid-template-columns: 1fr;
    }

    .dashboard-heading,
    .dashboard-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .pipeline-visual {
        gap: 5px;
    }

    .dashboard-target-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

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

    .bar-value {
        text-align: left;
    }
}
