/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
	--bg: #f5f7fb;
	--surface: rgba(255, 255, 255, 0.92);
	--surface-strong: #ffffff;
	--text: #152033;
	--muted: #667085;
	--line: rgba(15, 23, 42, 0.08);
	--accent: #ff6c0c;
	--accent-soft: #fff1e7;
	--brand-blue: #123c72;
	--brand-blue-soft: #e9f1fb;
	--shadow: 0 20px 45px rgba(18, 60, 114, 0.08);
	--space-1: 8px;
	--space-2: 12px;
	--space-3: 16px;
	--space-4: 20px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 40px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Lato", "Segoe UI", "Trebuchet MS", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(255, 108, 12, 0.14), transparent 24%),
		radial-gradient(circle at top right, rgba(18, 60, 114, 0.14), transparent 28%),
		linear-gradient(180deg, #fbfcff 0%, #f2f5fb 100%);
}

a {
	color: inherit;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(18px);
	background: rgba(8, 31, 40, 0.96);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-2) var(--space-3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.topbar-session {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-left: auto;
}

.session-user {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
}

.brand,
.topbar-links a {
	text-decoration: none;
}

.brand {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
}

.brand-logo {
	height: 34px;
	width: auto;
	display: block;
}

.topbar-links {
	display: flex;
	gap: var(--space-3);
	color: rgba(255, 255, 255, 0.76);
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
	color: #ffffff;
}

.flash {
	max-width: 1280px;
	margin: var(--space-2) auto 0;
	padding: var(--space-2) var(--space-3);
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface-strong);
}

.flash-alert {
	color: #9a3412;
	background: #fff7ed;
}

.shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-7) var(--space-3) 64px;
}

.hero,
.grid {
	display: grid;
	gap: var(--space-5);
}

.hero {
	grid-template-columns: 2fr 1fr;
	align-items: stretch;
	margin-bottom: var(--space-6);
}

.hero h1,
.section-header h2 {
	margin: 0;
}

.hero h1 {
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.02;
	margin-top: 10px;
}

.eyebrow,
.label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.intro,
.item-row p,
.empty-state,
.note {
	color: var(--muted);
	line-height: 1.55;
}

.hero-card,
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 28px;
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 24px;
	display: grid;
	gap: 8px;
	align-content: start;
}

.hero-card-highlight {
	background: linear-gradient(135deg, rgba(18, 60, 114, 0.96), rgba(25, 84, 158, 0.94));
	color: #fff;
}

.hero-card-highlight .label,
.hero-card-highlight .note {
	color: rgba(255, 255, 255, 0.82);
}

.hero-card strong,
.metric-card strong {
	font-size: 42px;
}

.metrics {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: var(--space-6);
}

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

.executive-grid {
	grid-template-columns: 1.1fr 0.9fr;
}

.executive-grid-compact {
	align-items: start;
}

.dashboard-flow-grid {
	margin-top: var(--space-5);
}

.dashboard-secondary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
	align-items: start;
}

.dashboard-bottom-grid {
	margin-top: var(--space-6);
}

.section-card,
.metric-card {
	padding: var(--space-4);
}

.metric-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98));
}

.metric-card .label {
	display: block;
	margin-bottom: 12px;
}

.metric-card strong {
	display: block;
	font-size: 48px;
	line-height: 1;
}

.metric-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	border-radius: 28px 0 0 28px;
	background: var(--accent);
}

.metric-card--em-andamento::before {
	background: #0f766e;
}

.metric-card--planejado::before {
	background: var(--brand-blue);
}

.metric-card--no-radar::before {
	background: #98a2b3;
}

.metric-card--pausado::before {
	background: #d97706;
}

.section-header,
.item-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.section-header {
	margin-bottom: 16px;
}

.section-header-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-2);
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 14px;
}

.section-header-link {
	text-decoration: none;
	font-weight: 700;
	color: var(--brand-blue);
}

.stack {
	display: grid;
	gap: 12px;
}

