html {
    font-size: 16px;
}

body.app-body {
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #1f2937;
    overflow-x: hidden;
}

.app-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    min-height: 70px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.app-logo {
    height: 38px;
    width: auto;
    display: block;
}

.app-brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.app-menu-button {
    border: 1px solid #d9e3b2;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fbef;
}

    .app-menu-button:focus,
    .app-menu-button:active,
    .app-menu-button:focus-visible {
        box-shadow: none;
        outline: none;
    }

    .app-menu-button .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%2820,20,20,0.85%29' stroke-width='2.2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }
.app-main {
    padding-top: 18px;
    padding-bottom: 24px;
}

.app-content {
    min-height: calc(100vh - 90px);
}

.app-user-pill {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

.app-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 600;
}
.app-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 90px);
    padding: 20px;
}

.app-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

    .app-card:hover {
        transform: translateY(-2px);
    }

.app-card-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.app-card-header p {
    font-size: 0.95rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 22px;
}

.app-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-btn-primary {
    background: #95C11F;
    border: none;
    color: white;
}

    .app-btn-primary:hover {
        background: #7da818;
    }

.app-btn-secondary {
    background: #f3f4f6;
    border: none;
    color: #111827;
}

    .app-btn-secondary:hover {
        background: #e5e7eb;
    }


@media (max-width: 991.98px) {
    .app-brand-text {
        font-size: 0.95rem;
    }

    .navbar-collapse {
        padding-top: 12px;
        padding-bottom: 6px;
    }

        .navbar-collapse .app-btn,
        .navbar-collapse .app-user-pill,
        .navbar-collapse form {
            width: 100%;
        }
}

@media (min-width: 992px) {
    .app-main {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .app-logo {
        height: 42px;
    }
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

    .auth-header h1 {
        font-size: 1.7rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: #0f172a;
    }

    .auth-header p {
        margin: 0;
        font-size: 0.96rem;
        color: #6b7280;
    }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.auth-input {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    padding: 12px 14px;
    font-size: 1rem;
    box-shadow: none !important;
}

    .auth-input:focus {
        border-color: #95C11F;
        box-shadow: 0 0 0 0.18rem rgba(149, 193, 31, 0.18) !important;
    }

.auth-row-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: -2px;
}

.auth-submit {
    min-height: 50px;
    border: none;
    border-radius: 14px;
    background: #95C11F;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.2s ease;
}

    .auth-submit:hover {
        background: #83ab1c;
        color: #ffffff;
    }

    .auth-submit:focus,
    .auth-submit:active {
        box-shadow: none;
    }

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin-top: 6px;
}

    .auth-links a {
        color: #475569;
        text-decoration: none;
        font-size: 0.94rem;
        font-weight: 500;
    }

        .auth-links a:hover {
            color: #95C11F;
            text-decoration: none;
        }

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 575.98px) {
    .auth-page {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-card {
        max-width: 100%;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}
.auth-code-input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
    font-weight: 700;
}
.auth-card-wide {
    max-width: 760px;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.setup-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fafafa;
}

.setup-step-number {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #95C11F;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.setup-step-content {
    flex: 1;
}

    .setup-step-content h2 {
        font-size: 1.05rem;
        margin: 0 0 8px 0;
        font-weight: 700;
        color: #111827;
    }

    .setup-step-content p {
        margin-bottom: 10px;
        color: #4b5563;
    }

.setup-links a {
    text-decoration: none;
    color: #475569;
}

    .setup-links a:hover {
        color: #95C11F;
    }

.qr-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin: 14px 0 16px 0;
}

.qr-box {
    min-height: 200px;
    min-width: 200px;
}

.manual-key-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.manual-key-box {
    background: #f3f4f6;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    margin-bottom: 8px;
}

    .manual-key-box kbd {
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
        background: transparent;
        padding: 0;
    }

.manual-key-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

.settings-section {
    margin-top: 22px;
}

    .settings-section h2 {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 14px;
        color: #111827;
    }

.settings-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    font-size: 0.92rem;
}

.settings-badge-success {
    background: #eaf6d0;
    color: #4d6b0d;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.app-action-btn,
.app-action-btn-primary {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 600;
    padding: 10px 16px;
}

.app-action-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
}

    .app-action-btn:hover {
        background: #e5e7eb;
        color: #111827;
    }

