/* =====================================================================
   LISTCELL — PAINEIS FRONTEND (Gerencial · Comercial · Vendedor)
   Layout: sidebar esquerda fixa + área de conteúdo à direita
   Herda padrão visual de page-painel-comercial.php
===================================================================== */

/* ── Reset base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.lc-panel-body {
	margin: 0; padding: 0;
	min-height: 100vh;
	background: #f4f6f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	color: #1a2a3a;
}

/* ── Wrapper principal ───────────────────────────────────────────── */
.lc-panel-wrap {
	display: flex;
	min-height: 100vh;
}

/* ================================================================
   SIDEBAR ESQUERDA
================================================================ */
.lc-team-sidebar {
	width: 230px;
	flex-shrink: 0;
	background: #0b1e36;
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0; left: 0; bottom: 0;
	z-index: 200;
	overflow-y: auto;
}

/* ── Área do logo ── */
.lc-tsb-logo {
	padding: 25px 15px;
	border-bottom: 1px solid rgba(255,255,255,.07);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex-shrink: 0;
}

.lc-tsb-logo-img {
	max-width: 80%;
	height: auto;
	max-height: 64px;
	object-fit: contain;
	margin-bottom: 12px;
	display: block;
}

.lc-tsb-wordmark {
	font-size: 17px;
	font-weight: 900;
	letter-spacing: 5px;
	color: #fff;
	line-height: 1;
}

.lc-tsb-wordmark em { color: #ffd600; font-style: normal; }

.lc-tsb-sub {
	font-size: 13px;
	font-weight: 700;
	color: rgba(255,255,255,.85);
	letter-spacing: 1px;
	margin: 6px 0 0;
	text-transform: uppercase;
}

.lc-tsb-role-badge {
	display: inline-block;
	margin-top: 8px;
	background: rgba(255,214,0,.15);
	color: #ffd600;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}

/* ── Navegação vertical ── */
.lc-tsb-nav {
	flex: 1;
	padding: 8px 0;
}

.lc-tsb-section {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,.22);
	padding: 14px 18px 5px;
}

.lc-tsb-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	color: rgba(255,255,255,.55);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	transition: color .15s, background .15s;
}

.lc-tsb-link:hover {
	color: #fff;
	background: rgba(255,255,255,.06);
}

.lc-tsb-link.active {
	background: #ffd600;
	color: #0a1931;
	font-weight: 700;
}

.lc-tsb-link.active i { color: #0a1931; }

.lc-tsb-link i {
	width: 16px;
	text-align: center;
	font-size: 13px;
	flex-shrink: 0;
}

.lc-tsb-badge {
	margin-left: auto;
	background: #ef5350;
	color: #fff;
	border-radius: 20px;
	padding: 1px 7px;
	font-size: 10px;
	font-weight: 700;
}

/* ── Rodapé do usuário ── */
.lc-tsb-footer {
	padding: 14px 18px;
	border-top: 1px solid rgba(255,255,255,.07);
	flex-shrink: 0;
}

.lc-tsb-user {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
}

.lc-tsb-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255,214,0,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.lc-tsb-avatar img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: block;
}