.item-row {
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.item-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.clickable-card {
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clickable-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 35px rgba(18, 60, 114, 0.12);
	border-color: rgba(18, 60, 114, 0.18);
}

.dashboard-row-link {
	display: flex;
}

.item-row strong {
	display: block;
	margin-bottom: 4px;
}

.item-row p {
	margin: 0;
}

.item-meta {
	display: grid;
	gap: 6px;
	justify-items: end;
	text-align: right;
	color: var(--muted);
	font-size: 14px;
}

.item-meta.emphasis {
	color: var(--accent);
	font-weight: 700;
}

.dashboard-attention-groups {
	display: grid;
	gap: var(--space-4);
}

.dashboard-attention-group__header {
	margin-bottom: var(--space-2);
}

.dashboard-attention-group__header h3 {
	margin: 0;
	font-size: 16px;
}

.full-width {
	margin-top: var(--space-6);
}

.program-overview-card {
	padding-bottom: var(--space-3);
}

.program-overview-card .section-header {
	margin-bottom: var(--space-3);
}

.dashboard-after-programs {
	margin-top: var(--space-4);
}

.focus-panel,
.attention-panel {
	min-height: 100%;
}

.focus-item {
	padding: 12px 0;
}

.attention-load-inline {
	font-size: 22px;
	font-weight: 700;
	color: var(--brand-blue);
}

.lane {
	position: relative;
	overflow: hidden;
}

.lane-progress {
	background: linear-gradient(180deg, rgba(223, 248, 243, 0.92), rgba(255, 253, 250, 0.92));
}

.lane-planned {
	background: linear-gradient(180deg, rgba(232, 240, 255, 0.92), rgba(255, 253, 250, 0.92));
}

.lane-item {
	padding: 14px;
	border-radius: 18px;
	border-top: 0;
	background: rgba(255, 255, 255, 0.72);
}

.lane-item + .lane-item {
	margin-top: 10px;
}

.lane-item-progress {
	border-left: 5px solid #0f766e;
}

.lane-item-planned {
	border-left: 5px solid #3157c8;
}

.mini-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	min-width: 88px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	word-break: keep-all;
	flex-shrink: 0;
}

.mini-badge-progress {
	background: #dff8f3;
	color: #0f766e;
}

.mini-badge-planned {
	background: #e7efff;
	color: #3157c8;
}

.mini-badge-radar {
	background: #f3f4f6;
	color: #4b5563;
}

.mini-badge-automatic {
	background: #ede9fe;
	color: #6d28d9;
}

.mini-badge-manual {
	background: #dcfce7;
	color: #166534;
}

.mini-badge-paused {
	background: #fff0d8;
	color: #b45309;
}

.mini-badge-warning {
	background: #fff4d6;
	color: #a16207;
}

.mini-badge-critical {
	background: #fee2e2;
	color: #b91c1c;
}

.program-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	align-items: start;
}

.program-card {
	padding: var(--space-3);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.98));
	border: 1px solid var(--line);
}

.inline-badge-link {
	text-decoration: none;
}

.program-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-2);
	margin-bottom: var(--space-2);
}

.program-total {
	min-width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 700;
}

.program-stats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.program-stats .status-badge {
	padding-inline: 8px;
	font-size: 11px;
	min-width: 0;
	min-height: 26px;
}

.program-card .program-total {
	min-width: 36px;
	height: 36px;
}

.paused-strip {
	background: linear-gradient(180deg, rgba(255, 245, 230, 0.96), rgba(255, 253, 250, 0.92));
}

.radar-strip {
	background: linear-gradient(180deg, rgba(243, 244, 246, 0.96), rgba(255, 253, 250, 0.92));
}

.radar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
}

.radar-card {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(107, 114, 128, 0.14);
}

.radar-card p {
	margin: 6px 0 12px;
	color: var(--muted);
}

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

.paused-card {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(180, 83, 9, 0.16);
}

.paused-card p {
	margin: 6px 0 12px;
	color: var(--muted);
}

.attention-strip {
	background: linear-gradient(180deg, rgba(255, 244, 214, 0.96), rgba(255, 253, 250, 0.92));
}

