/* div widgets */
.widget {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 5px;
    font-size: 14px;
}

/*  */
.widget-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* widget nome */
.widget-name {
    font-weight: 600;
    min-width: 50px;
}

.widget-main {
    flex: 1;          /* ocupa o espaço livre */
    display: flex;    /* controla os filhos */
    align-items: center;
}

input[type="range"] {
    accent-color: #ff7a18;   /* cursor + fill */
    background: #ffe0cc;     /* fundo */
    border: none;
    outline: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* canto direito do widget "real value" + "status" */
.widget-right {
    
    /*
    border-radius: 4px;
    background-color: #c4c4c4;
     */

    height: 20px;
    min-width: 100px;
    margin-left: auto;
    display: flex;
    align-items: center;   /* ✅ */
    justify-content: flex-end; /* ✅ garante ficar à direita */
    gap: 6px;
}

/*
.widget-right > * {
    display: flex;
    align-items: center;
}
*/


/* valor real da variavel */
.hide-span,
.real-value {
    font-size: 13px;
    color: #777;
    min-width: 36px;
    text-align: right;
}

.hide-span.slide {
    padding-right: 5px;
    text-align: center;
}

/* Valor real input */
.hide-input,
.real-input {
    display: none;
    width: 52px;
    min-height: 16px;
    font-size: 13px;
}

/* abs?? */
.real-value.abs {
    font-size: 12px;
    min-width: 48px;
    text-align: right;
    color: #666;
}

/* abs?? */
.real-value.editable {
    cursor: pointer;
}

.abs-input {
    width: 60px;
    font-size: 13px;
    flex: 1;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
}

/* Status */
.status {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #dc3545;
}
/* Status ok */
.status.ok {
    background: #28a745;
}


.checkbox-group-vertical {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    accent-color: #ffb47d;   /* cursor + fill */
}

.int-input {
    width: 60px;
    font-size: 13px;
    flex: 1;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Input de string */
.string-input {
    width: 60px;
    font-size: 13px;
    flex: 1;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* botão da casa */
.return-btn {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #999;          /* cinza quando NÃO é default */
}

/* quando está no valor default */
.return-btn.active {
    /*color: #268fff;*/
    color: #ffa353;
}

/* botão da casa */
.home-btn {
    width: 16px;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #999;          /* cinza quando NÃO é default */
}

/* quando está no valor default */
.home-btn.active {
    /*color: #268fff;*/
    color: #ffa353;
}