.lc-tsb-avatar i { color: #ffd600; font-size: 14px; }

.lc-tsb-name {
	font-size: 12px;
	color: rgba(255,255,255,.75);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lc-tsb-logout {
	display: flex;
	align-items: center;
	gap: 7px;
	color: rgba(255,255,255,.35);
	font-size: 12px;
	text-decoration: none;
	transition: color .15s;
}

.lc-tsb-logout:hover { color: #ef9a9a; }

/* ================================================================
   ÁREA DE CONTEÚDO PRINCIPAL
================================================================ */
.lc-panel-main {
	margin-left: 230px;
	flex: 1;
	padding: 28px 32px;
	min-height: 100vh;
	background: #f4f6f9;
}

/* Anula max-width do .listcell-wrap fora do wp-admin */
.lc-panel-main .listcell-wrap {
	max-width: none;
	padding-bottom: 40px;
}

/* Ajusta cores do cabeçalho de seção */
.lc-panel-main .lc-wp-header  { border-bottom-color: #0b1e36; }
.lc-panel-main .lc-wp-title   { color: #0b1e36; }
.lc-panel-main .lc-wp-title i { color: #0288d1; }

/* ── Seções de conteúdo (JS show/hide) ── */
.lc-panel-section { display: none; }
.lc-panel-section.active { display: block; }

/* ── Notice ─── */
.lc-notice {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lc-notice-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.lc-notice-error   { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }

/* ================================================================
   COMPONENTES DE PAINEL (Cards, Métricas, Tabelas, Formulários)
================================================================ */

/* ── Cabeçalho de seção ── */
.lc-panel-heading {
	margin-bottom: 24px;
}

.lc-panel-heading h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0b1e36;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lc-panel-heading h2 i { color: #0288d1; }

.lc-panel-heading p {
	font-size: 13px;
	color: #8899aa;
	margin: 0;
}

/* ── Métricas ── */
.lc-panel-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.lc-panel-metric {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.lc-panel-metric-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(2,136,209,.12);
	color: #0288d1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
}

.lc-panel-metric-icon.green  { background: rgba(67,160,71,.12);  color: #43a047; }
.lc-panel-metric-icon.amber  { background: rgba(251,140,0,.12);  color: #ef6c00; }
.lc-panel-metric-icon.purple { background: rgba(156,39,176,.12); color: #8e24aa; }

.lc-panel-metric-body  { flex: 1; min-width: 0; }
.lc-panel-metric-val   { font-size: 22px; font-weight: 700; color: #0b1e36; line-height: 1.1; }
.lc-panel-metric-label { font-size: 11px; color: #8899aa; margin-top: 3px; font-weight: 500; }

/* ── Cards ── */
.lc-panel-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 24px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	margin-bottom: 20px;
}

.lc-panel-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.lc-panel-card-title {
	font-size: 14px;
	font-weight: 700;
	color: #0b1e36;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.lc-panel-card-title i { color: #0288d1; }
.lc-icon-color { color: #0288d1; }

.lc-panel-badge {
	background: #0b1e36;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 20px;
}

/* ── Tabelas ── */
.lc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 560px;
}

.lc-table th {
	background: #0b1e36;
	color: rgba(255,255,255,.85);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 10px 14px;
	text-align: left;
}

.lc-table th:first-child { border-radius: 8px 0 0 0; }
.lc-table th:last-child  { border-radius: 0 8px 0 0; }

.lc-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #edf2f7;
	vertical-align: middle;
	color: #1a2a3a;
}

.lc-table tr:last-child td { border-bottom: none; }
.lc-table tbody tr:hover td { background: #f7fafc; }

/* ── Status aprovado ── */
.lc-status-aprovado { background: #e8f5e9; color: #2e7d32; }

/* ── Totais ── */
.lc-totais-row {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.lc-total-item { font-size: 13px; color: #4a5568; }
.lc-total-item strong { color: #0b1e36; }

/* ── Formulários ── */
.lc-form-group { display: flex; flex-direction: column; gap: 5px; }

.lc-form-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #4a5568;
}

.lc-form-input {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #d1d9e0;
	border-radius: 7px;
	font-size: 13px;
	color: #1a2a3a;
	background: #fff;
	appearance: none;
	transition: border-color .15s;
	outline: none;
}

.lc-form-input:focus { border-color: #0288d1; }

.lc-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 600px) { .lc-form-grid-2 { grid-template-columns: 1fr; } }

/* ── Métricas extras (suplementar ao lc-admin-wp.css) ── */
.lc-panel-main .lc-metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

/* ── Moderação ── */
.lc-mod-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #edf2f7;
	flex-wrap: wrap;
}

.lc-mod-item:last-child { border-bottom: none; }

.lc-mod-info { flex: 1; min-width: 160px; }

.lc-mod-title {
	font-size: 14px;
	font-weight: 600;
	color: #0a1931;
	margin: 0 0 3px;
}

.lc-mod-meta { font-size: 12px; color: #8899aa; margin: 0; }

.lc-mod-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Botões ── */
.lc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: opacity .15s;
	text-decoration: none;
	line-height: 1.2;
}

.lc-btn:hover { opacity: .88; }

.lc-btn-primary { background: #0b1e36; color: #fff; }
.lc-btn-blue    { background: #0288d1; color: #fff; }
.lc-btn-green   { background: #43a047; color: #fff; }
.lc-btn-red     { background: #e53935; color: #fff; }
.lc-btn-ghost   { background: transparent; color: #4a5568; border: 1.5px solid #d1d9e0; }
.lc-btn-sm      { padding: 6px 12px; font-size: 12px; }

/* ── Tabela de histórico ── */
.lc-gi-table-wrap { overflow-x: auto; }

.lc-gi-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 600px;
}

.lc-gi-table th {
	background: #0b1e36;
	color: rgba(255,255,255,.85);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 10px 14px;
	text-align: left;
}

.lc-gi-table td {
	padding: 10px 14px;
	border-bottom: 1px solid #edf2f7;
	vertical-align: middle;
	color: #1a2a3a;
}

.lc-gi-table tr:last-child td { border-bottom: none; }
.lc-gi-table tr:hover td { background: #f7fafc; }

/* ── Status ── */
.lc-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border-radius: 20px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 600;
}

.lc-status-pago     { background: #e8f5e9; color: #2e7d32; }
.lc-status-pendente { background: #fff8e1; color: #f57f17; }
.lc-status-permuta  { background: #e3f2fd; color: #1565c0; }
.lc-status-pub      { background: #e8f5e9; color: #2e7d32; }
.lc-status-pend     { background: #fff8e1; color: #f57f17; }
.lc-status-draft    { background: #f5f5f5; color: #757575; }

/* ── Totais ── */
.lc-gi-totais {
	display: flex;
	gap: 24px;
	padding-top: 14px;
	border-top: 1px solid #edf2f7;
	margin-top: 6px;
	font-size: 13px;
	color: #4a5568;
	flex-wrap: wrap;
}

.lc-gi-totais strong { color: #0b1e36; font-size: 15px; }

/* ================================================================
   SIMULADOR DO GUIA FÍSICO
   Dimensões: 1 cm = 10 px (especificação oficial)
================================================================ */
.guia-impresso-simulador { width: 100%; }

/* ── Simulador wrap: grid (left) + preview panel (right) ──────── */
.gi-simulador-wrap {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}
.gi-simulador-wrap .gi-formats-grid {
	flex: 1;
	min-width: 0;
}

.gi-formats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-end;
}

/* Card de formato ── */
.gi-format-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	cursor: pointer;
}

/* Bloco visual proporcional ── */
.gi-block-visual {
	border: 2px solid #1e3a5f;
	background: #0d2040;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
	transition: background .2s, transform .15s, border-color .2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gi-block-visual::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		45deg, transparent, transparent 8px,
		rgba(255,255,255,.03) 8px, rgba(255,255,255,.03) 16px
	);
}

/* Dimensões exatas: 1 cm = 10 px ── */
.gi-block-pagina-inteira   { width: 140px; height: 180px; } /* 14 × 18 cm */
.gi-block-meia-vertical    { width: 70px;  height: 180px; } /* 7  × 18 cm */
.gi-block-meia-horizontal  { width: 140px; height: 90px;  } /* 14 × 9  cm */
.gi-block-quarto-pagina-grande { width: 70px;  height: 90px;  } /* 7  × 9   cm */
.gi-block-quarto-pagina        { width: 70px;  height: 45px;  } /* 7  × 4,5 cm */
.gi-block-rodape           { width: 140px; height: 20px;  } /* 14 × 2  cm */

.gi-block-label {
	font-size: 10px;
	color: rgba(255,255,255,.4);
	text-align: center;
	padding: 4px;
	position: relative;
	z-index: 1;
}

/* Hover ── */
.gi-format-card:hover .gi-block-visual {
	background: #38bdf8;
	border-color: #0ea5e9;
	transform: scale(1.04);
}

.gi-format-card:hover .gi-block-label { color: rgba(255,255,255,.9); }

/* Tooltip ── */
.gi-tooltip-box {
	display: none;
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #0b1e36;
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 12px;
	line-height: 1.7;
	white-space: nowrap;
	z-index: 300;
	pointer-events: none;
	box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.gi-tooltip-box::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #0b1e36;
}

.gi-tooltip-box strong { display: block; color: #ffd600; margin-bottom: 2px; }
.gi-tooltip-box .gi-tip-preco { color: #a5d6a7; font-weight: 700; margin-top: 3px; }

.gi-format-card:hover .gi-tooltip-box { display: block; }

/* Info abaixo do bloco ── */
.gi-card-info { margin-top: 8px; }
.gi-format-name  { display: block; font-size: 12px; font-weight: 700; color: #0b1e36; }
.gi-format-size  { display: block; font-size: 11px; color: #8899aa; margin-top: 1px; }
.gi-format-price { display: block; font-size: 12px; font-weight: 700; color: #0288d1; margin-top: 3px; }

/* ================================================================
   MODAL DE VENDA
================================================================ */
.gi-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11,30,54,.8);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gi-modal-overlay[hidden] { display: none; }

.gi-modal {
	background: #fff;
	border-radius: 14px;
	padding: 28px 28px 22px;
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 12px 50px rgba(0,0,0,.35);
}

.gi-modal-title {
	font-size: 17px;
	font-weight: 700;
	color: #0b1e36;
	margin: 0 0 4px;
}

.gi-modal-sub {
	font-size: 12px;
	color: #8899aa;
	margin: 0 0 20px;
}

.gi-modal-preco { color: #0288d1; font-weight: 700; }

.gi-modal-body { display: block; margin-bottom: 20px; }

.gi-lf { }
.gi-lf label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #4a5568;
	margin-bottom: 5px;
}

.gi-input {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #d1d9e0;
	border-radius: 7px;
	font-size: 13px;
	color: #1a2a3a;
	background: #fff;
	appearance: none;
	transition: border-color .15s;
}

.gi-input:focus { outline: none; border-color: #0288d1; }

.gi-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.gi-modal-msg {
	font-size: 12px;
	margin-top: 10px;
	text-align: center;
	min-height: 16px;
}

.gi-modal-msg.error   { color: #e53935; }
.gi-modal-msg.success { color: #43a047; }

.gi-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}
.gi-modal-header-info { flex: 1; min-width: 0; }

/* ── Format preview miniature ─────────────────────────────────────── */
.lc-formato-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}
.lc-fp-page {
	position: relative;
	width: 60px;
	height: 77px; /* 14:18 ≈ 7:9 ratio */
	background: #1a2535;
	border: 1.5px solid #2d4060;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.lc-fp-page::before {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 6px,
		rgba(255,255,255,.025) 6px,
		rgba(255,255,255,.025) 7px
	);
	pointer-events: none;
}
.lc-fp-block {
	position: absolute;
	background: #00b4d8;
	opacity: .88;
	transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease, bottom .2s ease, opacity .18s ease;
	box-shadow: 0 0 0 1px rgba(0,180,216,.4) inset;
}
.lc-fp-label {
	font-size: 9px;
	color: #6b8aab;
	text-align: center;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ── Simulador-side preview (larger, standalone card) ─────────── */
.lc-formato-preview--sim {
	position: sticky;
	top: 24px;
	flex-shrink: 0;
	padding: 14px 16px 12px;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent;
	border-radius: 0;
}
.lc-fp-page--sim {
	width: 200px !important;
	height: 257px !important; /* 14:18 = 7:9 ratio */
	background: #e8f0f8 !important;  /* folha branca/cinza-claro visível */
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 2px !important;
}
.lc-fp-page--sim::before { display: none !important; }
.lc-fp-label--top {
	font-size: 10px;
	color: #4a7aab;
	margin-bottom: 10px;
	display: block;
}
.lc-fp-label--hint {
	font-size: 8px;
	color: #2d4060;
	margin-top: 8px;
	display: block;
}

/* ── Lista A-Z preview (simulador) ──────────────────────────────── */
.lc-az-preview {
	display: none;
	width: 200px;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(0,0,0,.18);
	font-family: inherit;
}
.lc-az-header {
	background: #0b1e36;
	color: #ffd600;
	font-size: 10px;
	font-weight: 700;
	padding: 7px 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.lc-az-body {
	padding: 3px 0;
}
.lc-az-entry {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 4px 10px;
	font-size: 10px;
	border-bottom: 1px solid #f0f4f8;
	color: #374151;
	line-height: 1.3;
}
.lc-az-entry b {
	min-width: 11px;
	font-size: 11px;
	font-weight: 800;
	color: #0b1e36;
}
.lc-az-entry span {
	color: #6b7280;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.lc-az-entry--hl {
	background: #fffbeb;
}
.lc-az-entry--hl b    { color: #b45309; }
.lc-az-entry--hl span { color: #92400e; font-weight: 600; }
.lc-az-entry--dot {
	justify-content: center;
	color: #9ca3af;
	border-bottom: none;
	font-size: 13px;
	padding: 2px 0;
	letter-spacing: 3px;
}
.lc-az-footer {
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-size: 8px;
	color: #4a7aab;
	text-align: center;
	padding: 5px 8px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Selected format card ── */
.gi-format-card--selected .gi-block-visual {
	background: #0277bd;
	border-color: #29b6f6;
}
.gi-format-card--selected .gi-block-label { color: rgba(255,255,255,.95); }

.gi-modal-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #8899aa;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 4px;
	flex-shrink: 0;
	margin-top: -2px;
}
.gi-modal-close:hover { color: #0b1e36; background: #f0f4f8; }

.gi-form-section-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #0b1e36;
	border-bottom: 2px solid #e8edf4;
	padding-bottom: 7px;
	margin: 20px 0 12px;
}
.gi-form-section-title i { margin-right: 6px; color: #0288d1; }

/* ── Banner Premium ──────────────────────────────────────────────── */
.gi-premium-banner {
	background: linear-gradient(90deg, #0b1e36 0%, #1a3a5c 100%);
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.gi-premium-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}
.gi-premium-toggle input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #ffd600;
	cursor: pointer;
	flex-shrink: 0;
}
.gi-premium-icon {
	color: #ffd600;
	font-size: 13px;
}
.gi-premium-text {
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
}
.gi-premium-adicional {
	margin-left: auto;
	color: #ffd600;
	font-size: 12px;
	font-weight: 700;
}

/* ── Barra de Quantidade ─────────────────────────────────────────── */
.gi-quantidade-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f0f4ff;
	border: 1.5px solid #c7d3f0;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.gi-qnt-label {
	font-size: 12px;
	font-weight: 700;
	color: #0b1e36;
	white-space: nowrap;
}
.gi-qnt-label i { color: #3b5bdb; margin-right: 5px; }
.gi-qnt-input {
	width: 72px;
	padding: 6px 8px;
	border: 1.5px solid #c7d3f0;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #0b1e36;
	text-align: center;
	background: #fff;
}
.gi-qnt-input:focus { outline: none; border-color: #3b5bdb; }
.gi-qnt-total {
	margin-left: auto;
	font-size: 11px;
	color: #6c757d;
	white-space: nowrap;
}

.gi-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.gi-full { grid-column: 1 / -1; }

.gi-upload-zone {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 2px dashed #c5cfe0;
	border-radius: 10px;
	padding: 16px 20px;
	background: #fafbfd;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	position: relative;
	overflow: hidden;
}
.gi-upload-zone:hover { border-color: #0b1e36; background: #f0f4ff; }
.gi-upload-zone input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}
.gi-upload-icon { font-size: 26px; color: #a0aec0; flex-shrink: 0; pointer-events: none; }
.gi-upload-text { font-size: 12px; color: #718096; pointer-events: none; }
.gi-upload-text strong { color: #0b1e36; display: block; }
.gi-upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gi-upload-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1.5px solid #e2e8f0; display: block; }

@media (max-width: 600px) {
	.gi-modal { padding: 20px 16px 18px; }
	.gi-form-grid { grid-template-columns: 1fr; }
	.gi-full { grid-column: auto; }
}

/* ================================================================
   FORMULÁRIO NOVO ANÚNCIO (Vendedor)
================================================================ */
.lc-vd-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 600px) { .lc-vd-form-grid { grid-template-columns: 1fr; } }

.lc-vd-full { grid-column: 1 / -1; }

.lc-info-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #e3f2fd;
	border: 1px solid #90caf9;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 12px;
	color: #1565c0;
}

.lc-info-banner i { flex-shrink: 0; margin-top: 1px; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
	.lc-panel-wrap { flex-direction: column; }

	.lc-team-sidebar {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		top: auto !important; left: auto !important;
		bottom: auto !important; right: auto !important;
		overflow-y: visible !important;
		border-bottom: 1px solid rgba(255,255,255,.07);
	}

	.lc-tsb-logo {
		flex-direction: row !important;
		padding: 12px 16px !important;
		gap: 12px !important;
		text-align: left !important;
	}

	.lc-tsb-logo-img { max-height: 36px !important; height: auto !important; margin-bottom: 0 !important; }

	.lc-tsb-nav {
		display: flex !important;
		flex-direction: row !important;
		overflow-x: auto !important;
		padding: 0 !important;
		scrollbar-width: none;
	}

	.lc-tsb-nav::-webkit-scrollbar { display: none; }
	.lc-tsb-section { display: none !important; }

	.lc-tsb-link {
		display: inline-flex !important;
		white-space: nowrap !important;
		border-bottom: 3px solid transparent !important;
		padding: 12px 16px !important;
	}

	.lc-tsb-link.active {
		background: rgba(255,214,0,.1) !important;
		color: #ffd600 !important;
		border-bottom-color: #ffd600 !important;
	}

	.lc-tsb-link.active i { color: #ffd600 !important; }

	.lc-tsb-footer { display: none !important; }

	.lc-panel-main {
		margin-left: 0 !important;
		padding: 16px !important;
	}

	.gi-formats-grid { gap: 14px; }
}

/* ================================================================
   TOAST NOTIFICATION
================================================================ */
.gi-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: #1a2a3a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0,0,0,.25);
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
	z-index: 99999;
	pointer-events: none;
	white-space: nowrap;
}

.gi-toast.gi-toast-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.gi-toast.gi-toast-success { border-left: 4px solid #22c55e; }
.gi-toast.gi-toast-error   { border-left: 4px solid #ef4444; }

/* ================================================================
   CONTAINER E FOLHA DO PREVIEW — SEM BORDA AZUL
================================================================ */
.lc-formato-preview--sim,
.lc-fp-page--sim,
.lc-fp-container {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}
.lc-fp-block--sim {
	box-shadow: none !important;
}

/* ================================================================
   CONTROLE DE DESPESAS
================================================================ */

/* ── Comprovante link ── */
.lc-comprovante-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #0288d1;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}
.lc-comprovante-link:hover { text-decoration: underline; }

/* ── Category badges ── */
.lc-desp-cat {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.lc-desp-cat--fixo        { background: #e0f2fe; color: #0369a1; }
.lc-desp-cat--pessoal     { background: #fef3c7; color: #92400e; }
.lc-desp-cat--marketing   { background: #fce7f3; color: #9d174d; }
.lc-desp-cat--tecnologia  { background: #ede9fe; color: #5b21b6; }
.lc-desp-cat--operacional { background: #f0fdf4; color: #166534; }
.lc-desp-cat--outros      { background: #f1f5f9; color: #475569; }

/* ── Lucro Líquido highlight ── */
.lc-metric-lucro .lc-panel-metric { border: 2px solid rgba(16,185,129,.3); }
.lc-metric-lucro .lc-panel-metric-val { font-weight: 800; }

/* ── Balanço Geral card (painel-equipe dashboard) ── */
.lc-balanco-card {
	display: flex;
	align-items: center;
	gap: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 24px;
	margin-bottom: 22px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	flex-wrap: wrap;
}

.lc-balanco-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 24px;
	flex: 1;
	min-width: 140px;
}

.lc-balanco-item:first-child { padding-left: 0; }
.lc-balanco-item:last-child  { padding-right: 0; }

.lc-balanco-lucro { font-weight: 800; }

.lc-balanco-label {
	font-size: 11px;
	color: #8899aa;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 5px;
}

.lc-balanco-val {
	font-size: 20px;
	font-weight: 700;
	color: #0b1e36;
	line-height: 1;
}
.lc-balanco-val.green { color: #16a34a; }
.lc-balanco-val.red   { color: #dc2626; }

.lc-balanco-divider {
	width: 1px;
	height: 40px;
	background: #e2e8f0;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.lc-balanco-card    { flex-direction: column; gap: 14px; }
	.lc-balanco-divider { width: 100%; height: 1px; }
	.lc-balanco-item    { padding: 0; }
}

/* ── lc-btn-red (botão de exclusão nas despesas) ── */
.lc-btn-red {
	background: #dc2626;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s;
}
.lc-btn-red:hover { background: #b91c1c; }

/* ── Botão deletar venda (Guia Físico) ── */
.btn-deletar-venda {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: transparent;
	border: 1.5px solid #d1d9e0;
	border-radius: 6px;
	color: #8899aa;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
	padding: 0;
}
.btn-deletar-venda:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #dc2626;
}
.btn-contrato-venda {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: transparent;
	border: 1.5px solid #d1d9e0;
	border-radius: 6px;
	color: #8899aa;
	font-size: 13px;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
	margin-right: 4px;
}
.btn-contrato-venda:hover {
	background: #fef3c7;
	border-color: #fbbf24;
	color: #d97706;
}

/* ================================================================
   APP-LIKE UI — FORMULÁRIOS MOBILE
================================================================ */
@media (max-width: 768px) {

	/* ── Inputs, selects e textareas: visual nativo de app ── */
	.lc-form-input,
	.gi-input,
	.lc-panel-main input[type="text"],
	.lc-panel-main input[type="email"],
	.lc-panel-main input[type="tel"],
	.lc-panel-main input[type="number"],
	.lc-panel-main input[type="url"],
	.lc-panel-main input[type="password"],
	.lc-panel-main select,
	.lc-panel-main textarea {
		background-color: #f7f9fa;
		border: none;
		border-bottom: 1.5px solid #e2e8f0;
		border-radius: 10px;
		padding: 13px 16px;
		font-size: 15px;
		color: #1a2a3a;
		outline: none;
		-webkit-appearance: none;
		appearance: none;
		transition: background-color 0.25s ease, border-bottom-color 0.25s ease;
		box-shadow: none;
		box-sizing: border-box;
		width: 100%;
	}

	.lc-form-input:focus,
	.gi-input:focus,
	.lc-panel-main input[type="text"]:focus,
	.lc-panel-main input[type="email"]:focus,
	.lc-panel-main input[type="tel"]:focus,
	.lc-panel-main input[type="number"]:focus,
	.lc-panel-main input[type="url"]:focus,
	.lc-panel-main input[type="password"]:focus,
	.lc-panel-main select:focus,
	.lc-panel-main textarea:focus {
		outline: none;
		background-color: #eef6ff;
		border-bottom-color: #0288d1;
	}

	/* ── Placeholder discreto e elegante ── */
	.lc-form-input::placeholder,
	.gi-input::placeholder,
	.lc-panel-main input::placeholder,
	.lc-panel-main textarea::placeholder {
		color: #b0bec5;
		font-size: 14px;
		font-weight: 400;
	}

	/* ── Textarea: altura confortável ── */
	.lc-panel-main textarea,
	.lc-form-input[rows],
	.gi-input[rows] {
		min-height: 90px;
		resize: vertical;
	}

	/* ── Switch premium: toggle tipo app nativo ── */
	.gi-premium-toggle {
		position: relative;
		padding-left: 54px;
		min-height: 28px;
		align-items: center;
	}

	.gi-premium-toggle input[type="checkbox"] {
		position: absolute;
		opacity: 0;
		width: 0;
		height: 0;
		pointer-events: none;
	}

	/* trilho do switch */
	.gi-premium-toggle::before {
		content: '';
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 44px;
		height: 26px;
		background: rgba(255,255,255,.25);
		border: 1.5px solid rgba(255,255,255,.35);
		border-radius: 13px;
		transition: background 0.25s ease, border-color 0.25s ease;
	}

	/* bolinha do switch */
	.gi-premium-toggle::after {
		content: '';
		position: absolute;
		left: 3px;
		top: 50%;
		transform: translateY(-50%);
		width: 20px;
		height: 20px;
		background: #fff;
		border-radius: 50%;
		transition: transform 0.25s ease, background 0.25s ease;
		box-shadow: 0 1px 4px rgba(0,0,0,.3);
	}

	/* estado ligado */
	.gi-premium-toggle:has(input:checked)::before {
		background: #ffd600;
		border-color: #ffd600;
	}

	.gi-premium-toggle:has(input:checked)::after {
		transform: translateY(-50%) translateX(18px);
		background: #0b1e36;
	}
}