.dashboard-blockers-strip {
	margin-top: var(--space-4);
	background: linear-gradient(180deg, rgba(255, 239, 235, 0.94), rgba(255, 252, 250, 0.92));
}

.dashboard-blockers-count {
	font-weight: 700;
	color: #9f1239;
}

.attention-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
}

.attention-card {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.attention-card p {
	margin: 6px 0 0;
	color: var(--muted);
}

.attention-card-warning {
	border-left: 5px solid var(--accent);
}

.attention-card-healthy {
	border-left: 5px solid #0f766e;
}

.attention-card-critical {
	border-left: 5px solid #dc2626;
}

.attention-card-paused {
	border-left: 5px solid #b45309;
}

.attention-card-radar {
	border-left: 5px solid #6b7280;
}

.attention-meta {
	display: grid;
	justify-items: end;
	gap: 8px;
}

.attention-load {
	font-size: 24px;
	font-weight: 700;
}

.dashboard-risk-strip {
	margin-top: var(--space-4);
}

.dashboard-alerts-toggle-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dashboard-alerts-disclosure {
	position: relative;
}

.dashboard-alerts-disclosure__summary {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-weight: 700;
	color: var(--brand-blue);
}

.dashboard-alerts-chevron {
	margin-left: 2px;
}

.dashboard-alerts-extra-grid {
	display: none;
	margin-top: var(--space-4);
}

.dashboard-alerts-toggle-checkbox:checked ~ .dashboard-alerts-extra-grid {
	display: grid;
}

.dashboard-alerts-toggle-checkbox:checked ~ .section-header .dashboard-alerts-chevron {
	transform: rotate(45deg);
	border-color: var(--accent);
}

.list-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-6) var(--space-3) 56px;
}

.list-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.list-header h1 {
	margin: 0;
}

.table-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.filter-card {
	padding: var(--space-4);
	margin-bottom: var(--space-4);
}

.bulk-card {
	margin-top: 0;
}

.bulk-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.bulk-controls {
	display: flex;
	align-items: flex-end;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.bulk-controls label {
	display: block;
	margin-bottom: 6px;
}

.bulk-controls select,
.bulk-controls input {
	min-width: 150px;
	padding: 11px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.checkbox-column {
	width: 44px;
	text-align: center;
}

.bulk-checkbox {
	width: 16px;
	height: 16px;
}

.filter-form {
	display: grid;
	gap: 8px;
}

.timeline-strip {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	margin-bottom: 8px;
}

.timeline-cell {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	display: inline-block;
	border: 1px solid rgba(148, 163, 184, 0.24);
}

.timeline-cell-idle {
	background: #f3f4f6;
}

.timeline-cell-active {
	background: #dff8f3;
}

.timeline-cell-warning {
	background: #fff4d6;
}

.timeline-cell-critical {
	background: #fee2e2;
}

.capacity-allocation-list {
	line-height: 1.5;
}

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

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

th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	min-width: 96px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	word-break: keep-all;
	flex-shrink: 0;
}

.status-badge--em-andamento {
	background: #dff8f3;
	color: #0f766e;
}

.status-badge--planejado {
	background: #e7efff;
	color: #3157c8;
}

.status-badge--no-radar {
	background: #f3f4f6;
	color: #4b5563;
}

.status-badge--pausado {
	background: #fff0d8;
	color: #b45309;
}

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

.status-badge--cancelado {
	background: #fee2e2;
	color: #b91c1c;
}

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

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface-strong);
	text-decoration: none;
	font-weight: 600;
}

