:root {
    --bg: #eef2fb;
    --panel: #f8fbff;
    --card: #ffffff;
    --sidebar-start: #4f6cf7;
    --sidebar-end: #3d5ce8;
    --primary: #4a67f4;
    --primary-soft: #e8edff;
    --text: #20263c;
    --muted: #7a849d;
    --line: #e8edf7;
    --success-soft: #ddfff0;
    --success-text: #0d9f62;
    --shadow: 0 28px 60px rgba(69, 87, 140, 0.12);
    --catalog-primary: #4a67f4;
    --catalog-secondary: #20263c;
}

* { box-sizing: border-box; }
body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(111, 143, 255, 0.24), transparent 24%),
        linear-gradient(180deg, #f3f6fd 0%, #edf2fb 100%);
    min-height: 100vh;
}
.auth-body { display: flex; align-items: center; justify-content: center; padding: 18px; }
.auth-shell { width: min(1180px, 100%); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.auth-hero,.auth-card,.simple-auth-card,.content-card,.metric-card,.topbar-card { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow); }
.auth-hero {
    border-radius: 34px; padding: 30px 34px 26px; min-height: 520px; display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.26), transparent 22%), linear-gradient(160deg, #4f6cf7 0%, #6280fb 38%, #88a0ff 100%);
    color: #fff;
}
.auth-hero h1 { font-size: clamp(1.7rem, 3.1vw, 3rem); line-height: 1.04; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.04em; max-width: 520px; }
.auth-hero p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.86); max-width: 500px; line-height: 1.5; }
.hero-badge,.eyebrow { display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; }
.hero-badge { color: rgba(255, 255, 255, 0.88); margin-bottom: 0; padding: 10px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.hero-card { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-card div { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.16); }
.hero-card strong,.hero-card span { display: block; }
.hero-card strong { font-size: 0.92rem; }
.hero-card span { margin-top: 5px; color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; line-height: 1.45; }
.auth-card,.simple-auth-card { border-radius: 34px; position: relative; overflow: hidden; }
.auth-card { min-height: 520px; }
.card-glow { position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(79, 108, 247, 0.2), transparent 26%); }
.auth-card-inner,.simple-auth-card { position: relative; z-index: 1; }
.auth-card-inner { padding: 38px 36px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.simple-auth-shell { width: min(560px, 100%); }
.simple-auth-card { padding: 42px; }
.auth-shell-login { grid-template-columns: 1.08fr 0.92fr; }
.auth-brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.auth-hero-copy { margin-top: 24px; }
.auth-hero-login::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -46px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}
.hero-card-login { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-login-header h2 { font-size: clamp(1.8rem, 2vw, 2.25rem); margin-bottom: 8px; }
.auth-login-header .muted-text { max-width: 340px; font-size: 0.92rem; }
.auth-login-form .form-label { font-size: 0.95rem; font-weight: 600; }
.auth-login-form .form-control { height: 50px; font-size: 0.96rem; border-radius: 18px; }
.auth-login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}
.auth-login-actions > a {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.auth-login-actions .btn {
    min-width: 124px;
    height: 50px;
    border-radius: 18px;
    font-size: 0.98rem;
}
.auth-login-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(90, 112, 196, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.auth-login-footer span {
    font-weight: 700;
    color: var(--heading);
    letter-spacing: 0.08em;
}
.auth-login-footer small {
    color: var(--muted);
    font-size: 0.84rem;
}
.muted-text { color: var(--muted); }
.form-control,.form-select,.input-group-text {
    border-radius: 16px;
    border-color: var(--line);
    padding: 0.82rem 0.95rem;
    font-size: 0.95rem;
}
.form-control:focus,.form-select:focus { border-color: #b6c5ff; box-shadow: 0 0 0 0.25rem rgba(74, 103, 244, 0.12); }
.btn {
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.94rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #6883ff 100%); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, #435fe8 0%, #5f7dff 100%); }
.panel-body { padding: 18px; }
.app-shell { display: grid; grid-template-columns: 290px 1fr; gap: 24px; min-height: calc(100vh - 36px); }
.sidebar-panel {
    background: linear-gradient(180deg, var(--sidebar-start) 0%, var(--sidebar-end) 100%);
    border-radius: 28px; padding: 28px 22px; box-shadow: var(--shadow); color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.brand-mark { font-size: 0.92rem; letter-spacing: 0.22em; font-weight: 800; margin-bottom: 24px; }
.profile-mini { text-align: center; padding: 20px 18px; border-radius: 24px; background: rgba(255, 255, 255, 0.12); margin-bottom: 22px; }
.profile-mini img,.profile-avatar { object-fit: cover; border-radius: 50%; }
.profile-mini img { width: 78px; height: 78px; border: 4px solid rgba(255, 255, 255, 0.22); margin-bottom: 12px; }
.profile-mini h6 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.35rem; }
.profile-mini h6,.profile-mini span { color: #fff; }
.profile-mini span { font-size: 0.78rem; opacity: 0.74; }
.side-nav { display: flex; flex-direction: column; gap: 8px; }
.nav-group-label {
    margin-top: 10px;
    padding: 10px 14px 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}
.side-nav a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-radius: 16px;
    padding: 11px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: 0.2s ease;
    font-size: 0.95rem;
}
.side-nav a:hover,.side-nav a.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.sidebar-foot { color: rgba(255, 255, 255, 0.72); font-size: 0.74rem; }
.content-panel { padding: 12px 4px 12px 0; }
.topbar-card,.content-card,.metric-card { border-radius: 28px; }
.topbar-card { padding: 26px 30px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-card h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.85rem, 2.2vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.content-card h3 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.3rem, 1.45vw, 1.65rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}
.content-card { padding: 24px; }
.metric-card { padding: 24px; }
.metric-card span,.grid-stats label { display: block; color: var(--muted); font-size: 0.82rem; }
.metric-card strong { display: block; margin-top: 8px; font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.grid-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-stats strong { display: block; font-size: 0.92rem; margin-top: 6px; }
.tag-active,.tag-soft { border-radius: 999px; padding: 8px 14px; font-size: 0.8rem; font-weight: 700; }
.tag-active { background: var(--success-soft); color: var(--success-text); }
.tag-soft { background: var(--primary-soft); color: var(--primary); }
.modern-table thead th {
    color: var(--muted);
    font-weight: 700;
    border-bottom-color: var(--line);
    font-size: 0.86rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}
.modern-table tbody td {
    border-bottom-color: var(--line);
    font-size: 0.9rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.clean-list { margin: 0; padding-left: 1rem; }
.clean-list li + li { margin-top: 8px; }
.profile-header-card { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 88px; height: 88px; }
.soft-alert { border-radius: 18px; border: 0; }
.table-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: #f2f5fb;
}
.product-image-preview,
.formation-preview-image-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-preview img,
.formation-preview-image-wrap img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}
.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-category-field {
    position: relative;
}

.product-category-field__action {
    position: absolute;
    top: -10px;
    right: 0;
    z-index: 2;
}

.product-category-field__button {
    flex-shrink: 0;
    min-width: 72px;
    border-radius: 18px;
    background: #fff;
}
.product-gallery-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
    min-height: 145px;
    display: flex;
    flex-direction: column;
}
.product-upload-card {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-upload-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(69, 87, 140, 0.10);
    border-color: #cad6ff;
}
.product-slot-input {
    display: none;
}
.product-gallery-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f2f5fb;
}
.topbar-subscription-status {
    margin-top: 12px;
}
.marketing-body {
    padding: 22px;
}
.marketing-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
}
.marketing-header,
.marketing-hero,
.marketing-section,
.marketing-cta,
.marketing-signup-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.marketing-header,
.marketing-section,
.marketing-cta {
    border-radius: 28px;
}
.marketing-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.marketing-brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.24em;
    font-weight: 800;
}
.marketing-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.marketing-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}
.marketing-hero {
    border-radius: 34px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
    background:
        radial-gradient(circle at top left, rgba(111, 143, 255, 0.2), transparent 24%),
        linear-gradient(140deg, rgba(79, 108, 247, 0.1), rgba(255, 255, 255, 0.75));
    margin-bottom: 24px;
}
.marketing-copy h1 {
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin: 18px 0 16px;
    max-width: 720px;
}
.marketing-copy p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 640px;
}
.marketing-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}
.marketing-highlights div,
.marketing-card,
.marketing-step,
.faq-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    padding: 20px;
}
.marketing-highlights strong,
.marketing-card h4,
.marketing-step strong,
.faq-card h4 {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}
.marketing-highlights span,
.marketing-card p,
.marketing-step p,
.faq-card p,
.marketing-form-note,
.pricing-card p,
.pricing-card small,
.pricing-renewal {
    color: var(--muted);
}
.marketing-signup-card {
    border-radius: 28px;
    padding: 28px;
}
.marketing-form-note {
    margin: 14px 0 0;
    font-size: 0.88rem;
}
.marketing-section {
    padding: 28px;
    margin-bottom: 22px;
}
.marketing-benefits,
.marketing-steps,
.faq-grid {
    display: grid;
    gap: 16px;
}
.marketing-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.marketing-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.marketing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-step span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 14px;
}
.marketing-pricing,
.subscription-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.pricing-card {
    position: relative;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(241,245,255,0.92) 100%);
    padding: 26px;
}
.pricing-card.featured {
    border-color: rgba(74, 103, 244, 0.18);
    box-shadow: 0 26px 40px rgba(74, 103, 244, 0.12);
}
.pricing-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.pricing-card strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    margin: 18px 0 8px;
    letter-spacing: -0.04em;
}
.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
}
.marketing-cta {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.marketing-alert {
    border-radius: 22px;
    margin-bottom: 18px;
}
.subscription-shell {
    display: grid;
    gap: 20px;
}
.subscription-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.subscription-summary-card small {
    display: block;
    color: var(--muted);
    margin-top: 8px;
}
.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.production-context-menu {
    position: fixed;
    z-index: 1200;
    min-width: 190px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(90, 112, 196, 0.12);
    box-shadow: 0 20px 38px rgba(31, 45, 89, 0.14);
    display: none;
}
.production-context-menu.is-visible {
    display: block;
}
.production-context-menu__item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--text);
}
.production-context-menu__item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.materials-alert-list,
.materials-orders-list {
    display: grid;
    gap: 12px;
}
.materials-alert-item,
.materials-order-card {
    border: 1px solid rgba(90, 112, 196, 0.12);
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
}
.materials-alert-item strong,
.materials-order-card strong {
    display: block;
}
.materials-alert-item span,
.materials-order-meta {
    color: var(--muted);
    font-size: 0.9rem;
}
.materials-order-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.product-gallery-card span {
    display: block;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}