.app-action-btn-primary {
    background: #95C11F;
    border: none;
    color: #ffffff;
}

    .app-action-btn-primary:hover {
        background: #83ab1c;
        color: #ffffff;
    }

.app-alert {
    border-radius: 16px;
    margin-bottom: 18px;
}

@media (max-width: 575.98px) {
    .setup-step {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .setup-step-number {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .qr-box {
        min-width: 180px;
        min-height: 180px;
    }
}
.manage-nav {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.manage-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.manage-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manage-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    transition: 0.2s ease;
}

    .manage-nav-link:hover {
        background: #f1f5f9;
        color: #111827;
        text-decoration: none;
    }

    .manage-nav-link.active {
        background: #95C11F;
        border-color: #95C11F;
        color: #ffffff !important;
    }

        .manage-nav-link.active:hover {
            background: #83ab1c;
            border-color: #83ab1c;
            color: #ffffff !important;
        }

@media (min-width: 992px) {
    .manage-nav {
        position: sticky;
        top: 90px;
    }
}
.manage-page {
    padding: 6px 0 20px 0;
}

.manage-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.manage-sidebar {
    min-width: 0;
}

.manage-content {
    min-width: 0;
}

@media (min-width: 992px) {
    .manage-shell {
        grid-template-columns: 280px minmax(0, 1fr);
        align-items: start;
    }
}
.admin-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 24px 0;
}

.admin-header {
    margin-bottom: 22px;
}

    .admin-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 6px;
        color: #0f172a;
    }

    .admin-header p {
        margin: 0;
        color: #6b7280;
    }

.admin-header-with-action {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-back-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

    .admin-back-btn:hover {
        background: #e5e7eb;
        color: #111827;
    }

.admin-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.admin-card-link {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

    .admin-card-link:hover {
        transform: translateY(-2px);
        color: #111827;
        border-color: #d9e3b2;
    }

.admin-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.admin-card-link h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-card-link p {
    margin: 0;
    color: #6b7280;
}

.admin-empty-state {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

    .admin-empty-state h2 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .admin-empty-state p {
        margin: 0;
        color: #6b7280;
    }

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-list-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.admin-list-main {
    min-width: 0;
}

.admin-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.admin-list-subtitle {
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.95rem;
}

.admin-list-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-btn-success,
.admin-btn-danger {
    min-height: 46px;
    border-radius: 14px;
    font-weight: 600;
    border: none;
}

.admin-btn-success {
    background: #95C11F;
    color: #ffffff;
}

    .admin-btn-success:hover {
        background: #83ab1c;
        color: #ffffff;
    }

.admin-btn-danger {
    background: #dc2626;
    color: #ffffff;
}

    .admin-btn-danger:hover {
        background: #b91c1c;
        color: #ffffff;
    }

.status-ok {
    color: #4d6b0d;
    font-weight: 700;
}

.status-pending {
    color: #b45309;
    font-weight: 700;
}

@media (min-width: 768px) {
    .admin-header-with-action {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .admin-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .admin-list-actions {
        width: 220px;
        flex-shrink: 0;
    }
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.admin-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
    margin-bottom: 8px;
}

.admin-stat-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .admin-card-topline h2 {
        margin: 0;
    }

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #95C11F;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.admin-filters-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 18px;
}

.admin-filters-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-filter-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
}

.admin-filter-input {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    box-shadow: none !important;
}

    .admin-filter-input:focus {
        border-color: #95C11F;
        box-shadow: 0 0 0 0.18rem rgba(149, 193, 31, 0.18) !important;
    }

.admin-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-btn-primary,
.admin-btn-neutral {
    min-height: 46px;
    border-radius: 14px;
    font-weight: 600;
}

.admin-btn-primary {
    background: #95C11F;
    color: #ffffff;
    border: none;
}

    .admin-btn-primary:hover {
        background: #83ab1c;
        color: #ffffff;
    }

.admin-btn-neutral {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
}

    .admin-btn-neutral:hover {
        background: #e5e7eb;
        color: #111827;
    }

.admin-results-info {
    margin-bottom: 14px;
    color: #4b5563;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .admin-filters-form {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 220px;
        align-items: end;
    }

    .admin-filter-actions {
        flex-direction: row;
    }
}
.user-home-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 24px 0;
}