.button-primary {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.button-secondary {
	color: var(--text);
}

.button-accent-soft {
	color: var(--accent);
	border-color: rgba(255, 108, 12, 0.18);
	background: rgba(255, 108, 12, 0.12);
}

.button-danger {
	color: #b91c1c;
	border-color: rgba(185, 28, 28, 0.24);
	background: #fef2f2;
}

.button-small {
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
}

.topbar-session .button-secondary {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.inline-link {
	text-decoration: none;
}

.danger-link {
	color: #b91c1c;
}

.table-actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.inline-button-form {
	display: inline-block;
	margin: 0;
}

.inline-button-form .button_to {
	margin: 0;
}

.text-button {
	padding: 0;
	min-height: auto;
	border: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	cursor: pointer;
}

.history-row-automatic {
	background: rgba(237, 233, 254, 0.22);
}

.history-row-manual {
	background: rgba(220, 252, 231, 0.2);
}

.history-row {
	align-items: flex-start;
	padding: var(--space-3);
	border-radius: 18px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
}

.history-row__header {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.history-row p {
	margin: 4px 0 0;
	color: var(--muted);
	line-height: 1.5;
}

.history-row-status {
	border-left: 4px solid #0f766e;
}

.history-row-allocation {
	border-left: 4px solid #3157c8;
}

.history-row-comment {
	border-left: 4px solid #166534;
}

.history-row-event {
	border-left: 4px solid #6d28d9;
}

.history-row-admin {
	border-left: 4px solid #b91c1c;
}

.history-row-record {
	border-left: 4px solid #4b5563;
}

.detail-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-4);
}

.detail-grid-main-card {
	grid-column: 1 / -1;
}

.detail-card {
	padding: var(--space-5);
}

.detail-card-spacious {
	margin-bottom: var(--space-4);
}

.initiative-section-card {
	overflow: visible;
}

.section-header-tight {
	margin-bottom: var(--space-4);
}

.detail-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.detail-meta strong,
.form-grid label,
.detail-section h3 {
	display: block;
	margin-bottom: 6px;
}

.detail-section {
	margin-top: var(--space-4);
}

.initiative-quick-edit-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.initiative-inline-edit-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.initiative-inline-edit-card {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-3);
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(246, 249, 253, 0.92);
}

.initiative-inline-edit-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.initiative-inline-edit-card select,
.initiative-inline-edit-card input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.initiative-facts-grid__full {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--line);
}

.initiative-facts-field-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.initiative-facts-field-header > strong {
	margin-bottom: 0;
}

.initiative-summary-header__controls {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.initiative-facts-status-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-end;
}

.quick-select-wrap {
	position: relative;
	display: inline-flex;
}

.quick-select-wrap::after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667085' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	pointer-events: none;
}

.quick-select {
	appearance: none;
	background-color: var(--qs-bg, #f3f4f6);
	color: var(--qs-color, #4b5563);
	border: none;
	border-radius: 20px;
	padding: 7px 30px 7px 13px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	transition: opacity 0.15s, box-shadow 0.15s;
	box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.06);
}

.quick-select:hover {
	opacity: 0.85;
}

.quick-select:focus-visible {
	box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(18, 60, 114, 0.15);
}

.priority-pills {
	display: flex;
	gap: 5px;
}

.priority-pill {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
	font-family: inherit;
}

.priority-pill:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.priority-pill--active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.quick-save-feedback {
	font-size: 12px;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.25s;
	align-self: center;
	margin-left: auto;
}

.quick-save-feedback--visible {
	opacity: 1;
}

.quick-save-feedback[data-state="ok"] {
	color: #0f766e;
}

.quick-save-feedback[data-state="error"] {
	color: #b91c1c;
}

.conclude-dialog {
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: var(--space-5);
	box-shadow: 0 32px 64px rgba(18, 60, 114, 0.14);
	max-width: 440px;
	width: 100%;
	background: var(--surface-strong);
}

.conclude-dialog::backdrop {
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
}

.conclude-dialog__title {
	margin: 0 0 var(--space-1);
	font-size: 17px;
}

.conclude-dialog__options {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: var(--space-4) 0;
}

.conclude-option {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: var(--space-3) var(--space-4);
	border-radius: 16px;
	border: 1.5px solid var(--line);
	background: var(--surface);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
	font-family: inherit;
}

.conclude-option:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.conclude-option strong {
	display: block;
	font-size: 14px;
	color: var(--text);
	margin-bottom: 0;
}

.conclude-option span {
	font-size: 12px;
	color: var(--muted);
}

.conclude-dialog__cancel {
	width: 100%;
}

.initiative-facts-grid {
	margin-top: 0;
}

.compact-stack {
	gap: 8px;
}

.compact-row {
	padding: 10px 0;
}

.linked-initiative-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

.linked-initiative-card {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-5);
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.linked-initiative-card--attention {
	border-color: rgba(255, 108, 12, 0.18);
	box-shadow: 0 18px 35px rgba(255, 108, 12, 0.08);
}

.linked-initiative-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 35px rgba(18, 60, 114, 0.12);
	border-color: rgba(18, 60, 114, 0.18);
}

