/** Shopify CDN: Minification failed

Line 190:7 Expected ":"
Line 190:9 Expected identifier but found "8px"

**/
/* Layout */
.rfm-panel { padding: 12px 0; }
.controls-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
margin-bottom: 12px;
}
.control {
display: flex;
gap: 6px;
align-items: center;
}
input[type=number] {
width: 84px;
padding: 6px;
border-radius: 6px;
border: 1px solid #e2e8f0;
}
.nk-block > .card.card-bordered.card-full {
display: flex;
gap: 24px;
align-items: flex-start;
}

/* Coluna do heatmap */
.nk-block > .card.card-bordered.card-full > .card:first-child {
flex: 1 1 auto;
min-width: 0;
}

/* Coluna da direita (config + resumo) */
.nk-block > .card.card-bordered.card-full > .card:last-child {
width: 380px;
flex-shrink: 0;
}

#recency-period {
border: #52648452 1px solid;
border-radius: 5px;
width: 40%;
}

.rfm-heatmap-col {
width: 65%;
}
.rfm-data-col {
display: block;
}
.data-card {
width: 30%;
margin: auto 24px;
}

/* garante que o heatmap não estoure */
#rfm-table {
display: flex;
position: relative;
max-width: 100%;
overflow-x: auto;
}
.r-dropdown {
display: flex;
justify-content: space-between;
}
.rfm-metric {
display: flex;
justify-content: space-between;
gap: 12px;
padding: 6px 0;
font-size: 13px;
border-bottom: 1px dashed #e5e9f2;
}

.rfm-metric:last-child {
border-bottom: none;
}

/* Heatmap */
.rfm-heatmap {
width: 100%;
border-collapse: collapse;
margin-top: 12px;
table-layout: fixed;
}
.rfm-heatmap th,
.rfm-heatmap td {
border: 0;                    
padding: 0;                   
margin: 0;
text-align: center;
vertical-align: middle;
}
.rfm-heatmap th {
background: #fafafa;
font-weight: 700;
border-bottom: 1px solid #ddd;
}

/* Células do heatmap */
.rfm-cell {
position: relative;
cursor: pointer;
color: #0b1320;
font-weight: 700;
border-radius: 0;
padding: 18px 6px;
}

.rfm-cell:hover > .count {
transform: translateY(0);
transition: 0.3s
}
.rfm-cell:hover > .sub {
opacity: 1;
transition: 0.3s
}

.rfm-cell .count {
z-index: 3;
position: relative;
font-size: 18px;
margin-bottom: 6px;
transform: translateY(25px);
}
.rfm-cell .sub {
position: relative;
z-index: 3;
font-size: 12px;
color: rgba(0,0,0,0.6);
font-weight: 600;
opacity: 0;
}

/* Sidebar */
.rfm-sidebar {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
right: 0;
height: 100vh;
width: 420px;
background: #fff;
box-shadow: -12px 0 40px rgba(2,6,23,0.12);
transform: translateX(100%);
transition: transform .22s ease;
z-index: 1050;
overflow: auto;
padding: 18px 9px 0 9px;
border-left: 2px solid #ddd;
}
.rfm-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
z-index: 1025;
}
.rfm-overlay.active {
display: block;
}
.rfm-sidebar.open {
transform: translateX(0);
}
.rfm-sidebar .close {
position: absolute;
left: 10px;
top: 8px;
font-size: 22px;
cursor: pointer;
}
#sidebar-content .rfm-client:hover {
color: rgb(55, 84, 139);
color: #8251c2;
background: #f8fafc;
}
#sidebar-content .sortable {
cursor: pointer;
font-weight: 600;
}
#sidebar-content {
padding; 8px;
flex: 1;
overflow-y: auto;
}
#sidebar-title-container {
padding: 16px 0;
text-align: center;
font-size: 18px;
font-weight: 700;
line-height: 1.3;
}
.rfm-client {
display: flex;
text-decoration: none;
color: inherit;
border-bottom: 1px solid #ccc;
gap: 10px;
padding: 10px;
}
.client-name {
flex: 1;
width: 75%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding-right: 6px;
}