.formation-main-preview {
    min-height: 180px;
}
.preview-card {
    position: sticky;
    top: 20px;
}
.preview-card .content-card,
.preview-card {
    max-width: 430px;
}
.tabs-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    background: #fbfdff;
}
.formation-tabs-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.formation-tab-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    transition: 0.2s ease;
}
.formation-tab-button:hover {
    color: var(--primary);
    border-color: #cad6ff;
    background: #f7f9ff;
}
.formation-tab-button.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: transparent;
}
.formation-tab-panel {
    display: none;
}
.formation-tab-panel.active {
    display: block;
}
.formation-tab-panel .form-tab-header {
    display: none;
}
.form-tab-header {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 18px;
}
.total-pill {
    padding: 10px 16px;
    border-radius: 999px;
    background: #eff4ff;
    color: var(--text);
    font-weight: 700;
    font-size: 0.86rem;
}
.selectable-table tbody tr {
    cursor: pointer;
}
.selectable-table tbody tr.active-row {
    background: #f0f5ff;
}
.topbar-actions .btn,
.section-head .btn {
    min-width: 160px;
}
.btn-sm {
    font-size: 0.82rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.formation-channels-table {
    min-width: 1120px;
}
.formation-channels-table th,
.formation-channels-table td {
    white-space: nowrap;
    vertical-align: middle;
}
.formation-channels-table th:first-child,
.formation-channels-table td:first-child {
    min-width: 240px;
}
.formation-channels-table th:nth-child(2),
.formation-channels-table td:nth-child(2),
.formation-channels-table th:nth-child(3),
.formation-channels-table td:nth-child(3),
.formation-channels-table th:nth-child(4),
.formation-channels-table td:nth-child(4),
.formation-channels-table th:nth-child(5),
.formation-channels-table td:nth-child(5),
.formation-channels-table th:nth-child(6),
.formation-channels-table td:nth-child(6),
.formation-channels-table th:nth-child(7),
.formation-channels-table td:nth-child(7),
.formation-channels-table th:nth-child(8),
.formation-channels-table td:nth-child(8) {
    min-width: 130px;
}
.formation-channels-table th:last-child,
.formation-channels-table td:last-child {
    min-width: 110px;
}
.formation-channels-table .form-select,
.formation-channels-table .form-control {
    min-width: 100%;
}
.formation-channels-table .channel-select {
    min-width: 240px;
}
.sales-price-edit-input {
    max-width: 130px;
}
.modal-content .form-control[readonly] {
    background: #f8faff;
}
#sales-price-detail-percentual-lucro,
#sales-price-detail-preco-venda {
    background: #eaffea;
    font-weight: 700;
}
#sales-price-detail-custo-final {
    background: #ffefef;
    color: #b42318;
    font-weight: 700;
}
.catalog-body {
    background:
        radial-gradient(circle at top left, rgba(92, 116, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #f7f8fd 0%, #eef2fb 100%);
    min-height: 100vh;
}
.catalog-shell {
    color: var(--catalog-secondary);
}
.catalog-hero {
    padding: 24px 18px 12px;
}
.catalog-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(140deg, var(--catalog-primary) 0%, color-mix(in srgb, var(--catalog-primary) 76%, white) 100%);
    border-radius: 34px;
    padding: 28px;
    color: #fff;
    box-shadow: 0 28px 60px rgba(69, 87, 140, 0.18);
}
.catalog-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}
.catalog-brand-logo {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.22);
    padding: 8px;
}
.catalog-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.8;
}
.catalog-brand h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 3rem);
}
.catalog-subtitle {
    margin: 10px 0 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
}
.catalog-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 18px 40px;
}
.catalog-categories-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}
.catalog-category-chip {
    white-space: nowrap;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--catalog-secondary);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(69, 87, 140, 0.08);
}
.catalog-category-chip.active {
    background: var(--catalog-primary);
    color: #fff;
    border-color: transparent;
}
.catalog-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}
.catalog-section-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 800;
}
.catalog-count {
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--catalog-primary);
    font-weight: 700;
}
.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.catalog-product-card,
.catalog-empty-state,
.catalog-modal-content {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 48px rgba(69, 87, 140, 0.12);
}
.catalog-product-card {
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.catalog-card-carousel {
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
}
.catalog-product-image-button {
    border: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    cursor: pointer;
}
.catalog-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.catalog-card-carousel-control,
.catalog-gallery-carousel-control {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(32, 38, 60, 0.54);
    border-radius: 50%;
    opacity: 1;
}
.catalog-card-carousel-control.carousel-control-prev,
.catalog-gallery-carousel-control.carousel-control-prev {
    left: 14px;
}
.catalog-card-carousel-control.carousel-control-next,
.catalog-gallery-carousel-control.carousel-control-next {
    right: 14px;
}
.catalog-card-indicators {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.catalog-card-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.58);
}
.catalog-card-indicators button.active {
    background: #fff;
    width: 22px;
    border-radius: 999px;
}
.catalog-product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.catalog-product-code {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.catalog-product-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    min-height: 2.8em;
}
.catalog-product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--catalog-secondary);
}
.catalog-buy-button {
    width: 100%;
    margin-top: auto;
    background: linear-gradient(135deg, var(--catalog-primary) 0%, color-mix(in srgb, var(--catalog-primary) 78%, white) 100%);
}
.catalog-direct-buy-button {
    width: 100%;
    border-color: color-mix(in srgb, var(--catalog-primary) 60%, white);
    color: var(--catalog-primary);
    background: rgba(255, 255, 255, 0.96);
}
.catalog-direct-buy-button:hover {
    border-color: transparent;
    background: color-mix(in srgb, var(--catalog-primary) 12%, white);
    color: var(--catalog-primary);
}
.catalog-buy-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.catalog-empty-state {
    border-radius: 28px;
    padding: 28px;
    text-align: center;
}
.catalog-gallery-carousel {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
    margin-bottom: 16px;
}
.catalog-gallery-carousel .carousel-item img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}
.catalog-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
}
.catalog-gallery-thumb {
    border: 2px solid transparent;
    background: #fff;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(69, 87, 140, 0.10);
}
.catalog-gallery-thumb.active {
    border-color: var(--catalog-primary);
    box-shadow: 0 16px 28px rgba(74, 103, 244, 0.18);
}
.catalog-gallery-thumb img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
}
.catalog-modal-content {
    border-radius: 28px;
}
.agenda-calendar {
    min-height: 720px;
}
.agenda-side-card {
    height: 100%;
}
.fc {
    --fc-border-color: var(--line);
    --fc-button-bg-color: var(--primary);
    --fc-button-border-color: var(--primary);
    --fc-button-hover-bg-color: #435fe8;
    --fc-button-hover-border-color: #435fe8;
    --fc-button-active-bg-color: #3b57df;
    --fc-button-active-border-color: #3b57df;
    --fc-today-bg-color: rgba(74, 103, 244, 0.10);
    font-family: 'Poppins', Arial, sans-serif;
}
.fc .fc-toolbar-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.fc .fc-button {
    border-radius: 12px;
    box-shadow: none;
}
.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number,
.fc .fc-timegrid-slot-label-cushion,
.fc .fc-timegrid-axis-cushion {
    color: var(--text);
    text-decoration: none;
}
.fc .fc-event {
    border: 0;
    border-radius: 12px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #2747c7 0%, #496df5 100%);
    box-shadow: 0 8px 18px rgba(73, 109, 245, 0.22);
}
.fc .fc-event-main,
.fc .fc-event-title,
.fc .fc-event-time {
    color: #ffffff;
    font-weight: 600;
}
.fc .fc-daygrid-event {
    margin-top: 4px;
}
.fc .fc-timegrid-event {
    border-radius: 16px;
}
.fc .fc-daygrid-event-dot {
    border-color: #fff;
}
.agenda-google-badge-connected {
    background: #ddfff0;
    color: #0d9f62;
}
.agenda-google-badge-disconnected {
    background: #fff1f1;
    color: #c63636;
}
.print-body {
    background: #f4f7ff;
    font-family: 'Poppins', Arial, sans-serif;
}
.print-shell {
    padding: 32px 16px;
}
.print-document {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 22px 60px rgba(31, 45, 89, 0.12);
}
.print-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 20px;
    background: #f7f9ff;
    padding: 10px;
}
.print-card {
    background: #f9fbff;
    border: 1px solid rgba(90, 112, 196, 0.12);
    border-radius: 22px;
    padding: 20px;
}
.print-card h5 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
}
.order-actions-wrap .btn {
    min-width: 96px;
}
.order-actions-wrap .btn-light {
    border: 1px solid rgba(90, 112, 196, 0.18);
    background: #ffffff;
    color: #1f2947;
    box-shadow: 0 10px 24px rgba(31, 45, 89, 0.06);
}
.order-actions-wrap .btn-light:hover {
    border-color: rgba(74, 103, 244, 0.32);
    background: #f7f9ff;
    color: #2445c7;
}
.order-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}
.order-status-pendente {
    background: #fff6db;
    color: #b7791f;
}
.order-status-aprovado {
    background: #ddfff0;
    color: #14804a;
}
.order-status-reprovado {
    background: #ffe3e3;
    color: #c53030;
}
.order-status-aberto {
    background: #e4ecff;
    color: #3554d1;
}
.order-status-finalizado {
    background: #e6fffa;
    color: #0f766e;
}
.order-status-default {
    background: #eef2ff;
    color: #5c678d;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.dashboard-metric {
    position: relative;
    overflow: hidden;
}
.dashboard-metric::after {
    content: '';
    position: absolute;
    inset: auto -30px -30px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 103, 244, 0.12), transparent 68%);
}
.dashboard-metric span {
    font-size: 0.84rem;
    font-weight: 700;
    color: #65708f;
}
.dashboard-metric strong {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-top: 12px;
}
.dashboard-metric small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.8rem;
}
.dashboard-chart-card {
    min-height: 420px;
}
.dashboard-chart-wrap {
    position: relative;
    min-height: 320px;
}
.kanban-board-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}
.kanban-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    gap: 18px;
    align-items: start;
}
.kanban-column {
    min-height: 420px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f9fbff 0%, #f4f7ff 100%);
    border: 1px solid rgba(90, 112, 196, 0.12);
    box-shadow: 0 16px 34px rgba(31, 45, 89, 0.08);
}
.kanban-column-head {
    padding: 18px 18px 10px;
    border-bottom: 1px solid rgba(90, 112, 196, 0.10);
}
.kanban-column-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}
.kanban-column-head span {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}
.kanban-dropzone {
    min-height: 340px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.kanban-drop-hover {
    background: rgba(74, 103, 244, 0.06);
    border-radius: 18px;
}
.kanban-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(90, 112, 196, 0.12);
    box-shadow: 0 14px 28px rgba(31, 45, 89, 0.08);
    padding: 16px;
    cursor: grab;
}
.kanban-card.dragging {
    opacity: 0.45;
    transform: rotate(1deg);
}
.kanban-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.kanban-card-head strong {
    font-size: 0.96rem;
}
.kanban-card-head span {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}
.kanban-card h5 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
}
.kanban-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.84rem;
}
.kanban-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.kanban-meta span {
    font-size: 0.82rem;
    color: #52607e;
}
.kanban-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kanban-card-actions .btn {
    min-width: 0;
}
.mobile-sidebar-toggle,
.mobile-sidebar-close,
.sidebar-backdrop,
.mobile-list-cards {
    display: none;
}
.mobile-list-cards {
    gap: 14px;
}
.mobile-list-card {
    background: #fff;
    border: 1px solid rgba(90, 112, 196, 0.12);
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(31, 45, 89, 0.08);
    padding: 16px;
}
.mobile-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.mobile-list-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--heading);
}
.mobile-list-subtitle {
    margin: 2px 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}