.linked-initiative-card__header,
.linked-initiative-card__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.linked-initiative-card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
}

.person-allocation-shortcut-grid {
	grid-template-columns: 1fr;
}

.person-work-section {
	margin-top: var(--space-4);
}

.person-work-header {
	align-items: flex-start;
}

.person-work-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: var(--space-3) 0 0;
	color: var(--brand-blue);
	line-height: 1.5;
}

.person-work-summary strong {
	font-size: 14px;
}

.person-work-summary span {
	color: var(--muted);
}

.initiative-team-summary {
	margin-bottom: var(--space-4);
}

.person-work-actions {
	min-width: auto;
}

.allocation-work-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.allocation-work-grid-single {
	grid-template-columns: 1fr;
}

.allocation-work-card {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-4);
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
	box-shadow: 0 14px 28px rgba(18, 60, 114, 0.08);
}

.allocation-work-card--team {
	padding: var(--space-3) var(--space-4);
}

.allocation-work-card--pausado {
	border-color: rgba(180, 83, 9, 0.22);
	background: linear-gradient(180deg, rgba(255, 249, 237, 0.98), rgba(255, 244, 224, 0.98));
}

.allocation-work-card--no-radar {
	border-color: rgba(107, 114, 128, 0.2);
	background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(243, 244, 246, 0.98));
}

.allocation-work-card__header,
.allocation-work-card__meta,
.allocation-work-card__actions {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	align-items: flex-start;
	flex-wrap: wrap;
}

.allocation-work-card__header p,
.allocation-work-card__meta {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}

.allocation-work-card__header strong {
	font-size: 24px;
	line-height: 1.1;
}

.allocation-work-bar {
	height: 10px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.08);
	overflow: hidden;
}

.allocation-work-bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #ffb36b, var(--accent));
}

.allocation-work-card__badges {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.allocation-work-card__meta strong {
	color: var(--text);
}

.allocation-work-card__actions .inline-button-form {
	margin: 0;
}

.allocation-work-card--team .allocation-work-card__actions {
	justify-content: flex-end;
}

.movement-history-section:first-child {
	margin-top: 0;
}

.rebalance-page-shell {
	max-width: 1040px;
	margin: 0 auto;
	display: grid;
	gap: var(--space-4);
}

.rebalance-summary-card,
.rebalance-form-card {
	padding: var(--space-5);
}

.rebalance-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
}

.rebalance-summary-grid strong {
	display: block;
	margin-bottom: 6px;
}

.rebalance-composition {
	display: grid;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.rebalance-composition__bar {
	display: flex;
	height: 12px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.08);
	overflow: hidden;
}

.rebalance-composition__used {
	background: linear-gradient(90deg, #ffb36b, var(--accent));
}

.rebalance-composition__remaining {
	background: rgba(18, 60, 114, 0.14);
}

.rebalance-composition__legend {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 14px;
}

.rebalance-composition__legend strong {
	color: var(--text);
}

.rebalance-grid {
	display: grid;
	gap: var(--space-4);
}

.rebalance-live-summary {
	padding: var(--space-3) var(--space-4);
	border-radius: 16px;
	background: rgba(18, 60, 114, 0.06);
	border: 1px solid rgba(18, 60, 114, 0.1);
	color: var(--brand-blue);
	font-weight: 600;
	line-height: 1.5;
}

[data-rebalance-form].rebalance-form-over-limit .rebalance-live-summary {
	background: rgba(185, 28, 28, 0.08);
	border-color: rgba(185, 28, 28, 0.18);
	color: #b91c1c;
}

[data-rebalance-form].rebalance-form-over-limit .rebalance-composition__used {
	background: linear-gradient(90deg, #fca5a5, #b91c1c);
}

[data-rebalance-form].rebalance-form-under-limit .rebalance-live-summary {
	background: rgba(180, 83, 9, 0.08);
	border-color: rgba(180, 83, 9, 0.18);
	color: #b45309;
}

[data-rebalance-form].rebalance-form-balanced .rebalance-live-summary {
	background: rgba(15, 118, 110, 0.08);
	border-color: rgba(15, 118, 110, 0.18);
	color: #0f766e;
}

[data-rebalance-form] [data-rebalance-submit][disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.rebalance-row {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.7fr);
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(246, 249, 253, 0.92);
}

.rebalance-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.rebalance-row input,
.rebalance-new-grid select,
.rebalance-new-grid input,
.rebalance-new-grid textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.rebalance-new-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3) var(--space-4);
}