.client-name .main {
font-weight: 700;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.pagination {
position: sticky;
bottom: 0;
background: #fff;
padding: 12px 0 18px;
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #ddd;

font-size: 14px;
}
.pagination button {
padding: 6px 10px;
border-radius: 6px;
border: 1px solid #ccc;
background: #f7f7f7;
cursor: pointer;
}
.pagination button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.header-row {
font-weight: 800;
font-size: 15px;
display: flex;
padding: 8px;
border-bottom: 1px solid #ddd;
}
/*Heatmap*/
.btn-heatmap.active {
background: #334155;
border-color: #334155;
}
.btn-heatmap {
margin-bottom: 12px;
width: fit-content;
border: 1px solid;
}
.segment-badge {
padding: 6px 8px;
border-radius: 6px;
color: #fff;
font-weight: 700;
font-size: 12px;
}
#segment-overlays {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
width: 100%;
height: 100%;
}
.segment-overlay {
position:absolute;
border:2px solid rgb(0, 0, 0);
border-radius: none;
pointer-events:none;
}
.segment-overlay.show-heatmap {
position:absolute;
border-style: dashed;
box-shadow: 0 0 0 0 !important;
border-radius:8px !important;
background: none !important;
}
.segment-overlay .overlay-label {
position:absolute;
color: #fff;
font-weight:600;
padding:2px 6px;
border-radius:4px;
font-size:12px;
}
/* Cores específicas por segmento */
.segment-overlay[data-segment="Campeões"] {
z-index: 2;
box-shadow: 0 0 0 2px #f68a46;
border-color: #F68A46;
background-color: #F68A46;
}
.segment-overlay[data-segment="Clientes Leais"] {
box-shadow: 0 0 0 2px rgba(183, 214, 96, 0.8);
border-color:rgba(183, 214, 96, 0.8);
background-color:rgba(183, 214, 96, 0.8);
}
.segment-overlay[data-segment="Não pode perdê-los"] {
box-shadow: 0 1px 0 2px  #00C0F3;
border-color: #00C0F3;
background-color: #00C0F3;
}
.segment-overlay[data-segment="Em risco"] {
box-shadow: 0 0 0 2px  #FEC54E;
border-color: #FEC54E;
background-color: #FEC54E;
}
.segment-overlay[data-segment="Precisam de atenção"] {
box-shadow: 3px 1px 0 3px  #0088A5;
border-color: #0088A5;
background-color: #0088A5;
}
.segment-overlay[data-segment="Potenciais Clientes Leais"] {
box-shadow: 0 0 0 2px #00ffb3;
border-color: #00ffb3;
background-color: #00ffb3;
}
.segment-overlay[data-segment="Hibernando"] {
z-index: 2;
box-shadow: 0px 0px 0 1px  #6b7280;
border-color: #6b7280;
background-color: #6b7280;
}
.segment-overlay[data-segment="Prestes a dormir"] {
box-shadow: -1px 0px 0px 1px #936A4E;
border-color: #936A4E;
background-color: #936A4E;
}
.segment-overlay[data-segment="Promissores"] {
box-shadow: 0 0 0 2px  #AA6493;
border-color: #AA6493;
background-color: #AA6493;
}
.segment-overlay[data-segment="Clientes Recentes"] {
box-shadow: 0 0 0 2px  #72C8B5;
border-color: #72C8B5;
background-color: #72C8B5;
}
.segment-overlay[data-segment="Perdidos"] {
box-shadow: 0px 0px 0px 1px rgba(201, 55, 39, 0.8);
border-color:rgba(201, 55, 39, 0.8);
background-color:rgba(201, 55, 39, 0.8);
}
.second-col {  
gap: 16px;
margin-top: 60px;
display: flex;
flex-direction: column;
width: 30%;
}
.sidebar-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.sidebar-actions > :first-child { 
margin-right: auto; 
}
.sidebar-actions .btn-primary {
background: #fff;
border: none;
color: var(--primary-color);
}
.btn-primary:hover {
color: #fff;
border-color: rgb(183, 186, 194);
background-color: rgb(195, 198, 206);
}
.btn-collapsible {
max-width: 36px;
overflow: hidden;
transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, color 0.25s ease;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: 0.5rem;
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.btn-collapsible .icon {
flex-shrink: 0;
transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-collapsible span {
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease 0.12s;
}
.btn-collapsible:hover {
max-width: 220px;
padding-right: 1rem;
}
.btn-collapsible:hover .icon {
transform: scale(1.1);
}
.btn-collapsible:hover span {
opacity: 1;
pointer-events: auto;
}
/* Responsive tweaks */
@media (max-width: 900px) {
.rfm-sidebar {
    width: 100%;
}
}

@media (max-width: 991px) {
  .nk-block > .card.card-bordered.card-full {
    flex-direction: column;
  }

  .nk-block > .card.card-bordered.card-full > .card:last-child {
    width: 100%;
  }
}

.rfm-switch-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rfm-switch-text{
  margin: 0;
  line-height: 1.2;
}

.rfm-switch-row .custom-control{
  margin: 0;
}

.rfm-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.rfm-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rfm-tooltip-trigger {
    font-size: 18px;
    cursor: pointer;
    color: #8094ae;
    -webkit-writing-mode: vertical-lr;
    writing-mode: vertical-lr;
}

.rfm-tooltip-trigger:hover {
    color: #526484;
}

.rfm-tooltip {
    position: absolute;
    top: 120%;
    left: 0;
    width: 480px;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #364a63;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    z-index: 999;
}

.rfm-tooltip-wrapper:hover .rfm-tooltip {
    opacity: 1;
    visibility: visible;
}