.user-home-header {
    margin-bottom: 22px;
}

    .user-home-header h1 {
        font-size: 1.9rem;
        font-weight: 700;
        margin-bottom: 6px;
        color: #0f172a;
    }

    .user-home-header p {
        margin: 0;
        color: #6b7280;
    }

.user-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.user-home-card {
    position: relative;
    min-height: 220px;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
    transition: 0.2s ease;
}

    .user-home-card:hover {
        transform: translateY(-3px);
        color: #ffffff;
    }

.card-crm {
    background-image: url('/images/crm.png');
}

.card-precos {
    background-image: url('/images/precos.png');
}

.card-meuspedidos {
    background-image: url('/images/meuspedidos.png');
}

.card-relatorios {
    background-image: url('/images/relatorios.png');
}
.user-home-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(1px);
}

.user-home-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
}

    .user-home-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .user-home-content p {
        margin: 0;
        max-width: 460px;
        color: rgba(255,255,255,0.92);
    }

@media (min-width: 768px) {
    .user-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-home-card {
        min-height: 280px;
    }
}
.crm-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 24px 0;
}

.crm-header {
    margin-bottom: 22px;
}

    .crm-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 6px;
        color: #0f172a;
    }

    .crm-header p {
        margin: 0;
        color: #6b7280;
    }

.crm-header-with-action {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crm-search-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin-bottom: 18px;
}

.crm-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.crm-search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crm-search-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
}

.crm-search-input {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    box-shadow: none !important;
}

    .crm-search-input:focus {
        border-color: #95C11F;
        box-shadow: 0 0 0 0.18rem rgba(149, 193, 31, 0.18) !important;
    }

.crm-search-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-meta-info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crm-results-info {
    margin-bottom: 14px;
    color: #4b5563;
    font-size: 0.95rem;
}

.crm-results-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.crm-result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.crm-result-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.crm-result-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.crm-result-code {
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.93rem;
}

.crm-result-status-wrap {
    display: flex;
    align-items: start;
}

.crm-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef6dc;
    color: #4d6b0d;
    font-weight: 700;
    font-size: 0.88rem;
}

.crm-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.crm-result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.crm-result-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.crm-result-value {
    color: #111827;
    word-break: break-word;
}