.rebalance-new-grid .full-span {
	grid-column: 1 / -1;
}

.rebalance-suggestion {
	margin: 8px 0 0;
}

.linked-initiative-card__team {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.linked-initiative-card__alerts {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.team-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.06);
	color: var(--brand-blue);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.linked-initiative-card__meta {
	font-size: 13px;
	color: var(--muted);
	border-top: 1px solid var(--line);
	padding-top: 10px;
}

.program-attention-strip {
	margin-top: var(--space-4);
}

.program-status-groups {
	display: grid;
	gap: var(--space-5);
}

.program-status-group h4 {
	margin: 0;
	font-size: 18px;
}

.quick-allocation-box {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	margin-bottom: var(--space-4);
}

.quick-allocation-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2) var(--space-3);
}

.quick-allocation-grid label {
	display: block;
	margin-bottom: 6px;
}

.quick-allocation-grid input,
.quick-allocation-grid select,
.quick-allocation-grid textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.initiative-blockers-list {
	display: grid;
	gap: var(--space-3);
}

.initiative-blockers-card {
	margin-top: var(--space-4);
	margin-bottom: var(--space-4);
}

.initiative-blockers-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: var(--space-5);
}

.initiative-blockers-form {
	padding-right: var(--space-5);
	border-right: 1px solid var(--line);
}

.initiative-blockers-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
}

.initiative-blockers-form__fields .full-span {
	grid-column: 1 / -1;
}

.initiative-blockers-form label {
	display: block;
	margin-bottom: 6px;
}

.initiative-blockers-form input,
.initiative-blockers-form select,
.initiative-blockers-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: var(--text);
}

.initiative-blocker {
	padding: var(--space-3);
	border: 1px solid #f3c1b7;
	border-radius: 8px;
	background: #fff8f6;
}

.initiative-blocker--resolved {
	border-color: var(--line);
	background: #f8fbf9;
}

.initiative-blocker__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	margin-bottom: var(--space-2);
}

.initiative-blocker p {
	margin: 0 0 var(--space-2);
	line-height: 1.5;
}

.initiative-blocker__meta {
	display: grid;
	gap: 4px;
	font-size: 13px;
	color: var(--muted);
}

.initiative-blocker__resolve {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-3);
}

.initiative-blocker__resolve input {
	min-width: 0;
	flex: 1;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
}

.blockers-history-toggle {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
}

.blockers-history-toggle summary {
	cursor: pointer;
	font-weight: 700;
}

.blockers-history-toggle__body {
	margin-top: var(--space-4);
}

.conflict-list {
	display: grid;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
}

.conflict-item,
.redistribution-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3);
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(246, 249, 253, 0.9);
}

.resolution-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.resolution-grid--stacked {
	grid-template-columns: 1fr;
}

.resolution-card {
	padding: var(--space-4);
	border-radius: 20px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.9);
}

.resolution-card h3 {
	margin: 0 0 var(--space-2);
}

.resolution-card p {
	margin: 0 0 var(--space-4);
	color: var(--muted);
	line-height: 1.55;
}

.conflict-resolution-box--inline .error-box {
	margin-bottom: var(--space-3);
}

