
#sugestoes-view {
    padding: 24px;
    background: #f8fafc;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sugestoes-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sugestoes-topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sugestoes-brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    flex-shrink: 0;
}

.sugestoes-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.sugestoes-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 3px;
    display: block;
}

.sugestoes-mode-switcher {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    gap: 4px;
}

.sug-switch-btn {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sug-switch-btn:hover {
    color: #0f172a;
}

.sug-switch-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sug-badge-counter {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 700;
}

.sugestoes-grid-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .sugestoes-grid-layout {
        grid-template-columns: 1fr;
    }
}

.sug-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 20px 24px;
    box-sizing: border-box;
}

.sug-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}

.sug-card-header-flex {
    justify-content: space-between;
    align-items: center;
}

.sug-card-header-icon {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sug-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sug-card-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 3px 0 0 0;
}

.sug-form-group {
    margin-bottom: 16px;
}

.sug-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sug-label .required {
    color: #ef4444;
}

.sug-label .optional {
    color: #94a3b8;
    font-weight: 400;
}

.sug-label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sug-select,
.sug-input,
.sug-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.sug-select:focus,
.sug-input:focus,
.sug-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sug-textarea {
    resize: vertical;
    line-height: 1.5;
}

.sug-help-text {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 5px;
}

.sug-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-sug-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
}

.sug-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 12px;
}

.sug-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sug-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sug-items-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 270px);
    overflow-y: auto;
    padding-right: 4px;
}

.sug-user-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.sug-user-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sug-item-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.sug-item-module-tag {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sug-item-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sug-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.sug-item-desc {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 10px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.sug-item-justification {
    background: #ffffff;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
}

.sug-item-justification.just-danger {
    border-left-color: #ef4444;
    background: #fff5f5;
}

.sug-item-justification.just-success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.sug-just-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.sug-just-text {
    font-size: 0.82rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.sug-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sug-badge-pendente {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.sug-badge-deferida {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.sug-badge-implantada {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.sug-badge-indeferida {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.sug-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.sug-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.sug-empty-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px 0;
}

.sug-empty-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
}

.sug-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.sug-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.sug-kpi-card.kpi-pendente { border-left: 4px solid #f59e0b; }
.sug-kpi-card.kpi-deferida { border-left: 4px solid #3b82f6; }
.sug-kpi-card.kpi-implantada { border-left: 4px solid #10b981; }
.sug-kpi-card.kpi-indeferida { border-left: 4px solid #ef4444; }

.sug-kpi-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sug-kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 2px 0;
}

.sug-kpi-sub {
    font-size: 0.72rem;
    color: #94a3b8;
}

.sug-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    gap: 14px;
    flex-wrap: wrap;
}

.sug-admin-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.sug-filter-search {
    position: relative;
    min-width: 240px;
}

.sug-filter-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.sug-filter-search input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    font-size: 0.82rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

.sug-admin-filters select,
.sug-filter-date input {
    padding: 7px 10px;
    font-size: 0.82rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
}

.sug-filter-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
}

.sug-admin-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sug-badge-inline {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 4px;
}

.sug-table-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.sug-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sug-admin-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.sug-admin-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}

.sug-admin-table tbody tr:hover {
    background: #fafbfd;
}

.sug-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.sug-actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.btn-deferir-action {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-deferir-action:hover {
    background: #059669;
    color: #ffffff;
}

.btn-indeferir-action {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-indeferir-action:hover {
    background: #dc2626;
    color: #ffffff;
}

.sug-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sug-modal-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    animation: sugModalSlide 0.25s ease-out;
}

.sug-modal-box-large {
    max-width: 760px;
}

@keyframes sugModalSlide {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sug-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.sug-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sug-modal-icon.icon-success { background: #d1fae5; color: #059669; }
.sug-modal-icon.icon-danger { background: #fee2e2; color: #dc2626; }
.sug-modal-icon.icon-primary { background: #dbeafe; color: #2563eb; }

.sug-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sug-modal-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.sug-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.sug-modal-close:hover {
    color: #0f172a;
}

.sug-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.sug-modal-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #334155;
}

.sug-modal-footer {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sug-modules-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 6px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sug-mod-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
}

.sug-deferidas-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

.sug-deferida-pick-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.15s ease;
}

.sug-deferida-pick-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.sug-pick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sug-pick-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.84rem;
    color: #1e293b;
    cursor: pointer;
}

.sug-custom-note-input {
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.78rem;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.changelog-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 14px;
}

.changelog-timeline-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 18px 22px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    position: relative;
}

.changelog-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.changelog-version-tag {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.changelog-meta-date {
    font-size: 0.78rem;
    color: #64748b;
}

.changelog-rel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 6px 0 10px 0;
}

.changelog-rel-desc {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 14px 0;
    white-space: pre-wrap;
}

.changelog-modules-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.changelog-mod-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.changelog-linked-suggestions {
    background: #f8fafc;
    border-left: 3px solid #10b981;
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 10px;
}

.changelog-sug-item {
    font-size: 0.82rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.sug-modal-whatsnew-overlay {
    background: rgba(15, 23, 42, 0.75);
}

.sug-modal-whatsnew {
    max-width: 650px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.whatsnew-header {
    background: #ffffff;
    color: #0f172a;
    padding: 24px 28px 18px 28px;
    border-bottom: 1px solid #e2e8f0;
}

.whatsnew-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.whatsnew-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.whatsnew-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 4px 0 0 0;
}

.whatsnew-body-scroll {
    max-height: 52vh;
    overflow-y: auto;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
}

.whatsnew-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.whatsnew-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.whatsnew-counter-info {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.btn-whatsnew-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
}