@media (min-width: 768px) {
    .crm-header-with-action {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .crm-search-form {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: end;
    }

    .crm-search-actions {
        flex-direction: row;
    }

    .crm-result-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .crm-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.crm-search-form-advanced {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.crm-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.crm-action-btn,
.crm-action-btn-primary {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 600;
    padding: 10px 16px;
}

.crm-action-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
}

    .crm-action-btn:hover {
        background: #e5e7eb;
        color: #111827;
    }

.crm-action-btn-primary {
    background: #95C11F;
    border: none;
    color: #ffffff;
}

    .crm-action-btn-primary:hover {
        background: #83ab1c;
        color: #ffffff;
    }

@media (min-width: 768px) {
    .crm-search-form-advanced {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 240px;
        align-items: end;
    }

    .crm-card-actions {
        grid-template-columns: repeat(2, minmax(0, 220px));
        justify-content: start;
    }
}
.crm-result-item-full {
    grid-column: 1 / -1;
}

.crm-no-data {
    color: #9ca3af;
    font-style: italic;
}

.crm-action-btn-disabled {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}
.visitas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visita-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.visita-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.visita-data {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.visita-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.88rem;
    width: fit-content;
}

.visita-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.visita-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.visita-obs {
    color: #111827;
    white-space: pre-line;
    line-height: 1.45;
}
.relatorios-filtros-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.relatorios-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.relatorios-filtros-acoes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.relatorio-seccao {
    margin-bottom: 18px;
}

.relatorio-seccao-summary,
.relatorio-grupo-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.relatorio-seccao-summary {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.relatorio-grupo-summary {
    padding: 0.9rem 1rem;
    font-weight: 600;
    color: #111827;
}

    .relatorio-seccao-summary::-webkit-details-marker,
    .relatorio-grupo-summary::-webkit-details-marker {
        display: none;
    }

    .relatorio-seccao-summary::marker,
    .relatorio-grupo-summary::marker {
        content: "";
    }

.relatorio-seccao-left,
.relatorio-grupo-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .relatorio-seccao-left::before,
    .relatorio-grupo-left::before {
        content: "\25B8"; /* seta cheia */
        display: inline-block;
        color: #6b7280;
        font-size: 0.95rem;
        width: 14px;
        text-align: center;
        flex-shrink: 0;
        transition: transform 0.22s ease, color 0.2s ease;
    }

.relatorio-seccao[open] > .relatorio-seccao-summary .relatorio-seccao-left::before,
.relatorio-grupo[open] > .relatorio-grupo-summary .relatorio-grupo-left::before {
    transform: rotate(90deg);
}

.relatorio-seccao-summary:hover .relatorio-seccao-left::before,
.relatorio-grupo-summary:hover .relatorio-grupo-left::before {
    color: #95C11F;
}

.relatorio-seccao-summary:hover,
.relatorio-grupo-summary:hover {
    background: rgba(149, 193, 31, 0.06);
    color: #0f172a;
}

    .relatorio-seccao-summary:hover .relatorio-seccao-left::before,
    .relatorio-grupo-summary:hover .relatorio-grupo-left::before {
        color: #95C11F;
    }

.relatorio-seccao-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #95C11F;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.relatorio-seccao-body {
    margin-top: 16px;
}

.relatorio-grupo {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.relatorio-grupo-count {
    background: #e8f2d0;
    color: #4b5f16;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.relatorio-grupo-body {
    padding: 0 1rem 1rem;
}
@media (min-width: 768px) {
    .visita-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.crm-result-grid-ordered {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-equipamento {
    order: 1;
}

.order-morada {
    order: 2;
}

.order-localidade {
    order: 3;
}

.order-pessoa {
    order: 4;
}

.order-telefone {
    order: 5;
}

.order-telemovel {
    order: 6;
}

.order-email {
    order: 7;
}

.order-resultado {
    order: 8;
}

.order-propostas {
    order: 9;
}

@media (min-width: 992px) {
    .crm-result-grid-ordered {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 28px;
    }

    .order-equipamento,
    .order-pessoa,
    .order-email,
    .order-morada,
    .order-telefone,
    .order-resultado,
    .order-localidade,
    .order-telemovel,
    .order-propostas {
        order: initial;
    }
}
.propostas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proposta-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.proposta-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.proposta-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    word-break: break-word;
}

.proposta-card-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.93rem;
}

.proposta-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 768px) {
    .proposta-card-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .proposta-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.proposal-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.proposal-section-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

    .proposal-section-card h2 {
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: #111827;
    }

.proposal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.proposal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.proposal-item-full {
    grid-column: 1 / -1;
}

.proposal-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.proposal-value {
    color: #111827;
    word-break: break-word;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .proposal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .proposal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.crm-propostas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-proposta-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 600;
}

.crm-proposta-tag-highlight {
    background: #95C11F;
    border-color: #95C11F;
    color: #ffffff;
}
.visit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visit-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.visit-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visit-form-field-full {
    grid-column: 1 / -1;
}

.visit-form-check {
    justify-content: end;
}

.visit-textarea {
    border-radius: 14px;
    border: 1px solid #d1d5db;
    box-shadow: none !important;
    padding: 12px 14px;
    resize: vertical;
}

    .visit-textarea:focus {
        border-color: #95C11F;
        box-shadow: 0 0 0 0.18rem rgba(149, 193, 31, 0.18) !important;
    }

.visita-card-pending {
    border-left: 4px solid #f59e0b;
}

.visita-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.visita-badge-pending {
    background: #fef3c7;
    color: #b45309;
}

.visita-submeta-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

.admin-empty-state-compact {
    padding: 18px;
}

    .admin-empty-state-compact p {
        margin: 0;
    }

@media (min-width: 768px) {
    .visit-form-grid {
        grid-template-columns: 180px 160px 220px minmax(0, 1fr);
        align-items: start;
    }

    .visit-form-check {
        padding-top: 38px;
    }
}
.visita-badge-rejected {
    background: #fee2e2;
    color: #b91c1c;
}
.card-relatorios {
    background-image: url('/images/relatorios.png');
}
.visita-badge-approved {
    background: #dcfce7;
    color: #166534;
}
.visita-card-rejected {
    border-left: 4px solid #dc2626;
}

.visita-card-approved {
    border-left: 4px solid #16a34a;
}

/* =========================================================
   LISTAS DE PREÇOS
   ========================================================= */

.lp-wrapper {
    padding: 20px 16px 30px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-header {
    margin-bottom: 24px;
}

    .lp-header h1 {
        margin: 0 0 8px 0;
        font-size: 28px;
        font-weight: 700;
        color: #1f2937;
    }

    .lp-header p {
        margin: 0;
        color: #6b7280;
        font-size: 15px;
    }

.lp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.lp-card {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid #eef0f3;
}

    .lp-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }

.lp-card-image {
    width: 100%;
    height: 210px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lp-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.lp-card-body {
    padding: 18px;
}

    .lp-card-body h2 {
        margin: 0 0 8px 0;
        font-size: 20px;
        color: #111827;
    }

    .lp-card-body p {
        margin: 0;
        font-size: 14px;
        color: #6b7280;
        line-height: 1.5;
    }

@media (min-width: 768px) {
    .lp-wrapper {
        padding: 30px 24px 40px 24px;
    }

    .lp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .lp-card-image {
        height: 240px;
    }
}
.lp-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.lp-card-body-centered {
    padding: 30px 20px;
    text-align: center;
}

    .lp-card-body-centered h2 {
        margin: 0 0 10px 0;
        font-size: 24px;
        color: #111827;
    }

    .lp-card-body-centered p {
        margin: 0;
        font-size: 14px;
        color: #6b7280;
        line-height: 1.5;
    }

@media (min-width: 768px) {
    .lp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

.proposal-item-full {
    grid-column: 1 / -1;
}
/* HEADER COM BOTÃO À DIREITA */
.lp-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

    .lp-header-row h1 {
        margin: 0 0 6px 0;
        font-size: 28px;
        font-weight: 700;
        color: #1f2937;
    }

    .lp-header-row p {
        margin: 0;
        color: #6b7280;
        font-size: 15px;
    }

/* BOTÃO MODERNO */
.lp-back-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #95C11F; /* cor Porteleva */
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(149, 193, 31, 0.3);
}

    .lp-back-btn-modern:hover {
        background: #7da619; /* versão ligeiramente mais escura */
        transform: translateY(-1px);
        color: #ffffff;
    }

/* MOBILE */
@media (max-width: 768px) {
    .lp-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-back-btn-modern {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/*ACORN*/
.ac-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-top: 24px;
    margin-bottom: 28px;
    align-items: start;
}

.ac-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ac-panel,
.ac-image-card,
.ac-price-card,
.ac-detail-card,
.ac-info-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #eef0f3;
}

.ac-panel,
.ac-detail-card,
.ac-info-card {
    padding: 22px;
}

.ac-info-card {
    margin-top: 8px;
}

.ac-image-card {
    overflow: hidden;
    padding: 0;
    display: block;
    min-height: 320px;
}

    .ac-image-card img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: center 5%;
        display: block;
    }

.ac-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.ac-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ac-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}

.ac-check {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.ac-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ac-btn-primary {
    border: none;
    background: #95C11F;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .ac-btn-primary:hover {
        background: #7da619;
    }

.ac-min-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ac-price-card {
    padding: 18px 20px;
    background: #7b003b;
    color: #fff;
}

.ac-price-card-min {
    background: #1f2937;
}

.ac-price-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.ac-price-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

    .ac-price-row.total {
        border-bottom: none;
        font-size: 18px;
        font-weight: 700;
        padding-top: 12px;
    }

.ac-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f3;
}

    .ac-detail-row:last-child {
        border-bottom: none;
    }

.ac-info-block {
    margin-bottom: 22px;
}

    .ac-info-block h3 {
        font-size: 16px;
        margin-bottom: 8px;
        color: #7b003b;
    }

    .ac-info-block p {
        margin: 0 0 4px 0;
    }

@media (max-width: 992px) {
    .ac-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ac-form-grid,
    .ac-options-grid {
        grid-template-columns: 1fr;
    }

    .ac-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ac-btn-primary {
        width: 100%;
    }
}
.ac-extra-select {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
}
.ac-proposta-box {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.ac-check input:disabled + span {
    opacity: 0.45;
}

.ac-check input:disabled {
    cursor: not-allowed;

}
.ac-check:has(input:disabled) {
    background: #f3f4f6;
    opacity: 0.7;
}
.ac-crm-toggle-wrap {
    margin-top: 14px;
}

.ac-btn-secondary {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #111827;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .ac-btn-secondary:hover {
        background: #e5e7eb;
    }

.ac-crm-panel {
    margin-top: 18px;
    padding-top: 8px;
}

.d-none {
    display: none !important;
}
.ac-crm-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}
    .ac-crm-actions .ac-btn-primary {
        min-width: 220px;
    }
.proposal-item-full {
    grid-column: 1 / -1;
}

#blocoValidacaoAdmin,
#blocoCondicoesAlt,
.ac-crm-actions {
    width: 100%;
}

.ac-crm-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.ac-detail-card.proposal-item-full {
    width: 100%;
}

#blocoValidacaoAdmin .field-validation-error {
    display: block;
    margin-top: 6px;
}


/* ORÇAMENTOS */

.orc-rejected-box {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.orc-valor {
    font-weight: 700;
    color: #1f2937;
}

.orc-valor-proposto {
    font-weight: 800;
    color: #166534;
    font-size: 1.05rem;
}
.section-spacing {
    margin-top: 24px;
}
/* CRM PANEL - organização premium */

.ac-crm-panel {
    margin-top: 22px;
    padding-top: 10px;
}

.ac-crm-section {
    grid-column: 1 / -1;
    margin-top: 26px;
}

    .ac-crm-section:first-child {
        margin-top: 8px;
    }

.ac-crm-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
}

.ac-crm-block {
    grid-column: 1 / -1;
}

.ac-crm-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
}