.conflict-resolution-box--inline .conflict-list {
	margin-bottom: var(--space-4);
}

.conflict-resolution-box--inline .resolution-card {
	padding: var(--space-3);
}

.conflict-resolution-box--inline .resolution-card h3 {
	font-size: 18px;
}

.conflict-resolution-box--inline .redistribution-row {
	align-items: flex-start;
	flex-direction: column;
}

.conflict-resolution-box--inline .redistribution-row input {
	width: 100%;
	text-align: left;
}

.redistribution-grid {
	display: grid;
	gap: var(--space-3);
}

.redistribution-row-new {
	background: rgba(18, 60, 114, 0.05);
	border-color: rgba(18, 60, 114, 0.1);
}

.redistribution-row label {
	font-weight: 600;
	color: var(--text);
}

.redistribution-row input {
	width: 96px;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
	text-align: right;
}

.comments-section-card {
	overflow: visible;
	margin-top: var(--space-2);
}

.discussion-header {
	margin-bottom: var(--space-2);
}

.discussion-description {
	margin: 6px 0 0;
	max-width: 760px;
	line-height: 1.5;
}

.initiative-milestones-card {
	margin-top: var(--space-4);
	margin-bottom: var(--space-4);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
}

.initiative-milestones-toggle {
	display: grid;
	gap: var(--space-3);
	margin: 0;
}

.initiative-milestones-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	list-style: none;
	cursor: pointer;
	margin-bottom: 0;
	min-height: auto;
}

.initiative-milestones-summary:focus,
.initiative-milestones-summary:focus-visible {
	outline: none;
	box-shadow: none;
}

.initiative-milestones-summary::-webkit-details-marker {
	display: none;
}

.initiative-milestones-summary::marker {
	content: "";
}

.initiative-milestones-summary h3 {
	margin: 0;
}

.initiative-milestones-summary .button {
	pointer-events: none;
}

.initiative-milestones-body {
	display: grid;
	gap: var(--space-4);
}

.initiative-milestones-chevron {
	display: inline-block;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	margin-top: 0;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(-45deg);
	transform-origin: center;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.initiative-milestones-toggle[open] .initiative-milestones-chevron {
	transform: rotate(45deg);
	border-color: var(--accent);
}

.collapsible-filter-card {
	margin-bottom: var(--space-4);
}

.filter-shell {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.filter-toggle-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.filter-shell-header {
	margin-bottom: 0;
}

.filter-toggle-summary {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	cursor: pointer;
	margin: 0;
}

.filter-toggle-summary:focus,
.filter-toggle-summary:focus-visible {
	outline: none;
	box-shadow: none;
}

.filter-toggle-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 108, 12, 0.16);
	background: rgba(255, 108, 12, 0.12);
	box-shadow: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.filter-toggle-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(255, 108, 12, 0.12);
	background: rgba(255, 108, 12, 0.16);
	border-color: rgba(255, 108, 12, 0.22);
}

.filter-toggle-icon,
.filter-toggle-icon::before,
.filter-toggle-icon::after {
	display: block;
	height: 3px;
	border-radius: 999px;
	background: var(--accent);
	content: "";
}

.filter-toggle-icon {
	position: relative;
	width: 18px;
}

.filter-toggle-icon::before {
	position: absolute;
	top: -8px;
	right: 0;
	width: 12px;
}

.filter-toggle-icon::after {
	position: absolute;
	top: 8px;
	right: 0;
	width: 8px;
}

.filter-toggle-checkbox:checked ~ .filter-shell-header .filter-toggle-button {
	background: rgba(255, 108, 12, 0.18);
	border-color: rgba(255, 108, 12, 0.28);
}

.filter-shell > .collapsible-filter-card {
	display: none;
}

.filter-toggle-checkbox:checked ~ .collapsible-filter-card {
	display: block;
}

.discussion-tabs {
	display: grid;
	gap: var(--space-4);
}

.discussion-tab-input {
	display: none;
}

.discussion-tab-labels {
	display: flex;
	gap: var(--space-4);
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--space-2);
}