.mobile-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.mobile-list-item {
    background: #f8faff;
    border: 1px solid rgba(90, 112, 196, 0.08);
    border-radius: 16px;
    padding: 12px;
}
.mobile-list-item span {
    display: block;
    margin-bottom: 4px;
    color: #65708f;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mobile-list-item strong,
.mobile-list-item div {
    color: var(--heading);
    font-size: 0.92rem;
    font-weight: 700;
}
.mobile-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.mobile-list-actions .btn,
.mobile-list-actions form {
    flex: 1 1 calc(50% - 4px);
}
.mobile-list-actions form .btn {
    width: 100%;
}
.mobile-list-media {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-list-media .table-thumb {
    flex-shrink: 0;
}
.preview-card {
    height: 100%;
}
.order-form-section {
    border-radius: 20px;
}
.order-items-table-wrap {
    overflow-x: auto;
}
.order-items-table td .form-control,
.order-items-table td .form-select {
    min-width: 0;
}
.order-form-actions .btn,
.order-form-actions form {
    min-width: 0;
}
.order-form-actions form .btn {
    width: 100%;
}
@media (max-width: 991px) {
    .auth-shell,.app-shell { grid-template-columns: 1fr; }
    .auth-hero,.auth-card { min-height: auto; }
    .panel-body { padding: 12px; }
    .content-panel { padding: 0; }
    .sidebar-panel {
        gap: 24px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        z-index: 1200;
        overflow-y: auto;
        transform: translateX(-110%);
        transition: transform 0.28s ease;
        border-radius: 0 28px 28px 0;
    }
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.38);
        opacity: 0;
        visibility: hidden;
        transition: 0.25s ease;
        z-index: 1190;
    }
    body.sidebar-mobile-open {
        overflow: hidden;
    }
    body.sidebar-mobile-open .sidebar-panel {
        transform: translateX(0);
    }
    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .mobile-sidebar-toggle,
    .mobile-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .preview-card { position: static; }
    .product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-head {
        gap: 14px;
    }
    .section-head > * {
        width: 100%;
    }
    .section-head .d-flex,
    .section-head .btn-group,
    .section-head .tag-soft {
        flex-wrap: wrap;
    }
    .row.g-4 > [class*="col-xl-"],
    .row.g-4 > [class*="col-lg-"] {
        width: 100%;
    }
    .order-form-layout > [class*="col-"] {
        width: 100%;
    }
    .agenda-calendar {
        min-height: 620px;
    }
    .order-actions-wrap {
        justify-content: flex-start !important;
    }
    .order-status-badge {
        min-width: 0;
    }
    .kanban-board {
        grid-auto-columns: minmax(280px, 280px);
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .auth-body { padding: 14px; align-items: flex-start; }
    .auth-hero,.auth-card-inner,.simple-auth-card,.content-card,.topbar-card,.metric-card { padding: 18px; }
    .hero-card,.grid-stats { grid-template-columns: 1fr; }
    .auth-shell-login { grid-template-columns: 1fr; }
    .auth-shell { gap: 16px; }
    .auth-hero { display: none; }
    .auth-hero-copy { margin-top: 24px; }
    .auth-hero h1 { font-size: clamp(1.9rem, 11vw, 2.8rem); }
    .hero-card-login { display: none; }
    .auth-login-actions { flex-direction: column; align-items: stretch; }
    .auth-login-actions > a {
        width: 100%;
        justify-content: center;
        text-align: center;
        order: 2;
    }
    .auth-login-actions .btn { width: 100%; }
    .auth-login-actions .btn { order: 1; }
    .topbar-card,.section-head,.profile-header-card { flex-direction: column; align-items: flex-start; }
    .section-head .btn,
    .section-head .tag-soft,
    .section-head .tag-active {
        width: auto;
    }
    .table-responsive.d-none.d-md-block {
        display: none !important;
    }
    .mobile-list-cards {
        display: flex;
        flex-direction: column;
    }
    .mobile-list-grid {
        grid-template-columns: 1fr;
    }
    .mobile-list-actions .btn,
    .mobile-list-actions form {
        flex: 1 1 100%;
    }
    .mobile-list-head {
        flex-direction: column;
    }
    .order-form-actions .btn,
    .order-form-actions form {
        flex: 1 1 100%;
    }
    .order-items-table thead {
        display: none;
    }
    .order-items-table,
    .order-items-table tbody,
    .order-items-table tr,
    .order-items-table td {
        display: block;
        width: 100%;
    }
    .order-items-table tr.order-item-row {
        background: #fff;
        border: 1px solid rgba(90, 112, 196, 0.12);
        border-radius: 20px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 12px 24px rgba(31, 45, 89, 0.06);
    }
    .order-items-table td {
        border: none;
        padding: 0 0 12px;
    }
    .order-items-table td:last-child {
        padding-bottom: 0;
    }
    .order-items-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #65708f;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .order-items-table td.text-end {
        text-align: left !important;
    }
    .order-items-table td.text-end .btn {
        width: 100%;
    }
    .tag-soft,
    .tag-active,
    .order-status-badge {
        max-width: 100%;
        text-align: center;
    }
    .product-gallery-grid { grid-template-columns: 1fr; }
    .catalog-hero { padding: 14px 14px 8px; }
    .catalog-hero-inner { padding: 22px 18px; border-radius: 26px; }
    .catalog-brand { align-items: flex-start; flex-direction: column; }
    .catalog-brand-logo { width: 64px; height: 64px; border-radius: 18px; }
    .catalog-content { padding: 14px 14px 28px; }
    .catalog-section-head { align-items: flex-start; }
    .catalog-products-grid { grid-template-columns: 1fr; gap: 14px; }
    .catalog-product-body h3 { min-height: auto; }
    .catalog-card-carousel-control,
    .catalog-gallery-carousel-control {
        width: 36px;
        height: 36px;
    }
    .catalog-card-carousel-control.carousel-control-prev,
    .catalog-gallery-carousel-control.carousel-control-prev {
        left: 10px;
    }
    .catalog-card-carousel-control.carousel-control-next,
    .catalog-gallery-carousel-control.carousel-control-next {
        right: 10px;
    }
    .agenda-calendar {
        min-height: 540px;
    }
    .fc .fc-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .fc .fc-toolbar-chunk {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .fc .fc-button-group,
    .fc .fc-toolbar-chunk > * {
        max-width: 100%;
    }
    .order-actions-wrap .btn {
        min-width: 0;
    }
    .kanban-board {
        grid-auto-columns: minmax(250px, 250px);
    }
    .kanban-card {
        padding: 14px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-chart-card {
        min-height: 360px;
    }
    .dashboard-chart-wrap {
        min-height: 260px;
    }
}
@media (max-width: 767px) {
    .marketing-body {
        padding: 14px;
    }
    .marketing-header,
    .marketing-hero,
    .marketing-section,
    .marketing-cta,
    .marketing-signup-card {
        border-radius: 22px;
    }
    .marketing-header {
        flex-direction: column;
        align-items: stretch;
    }
    .marketing-nav {
        justify-content: space-between;
    }
    .marketing-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .marketing-copy h1 {
        font-size: 2.35rem;
    }
    .marketing-highlights,
    .marketing-benefits,
    .marketing-steps,
    .marketing-pricing,
    .faq-grid,
    .subscription-summary-grid,
    .subscription-plan-grid {
        grid-template-columns: 1fr;
    }
    .marketing-section,
    .marketing-signup-card,
    .marketing-cta {
        padding: 22px;
    }
    .marketing-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .topbar-subscription-status .tag-soft {
        display: inline-flex;
        margin-top: 6px;
    }
    .materials-order-meta {
        flex-direction: column;
        gap: 6px;
    }
}
@media print {
    .print-body {
        background: #fff;
    }
    .print-shell {
        padding: 0;
    }
    .print-document {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-width: none;
    }
}