.ac-crm-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ac-crm-tight {
    margin-top: 14px;
}

.ac-crm-spacer {
    grid-column: 1 / -1;
    height: 10px;
}

#blocoValidacaoAdmin {
    margin-top: 24px;
}

#blocoCondicoesAlt {
    margin-top: 18px;
}

.ac-crm-actions {
    margin-top: 26px;
    display: flex;
    justify-content: flex-start;
}

    .ac-crm-actions .ac-btn-primary {
        min-width: 240px;
        min-height: 52px;
        border-radius: 14px;
        font-size: 16px;
    }

.ac-detail-card.proposal-item-full {
    width: 100%;
}

.ac-crm-panel .ac-check {
    min-height: 54px;
}

@media (max-width: 768px) {
    .ac-crm-actions .ac-btn-primary {
        width: 100%;
        min-width: 0;
    }

    .ac-crm-section {
        margin-top: 22px;
    }
}
#blocoValidacaoAdmin input.form-control {
    min-height: 50px;
    font-size: 1.05rem;
    letter-spacing: 0.08rem;
}

/* =========================================================
   HC1100
   ========================================================= */

.hc-page {
    --hc-verde: #5d8736;
    --hc-verde-claro: #dcebcf;
    --hc-verde-suave: #eef6e8;
    --hc-amarelo: #fff8cf;
    --hc-borda: #e5e7eb;
    --hc-texto: #1f2937;
    --hc-texto-suave: #6b7280;
}