.discussion-tab-label {
	position: relative;
	padding-bottom: var(--space-2);
	color: var(--muted);
	cursor: pointer;
	font-weight: 600;
}

.discussion-panel {
	display: none;
}

.discussion-tab-input:first-of-type:checked ~ .discussion-tab-labels label:first-child,
.discussion-tab-input:nth-of-type(2):checked ~ .discussion-tab-labels label:nth-child(2),
.discussion-tab-input:nth-of-type(3):checked ~ .discussion-tab-labels label:nth-child(3) {
	color: var(--brand-blue);
}

.discussion-tab-input:first-of-type:checked ~ .discussion-tab-labels label:first-child::after,
.discussion-tab-input:nth-of-type(2):checked ~ .discussion-tab-labels label:nth-child(2)::after,
.discussion-tab-input:nth-of-type(3):checked ~ .discussion-tab-labels label:nth-child(3)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--space-2) * -1 - 1px);
	height: 2px;
	background: var(--accent);
	border-radius: 999px;
}

.discussion-tab-input:first-of-type:checked ~ .discussion-panels .discussion-panel-comments,
.discussion-tab-input:nth-of-type(2):checked ~ .discussion-panels .discussion-panel-history,
.discussion-tab-input:nth-of-type(3):checked ~ .discussion-panels .discussion-panel-blockers {
	display: block;
}

.comments-form-box {
	padding-bottom: var(--space-4);
	margin-bottom: var(--space-4);
	border-bottom: 1px solid var(--line);
}

.comments-section-card .section-header-tight {
	margin-bottom: var(--space-3);
}

.comment-form-grid {
	display: grid;
	gap: var(--space-3);
}

.comment-form-grid textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
	min-height: 110px;
	resize: vertical;
}

.reply-context {
	padding: var(--space-3);
	margin-bottom: var(--space-3);
	border-radius: 16px;
	background: rgba(18, 60, 114, 0.05);
	border: 1px solid rgba(18, 60, 114, 0.08);
}

.reply-context p {
	margin: 6px 0 10px;
	color: var(--muted);
}

.comments-thread {
	display: grid;
	gap: var(--space-4);
}

.comment-card {
	padding: var(--space-4);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 253, 0.98));
	border: 1px solid var(--line);
}

.comment-card-reply {
	margin-left: var(--space-5);
	background: rgba(250, 252, 255, 0.98);
}

.comment-card__header,
.comment-card__actions {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-2);
}

.comment-card__actions {
	justify-content: flex-end;
	margin-top: var(--space-2);
	flex-wrap: wrap;
}

.comment-card__body p {
	margin: var(--space-3) 0 0;
	color: var(--text);
	line-height: 1.65;
}

.comment-replies {
	display: grid;
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.compact-actions {
	gap: 10px;
	justify-content: flex-start;
}

.detail-section h3 {
	margin-top: 0;
}

.actions-row {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.form-card {
	max-width: 980px;
	margin: 0 auto;
	padding: var(--space-5);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3) var(--space-4);
}

.form-grid .full-span {
	grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
	width: 100%;
	padding: 11px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.form-grid textarea {
	min-height: 120px;
	resize: vertical;
}

.error-box {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(185, 28, 28, 0.22);
	background: #fff1f2;
	color: #9f1239;
}

.error-box h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.empty-row {
	padding: 12px 0;
	color: var(--muted);
}

@media (max-width: 920px) {
	.hero,
	.metrics,
	.content-grid,
	.executive-grid,
	.detail-grid,
	.form-grid,
	.program-grid,
	.paused-grid,
	.attention-grid,
	.radar-grid,
	.quick-allocation-grid,
	.initiative-blockers-layout,
	.initiative-blockers-form__fields,
	.linked-initiative-grid,
	.resolution-grid {
		grid-template-columns: 1fr;
	}

	.initiative-blockers-form {
		padding-right: 0;
		padding-bottom: var(--space-4);
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.topbar-inner,
	.list-header,
	.bulk-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.topbar-links {
		flex-wrap: wrap;
	}

	.topbar-session {
		margin-left: 0;
	}
}
