/* ========================================================== */ /* VARIÁVEIS E BASE */ /* ========================================================== */ :host { --brand: #E33DCF; --blue: #030FAA; --text: #111214; --muted: rgba(17, 18, 20, 0.65); --success-bg: rgba(25, 135, 84, 0.1); --success-text: #198754; --warn-bg: rgba(255, 193, 7, 0.15); --warn-text: #b58100; --radius-xl: 22px; --radius-lg: 16px; --shadow-card: 0 22px 46px rgba(17, 18, 20, 0.10); --glass-bg: rgba(255, 255, 255, 0.82); --glass-border: 1px solid rgba(227, 61, 207, 0.16); display: block; font-family: 'Inter', sans-serif; color: var(--text); box-sizing: border-box; } /* fallback: garante que o footer global não apareça nesta rota */ :host ::ng-deep app-footer { display: none !important; } /* ========================================================== */ /* LAYOUT PRINCIPAL (travado para não aparecer footer global) */ /* ========================================================== */ .chips-page { min-height: 100vh; /* ✅ igual Mureg: ocupa 100% da tela */ overflow-y: auto; padding: 0 12px; display: flex; align-items: flex-start; justify-content: center; position: relative; background: radial-gradient(900px 420px at 20% 10%, rgba(227, 61, 207, 0.14), transparent 60%), radial-gradient(820px 380px at 80% 30%, rgba(227, 61, 207, 0.08), transparent 60%), linear-gradient(180deg, #ffffff 0%, #f5f5f7 70%); &::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(255, 255, 255, 0.25); } } .page-blob { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(34px); opacity: 0.55; z-index: 0; background: radial-gradient(circle at 30% 30%, rgba(227,61,207,0.55), rgba(227,61,207,0.06)); animation: floaty 10s ease-in-out infinite; &.blob-1 { width: 420px; height: 420px; top: -140px; left: -140px; } &.blob-2 { width: 520px; height: 520px; top: -220px; right: -240px; animation-duration: 12s; } &.blob-3 { width: 360px; height: 360px; bottom: -180px; left: 25%; animation-duration: 14s; } &.blob-4 { width: 520px; height: 520px; bottom: -260px; right: -260px; animation-duration: 16s; opacity: .45; } } @keyframes floaty { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18px, 10px) scale(1.03); } 100% { transform: translate(0, 0) scale(1); } } .container-chips { width: 100%; max-width: 1240px; position: relative; z-index: 1; margin: 40px auto 24px; /* ✅ garante centralização horizontal */ display: flex; min-height: 0; } /* ========================================================== */ /* CARD PRINCIPAL */ /* ========================================================== */ .chips-card { width: 100%; border-radius: var(--radius-xl); overflow-y: auto; background: var(--glass-bg); border: var(--glass-border); backdrop-filter: blur(12px); box-shadow: var(--shadow-card); position: relative; display: flex; flex-direction: column; height: auto; /* ✅ ocupa a altura útil (igual sensação do Mureg) */ min-height: 70vh; &::before { content: ''; position: absolute; inset: 1px; border-radius: calc(var(--radius-xl) - 1px); pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.65); opacity: 0.75; } } .chips-header { padding: 16px 24px; border-bottom: 1px solid rgba(17, 18, 20, 0.06); background: linear-gradient(180deg, rgba(227, 61, 207, 0.06), rgba(255, 255, 255, 0.2)); flex-shrink: 0; } .header-row-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; @media (max-width: 768px) { grid-template-columns: 1fr; text-align: center; .title-badge { justify-self: center; margin-bottom: 8px; } .header-actions { justify-self: center; } } } .title-badge { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(227, 61, 207, 0.22); backdrop-filter: blur(10px); color: var(--text); font-size: 13px; font-weight: 800; i { color: var(--brand); } } .header-title { justify-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; } .title { font-size: 24px; font-weight: 950; letter-spacing: -0.3px; color: var(--text); margin-top: 10px; margin-bottom: 0; } .subtitle { color: rgba(17, 18, 20, 0.65); font-weight: 700; } .header-actions { justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; white-space: nowrap; } } /* ========================================================== */ /* TABS E FILTROS */ /* ========================================================== */ .tab-row { display: flex; gap: 8px; justify-content: center; margin-top: 16px; } .tab-btn { border: 1px solid rgba(17, 18, 20, 0.1); background: rgba(255, 255, 255, 0.5); color: var(--muted); padding: 8px 16px; border-radius: 12px; font-weight: 800; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; &:hover { color: var(--text); background: #fff; } &.active { color: var(--brand); border-color: rgba(227, 61, 207, 0.35); background: #fff; box-shadow: 0 6px 16px rgba(227, 61, 207, 0.15); } } .controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; } /* Pesquisa */ .search-group { max-width: 270px; border-radius: 12px; overflow: hidden; display: flex; align-items: stretch; background: #fff; border: 1px solid rgba(17, 18, 20, 0.15); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); transition: all 0.2s ease; &:focus-within { border-color: var(--brand); box-shadow: 0 4px 12px rgba(227, 61, 207, 0.15); transform: translateY(-1px); } .input-group-text { background: transparent; border: none; color: var(--muted); padding-left: 14px; } .form-control { border: none; background: transparent; padding: 10px 0; font-size: 0.9rem; color: var(--text); box-shadow: none; &:focus { outline: none; } } .btn-clear { background: transparent; border: none; color: var(--muted); padding: 0 12px; cursor: pointer; &:hover { color: #dc3545; } } } /* Filtros */ .filters-row { display: flex; gap: 16px; align-items: center; margin-top: 12px; justify-content: center; } .filter-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(17, 18, 20, 0.08); border-radius: 12px; } .filter-tab { border: none; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 800; color: var(--muted); transition: all 0.2s; &.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(227, 61, 207, 0.15); } } /* Select */ .select-wrapper { position: relative; display: inline-block; min-width: 90px; } .select-glass { appearance: none; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(17, 18, 20, 0.15); border-radius: 12px; color: var(--blue); font-weight: 800; font-size: 0.9rem; padding: 8px 36px 8px 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); cursor: pointer; transition: all 0.2s ease; width: 100%; &:hover { background: #fff; border-color: var(--blue); } } .btn-brand { background-color: var(--brand); border-color: var(--brand); color: #fff; font-weight: 900; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; &:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(227, 61, 207, 0.25); filter: brightness(1.05); } } .btn-glass { border-radius: 12px; font-weight: 900; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(3, 15, 170, 0.24); color: var(--blue); transition: all 0.2s ease; &:hover { background: #fff; border-color: var(--brand); color: var(--brand); transform: translateY(-1px); } } /* ========================================================== */ /* BODY (scroll interno igual Mureg) */ /* ========================================================== */ .chips-body { padding: 0; background: transparent; flex: 1; min-height: 70vh; overflow: visible; display: flex; flex-direction: column; } .content-scroll { padding: 16px; overflow: visible; height: auto; flex: 1; min-height: 0; } /* Lists / Groups */ .group-list { display: flex; flex-direction: column; gap: 12px; } .group-card { background: #fff; border-radius: 16px; border: 1px solid rgba(17, 18, 20, 0.08); overflow: hidden; transition: all 0.3s ease; &:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(227, 61, 207, 0.1); } &.expanded { border-color: var(--brand); box-shadow: 0 8px 24px rgba(227, 61, 207, 0.12); } } .group-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: linear-gradient(180deg, #fff, #fdfdfd); &:hover .group-toggle-icon { color: var(--brand); } } .group-info { display: flex; flex-direction: column; gap: 6px; } .group-title { margin: 0; font-weight: 800; color: var(--text); font-size: 1rem; } .group-badges { display: flex; gap: 8px; } .badge-pill { font-size: 0.7rem; padding: 4px 10px; border-radius: 999px; font-weight: 800; text-transform: uppercase; background: rgba(3, 15, 170, 0.1); color: var(--blue); } .group-toggle-icon { font-size: 1.2rem; color: var(--muted); transition: transform 0.3s ease; } .group-card.expanded .group-toggle-icon { transform: rotate(180deg); color: var(--brand); } .group-body-content { border-top: 1px solid rgba(17, 18, 20, 0.06); background: #fbfbfc; animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1); padding: 0; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .empty-group { background: rgba(255,255,255,0.7); border: 1px dashed rgba(17,18,20,0.12); border-radius: 16px; padding: 18px; text-align: center; font-weight: 800; color: var(--muted); } /* Table */ .table-wrap { overflow-x: auto; overflow-y: visible; height: auto; min-height: 0; } .inner-table-wrap { max-height: none; } .table-section { padding: 6px 10px 12px; } .table-section + .table-section { border-top: 1px dashed rgba(17, 18, 20, 0.12); margin-top: 8px; } .section-label { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 6px; } .table-modern { width: 100%; border-collapse: separate; border-spacing: 0; thead th { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 2px solid rgba(227, 61, 207, 0.15); padding: 12px; color: rgba(17, 18, 20, 0.7); font-size: 0.8rem; font-weight: 950; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; text-align: center !important; &:hover { color: var(--brand); } } tbody tr { transition: background-color 0.2s; border-bottom: 1px solid rgba(17, 18, 20, 0.05); &:hover { background-color: rgba(227, 61, 207, 0.05); } td { border-bottom: 1px solid rgba(17, 18, 20, 0.04); } } td { padding: 12px; vertical-align: middle; white-space: nowrap; font-size: 0.875rem; color: var(--text); text-align: center !important; } } .sort-caret { font-size: 0.75rem; color: rgba(17, 18, 20, 0.35); &.active { color: var(--brand); } } .th-content { display: inline-flex; align-items: center; gap: 6px; justify-content: center; } .text-brand { color: var(--brand) !important; } .font-monospace { font-family: 'JetBrains Mono', monospace; letter-spacing: -0.5px; } .td-clip { max-width: 260px; overflow-y: auto; text-overflow: ellipsis; } .row-clickable { cursor: pointer; } .actions-col { min-width: 152px; } /* Paginação interna */ .table-pagination { padding: 12px 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .page-info { font-weight: 800; color: var(--muted); } /* Ações na tabela (estilo Mureg) */ .action-group { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; } .action-group .btn-icon { width: 32px; height: 32px; border: none; background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(17,18,20,0.5); transition: all 0.2s; cursor: pointer; &:hover { background: rgba(17,18,20,0.05); color: var(--text); transform: translateY(-1px); } &.info:hover { color: var(--brand); background: rgba(227, 61, 207, 0.12); } &.primary:hover { color: var(--blue); background: rgba(3, 15, 170, 0.1); } &.danger:hover { color: #dc3545; background: rgba(220, 53, 69, 0.12); } } /* ========================================================== */ /* FOOTER interno (igual Mureg) */ /* ========================================================== */ .chips-footer { padding: 14px 24px; border-top: 1px solid rgba(17, 18, 20, 0.06); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; @media (max-width: 768px) { justify-content: center; text-align: center; } } .pagination-modern .page-link { color: var(--blue); font-weight: 900; border-radius: 10px; border: 1px solid rgba(17,18,20,0.1); background: rgba(255,255,255,0.6); margin: 0 2px; &:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); } } .pagination-modern .page-item.active .page-link { background-color: var(--blue); border-color: var(--blue); color: #fff; } /* ========================================================== */ /* MODAIS (mantidos) */ /* ========================================================== */ .modal-backdrop-custom { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9990; backdrop-filter: blur(4px); } .modal-custom { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9995; padding: 16px; } .modal-card { background: #ffffff; border: 1px solid rgba(255,255,255,0.8); border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; display: flex; flex-direction: column; animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); width: min(850px, 100%); max-height: 90vh; min-height: 0; } .modal-card.modal-xl-custom { width: min(980px, 92vw); max-height: 82vh; } .modal-card.modal-lg { width: min(720px, 92vw); max-height: 80vh; } @keyframes modalPop { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } } .modal-header { padding: 16px 24px; border-bottom: 1px solid rgba(0,0,0,0.06); background: #fff; display: flex; justify-content: space-between; align-items: center; .modal-title { font-size: 1.1rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 12px; } .icon-bg { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: rgba(3, 15, 170, 0.1); color: var(--blue); &.primary-soft { background: rgba(3, 15, 170, 0.1); color: var(--blue); } &.danger-soft { background: rgba(220, 53, 69, 0.12); color: #dc3545; } &.success { background: var(--success-bg); color: var(--success-text); } &.brand-soft { background: rgba(227, 61, 207, 0.1); color: var(--brand); } } .btn-icon { color: var(--muted); background: transparent; font-size: 1.2rem; border:none; cursor: pointer; &:hover { color: var(--brand); } } } .modal-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; &.bg-light-gray { background-color: #f8f9fa; } } .modal-body .box-body { overflow: visible; } .modal-footer { flex-shrink: 0; } .modal-card.create-modal { width: min(1080px, 95vw); max-height: 86vh; } .modal-card.create-modal .modal-header { background: linear-gradient(180deg, rgba(227, 61, 207, 0.08), #ffffff 70%); } .modal-card.create-modal .modal-body { background: linear-gradient(180deg, rgba(248, 249, 250, 0.96), rgba(255, 255, 255, 0.98)); } .modal-card.create-modal .edit-sections { gap: 14px; } .modal-card.create-modal .detail-box { border: 1px solid rgba(227, 61, 207, 0.14); box-shadow: 0 10px 24px rgba(17, 18, 20, 0.06); } .modal-card.create-modal .box-header { color: var(--brand); background: linear-gradient(135deg, rgba(227, 61, 207, 0.1), rgba(3, 15, 170, 0.07)); } .modal-card.create-modal .box-body { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 252, 0.96)); } .modal-card.create-modal .form-field label { color: rgba(17, 18, 20, 0.68); } .modal-card.create-modal .form-control, .modal-card.create-modal .form-select { min-height: 40px; } .modal-card.create-modal .form-check-input { width: 1.05rem; height: 1.05rem; border-color: rgba(17, 18, 20, 0.32); &:focus { box-shadow: 0 0 0 3px rgba(227, 61, 207, 0.15); } &:checked { background-color: var(--brand); border-color: var(--brand); } } .modal-card.create-modal .modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 20px !important; background: linear-gradient(180deg, #ffffff, rgba(248, 249, 251, 0.95)); } .modal-card.create-modal .modal-footer .btn { border-radius: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; min-width: 120px; } .modal-card.create-modal .modal-footer .btn.me-2 { margin-right: 0 !important; } @media (max-width: 700px) { .modal-card { border-radius: 16px; } .modal-header { padding: 12px 16px; } .modal-body { padding: 16px; } .modal-card.create-modal .modal-footer { flex-direction: column-reverse; } .modal-card.create-modal .modal-footer .btn { width: 100%; min-width: 0; } } .details-dashboard { display: grid; grid-template-columns: 1fr; gap: 20px; } div.detail-box { background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 8px rgba(0,0,0,0.02); overflow-y: auto; height: auto; display: flex; flex-direction: column; } div.box-header { padding: 10px 16px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(0,0,0,0.04); background: #fdfdfd; display: flex; align-items: center; } div.box-body { padding: 16px; } .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; } .info-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 8px; background: rgba(245, 245, 247, 0.5); border-radius: 10px; border: 1px solid rgba(0,0,0,0.03); &.span-2 { grid-column: span 2; } .lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--muted); margin-bottom: 2px; } .val { font-size: 0.85rem; font-weight: 700; color: var(--text); word-break: break-word; line-height: 1.2; } } .edit-sections { display: grid; gap: 12px; } .edit-sections .detail-box { border: 1px solid rgba(17, 18, 20, 0.08); box-shadow: 0 8px 22px rgba(17, 18, 20, 0.06); } summary.box-header { cursor: pointer; user-select: none; list-style: none; i:not(.transition-icon) { color: var(--brand); margin-right: 6px; } &::-webkit-details-marker { display: none; } } .transition-icon { color: var(--muted); transition: transform 0.25s ease, color 0.25s ease; } details[open] .transition-icon { transform: rotate(180deg); color: var(--brand); } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; @media (max-width: 700px) { grid-template-columns: 1fr; } } .form-field { display: flex; flex-direction: column; gap: 6px; &.span-2 { grid-column: span 2; } label { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(17, 18, 20, 0.64); } } .form-control, .form-select { border-radius: 10px; border: 1px solid rgba(17,18,20,0.15); background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; &:hover { border-color: rgba(17, 18, 20, 0.36); } &:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227,61,207,0.15); outline: none; transform: translateY(-1px); } } .confirm-delete { border: 1px solid rgba(220, 53, 69, 0.16); background: #fff; border-radius: 14px; padding: 18px 16px; display: flex; align-items: center; gap: 12px; p { font-weight: 700; color: rgba(17, 18, 20, 0.85); } } .confirm-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(220, 53, 69, 0.12); color: #dc3545; flex-shrink: 0; }