.hc-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--hc-verde);
}

.hc-subtitle {
    margin: 0;
    color: var(--hc-texto-suave);
    font-size: 15px;
}

.hc-card {
    background: #ffffff;
    border: 1px solid var(--hc-borda);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.hc-card-body {
    padding: 22px;
}

.hc-card-header-green {
    background: var(--hc-verde);
    color: #ffffff;
    padding: 14px 18px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    font-weight: 700;
    font-size: 16px;
}

.hc-card-header-dark {
    background: #111827;
    color: #ffffff;
    padding: 14px 18px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    font-weight: 700;
    font-size: 16px;
}

.hc-image-box {
    background: #ffffff;
    border: 1px solid var(--hc-borda);
    border-radius: 16px;
    padding: 10px;
    text-align: center;
}

    .hc-image-box img {
        width: 100%;
        max-height: 240px;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

.hc-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid var(--hc-borda);
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 52px;
}

.hc-option-row-disabled {
    background: #f3f4f6;
    opacity: 0.75;
}

.hc-help-red {
    color: #cc0000;
    font-weight: 600;
}

.hc-result-box {
    border: 1px solid var(--hc-borda);
    border-radius: 14px;
    padding: 16px;
    background: var(--hc-verde-suave);
    height: 100%;
}

.hc-result-box-highlight {
    background: var(--hc-verde-claro);
    border-color: var(--hc-verde);
}

.hc-result-box-min {
    background: var(--hc-amarelo);
}

.hc-result-label {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 8px;
}

.hc-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
}

.hc-mini-card {
    border: 1px solid var(--hc-borda);
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .hc-mini-card span {
        font-size: 0.9rem;
        color: var(--hc-texto-suave);
    }

    .hc-mini-card strong {
        font-size: 1.02rem;
        color: var(--hc-texto);
    }

.hc-summary-card {
    position: sticky;
    top: 90px;
}

.hc-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    align-items: flex-start;
}

    .hc-summary-row span {
        color: var(--hc-texto-suave);
    }

    .hc-summary-row strong {
        color: var(--hc-texto);
        text-align: right;
    }

.hc-summary-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--hc-texto);
}

.hc-summary-list {
    margin: 0;
    padding-left: 18px;
}

.hc-summary-total strong {
    color: var(--hc-verde);
    font-size: 1.05rem;
}

.hc-form-section {
    margin-top: 26px;
}

    .hc-form-section:first-child {
        margin-top: 0;
    }

.hc-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
}

.hc-soft-box {
    background: #f9fafb;
    border: 1px solid var(--hc-borda);
    border-radius: 16px;
    padding: 16px;
}

.hc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hc-btn-primary {
    border: none;
    background: #95C11F;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .hc-btn-primary:hover {
        background: #7da619;
        color: #ffffff;
    }

.hc-btn-secondary {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #111827;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .hc-btn-secondary:hover {
        background: #e5e7eb;
        color: #111827;
    }

.hc-btn-dark {
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .hc-btn-dark:hover {
        background: #000000;
        color: #ffffff;
    }

.hc-alert-error {
    border-radius: 14px;
}

.hc-alert-warning {
    border-radius: 14px;
}

.hc-input-code {
    min-height: 50px;
    font-size: 1.05rem;
    letter-spacing: 0.08rem;
}

@media (max-width: 1199.98px) {
    .hc-summary-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .hc-title {
        font-size: 24px;
    }

    .hc-card-body {
        padding: 18px;
    }

    .hc-actions {
        flex-direction: column;
    }

    .hc-btn-primary,
    .hc-btn-secondary,
    .hc-btn-dark {
        width: 100%;
    }

    .hc-image-box img {
        max-height: 200px;
    }
}
/* HC1100 */
.hc-price-card {
    background: #5d8736;
}
/* HC1100 */
.hc-price-card {
    background: #5d8736 !important;
}

.hc1100-page .ac-info-block h3 {
    color: #5d8736;
}
.hc1100-page .ac-image-card img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #ffffff;
}
/* HC1000 */
.hc1000-page .ac-price-card {
    background: #2f6fb3 !important;
}

.hc1000-page .ac-info-block h3 {
    color: #2f6fb3;
}

.hc1000-page .ac-image-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #ffffff;
}

.hc1000-page .ac-info-block p strong {
    color: #111827;
}
/* Só afeta a página HC1000 */
.hc1000-page .ac-price-card {
    background: #2f6fb3 !important;
}

    .hc1000-page .ac-price-card.ac-price-card-min {
        background: #1f2937 !important;
        color: #fff !important;
        border: 1px solid #1f2937 !important;
    }

/* HCFreecurve*/
.hcfreecurve-page .ac-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 20px;
    align-items: start;
}

.hcfreecurve-page .ac-panel,
.hcfreecurve-page .ac-result-panel {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.hcfreecurve-page .ac-result-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px;
}

.hcfreecurve-page .ac-section-title,
.hcfreecurve-page .ac-result-title,
.hcfreecurve-page .ac-minimo-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.hcfreecurve-page .ac-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hcfreecurve-page .ac-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
}

.hcfreecurve-page .ac-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.hcfreecurve-page .ac-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
}

.hcfreecurve-page .ac-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hcfreecurve-page .ac-divider {
    height: 1px;
    background: #ececec;
    margin: 18px 0;
}

.hcfreecurve-page .ac-result-row,
.hcfreecurve-page .ac-minimo-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

    .hcfreecurve-page .ac-result-row:last-child,
    .hcfreecurve-page .ac-minimo-row:last-child {
        border-bottom: none;
    }

.hcfreecurve-page .ac-result-total strong {
    font-size: 1.1rem;
}

.hcfreecurve-page .ac-minimo-card {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
}

    .hcfreecurve-page .ac-minimo-card .ac-minimo-row {
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

.ac-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.ac-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
}

    .ac-check.disabled {
        opacity: .6;
    }

.ac-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ac-divider {
    height: 1px;
    background: #ececec;
    margin: 18px 0;
}

.ac-result-row,
.ac-minimo-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

    .ac-result-row:last-child,
    .ac-minimo-row:last-child {
        border-bottom: none;
    }

.ac-result-total strong {
    font-size: 1.1rem;
}

.ac-minimo-card {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 14px;
}

    .ac-minimo-card .ac-minimo-row {
        border-bottom: 1px solid rgba(255,255,255,.15);
    }
@media (max-width: 1100px) {
    .hcfreecurve-page .ac-grid {
        grid-template-columns: 1fr;
    }

    .hcfreecurve-page .ac-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .hcfreecurve-page .ac-form-grid,
    .hcfreecurve-page .ac-check-grid {
        grid-template-columns: 1fr;
    }
}

.hcfreecurve-page .fc-inline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.hcfreecurve-page .fc-inline-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
}

    .hcfreecurve-page .fc-inline-card .ac-section-title {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .hcfreecurve-page .fc-inline-card .ac-field label {
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 1.2;
    }

    .hcfreecurve-page .fc-inline-card .form-control {
        min-height: 38px;
        padding: 6px 10px;
    }
@media (max-width: 1100px) {
    .hcfreecurve-page .fc-inline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hcfreecurve-page .fc-inline-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ACORN - MOBILE
   ========================================================= */

.acorn-page .ac-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-top: 24px;
    margin-bottom: 28px;
    align-items: start;
}

.acorn-page .ac-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.acorn-page .ac-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.acorn-page .ac-panel,
.acorn-page .ac-detail-card,
.acorn-page .ac-info-card {
    padding: 22px;
}

.acorn-page .ac-image-card {
    overflow: hidden;
    padding: 0;
    display: block;
    min-height: 320px;
}

    .acorn-page .ac-image-card img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: center 5%;
        display: block;
    }

/* tablet */
@media (max-width: 1100px) {
    .acorn-page .ac-grid {
        grid-template-columns: 1fr;
    }

    .acorn-page .ac-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acorn-page .ac-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* mobile */
@media (max-width: 700px) {
    .acorn-page .ac-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .acorn-page .ac-side {
        order: 2;
    }

    .acorn-page .ac-panel {
        order: 1;
    }

    .acorn-page .ac-form-grid,
    .acorn-page .ac-options-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .acorn-page .ac-panel,
    .acorn-page .ac-detail-card,
    .acorn-page .ac-info-card,
    .acorn-page .ac-price-card {
        padding: 18px;
    }

    .acorn-page .ac-image-card {
        min-height: auto;
    }

        .acorn-page .ac-image-card img {
            height: 240px;
            object-fit: contain;
            object-position: center center;
            background: #ffffff;
        }

    .acorn-page .ac-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .acorn-page .ac-btn-primary,
    .acorn-page .ac-btn-secondary {
        width: 100%;
    }

    .acorn-page .ac-min-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .acorn-page .ac-check {
        min-height: 48px;
        padding: 12px 14px;
    }

    .acorn-page .form-control,
    .acorn-page .form-select {
        min-height: 48px;
    }

    .acorn-page .lp-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .acorn-page .lp-back-btn-modern {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
/* =========================================================
   HC4000
   ========================================================= */

.hc4000-page .ac-price-card {
    background: #d100d7 !important;
}

    .hc4000-page .ac-price-card.ac-price-card-min {
        background: #1f2937 !important;
        color: #fff !important;
        border: 1px solid #1f2937 !important;
    }
.hc4000-page .ac-image-card {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

    .hc4000-page .ac-image-card img {
        width: 100%;
        height: 320px;
        object-fit: contain;
        object-position: center center;
        display: block;
        background: #ffffff;
    }
@media (max-width: 700px) {
    .hc4000-page .ac-image-card {
        min-height: auto;
    }

        .hc4000-page .ac-image-card img {
            height: 240px;
            object-fit: contain;
            object-position: center center;
        }
}
.hc4000-page .ac-check.disabled {
    opacity: 0.6;
    background: #f3f4f6;
    cursor: not-allowed;
}

    .hc4000-page .ac-check.disabled input {
        pointer-events: none;
    }

.crm-opcional-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.crm-opcional-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 4px;
}

.crm-opcional-titulo {
    font-weight: 600;
}

.crm-opcional-estado {
    font-weight: 700;
}

.crm-opcional-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.crm-opcional-edit label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}