﻿
/* PANEL LOOK */
.editorpanel {
    width: 500px;
    height: 50dvh;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border: 1px solid #e3e3e3;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-x:hidden;
}

/* FIELD WRAPPER */
.editor-dropdown,
.font-editor {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* LABEL */
.editor-dropdown label,
.font-editor label {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 13px;
    font-weight: bold;
    color: #999;
    background: #fff;
    padding: 0 3px;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* SELECT BOX STYLE */
.editor-dropdown select,
.font-editor input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: 0.2s;
}

.editor-dropdown select:hover,
.font-editor input:hover{
    border-color: #808080;
}

.editor-dropdown select:focus,
.font-editor input:focus {
    outline: none;
    border-color: #0078d4;
    background: #fff;
}

/* Move label when select is focused or has value */
.editor-dropdown select:focus + label,
.editor-dropdown select:not(:placeholder-shown) + label,
.font-editor input:focus + label,
.font-editor input:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #0078d4;
}

/* BUTTON AREA */
.pbi-buttons {
    margin-top: 12px;
    display: flex;
    justify-content: center; /* Center horizontally */
    gap: 12px;
}

/* BUTTONS */
.pbi-btn {
    width: 100px; /* equal width */
    height: 35px;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

/* OK (Power BI Blue) */
.pbi-ok {
    background: #0078d4;
    color: white;
}
.pbi-ok:hover {
    background: #005fa3;
}

/* CANCEL */
.pbi-cancel {
    background: #e3e3e3;
}
.pbi-cancel:hover {
    background: #c9c9c9;
}

/* APPLY IMAGE */
.pbi-applyimg-btn {
    width: 200px; /* equal width */
    height: 35px;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.pbi-applyimg {
    background: #0078d4;
    color: white;
}

.pbi-applyimg:hover {
    background: #005fa3;
}

.editor-column-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; /* space between columns */
    width: 100%;
}

.barcode-type-editor {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px; /* space between columns */
    width: 100%;
}

.editor-divider {
    border: 1px solid #cfcfcf;
    margin: 10px;
}

/*======================= Search ==========================*/
/*
.pbi-search-dropdown {
    width: 100%;
    height : 200px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "Segoe UI", sans-serif;
}

.pbi-search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 14px;
    background: #f7f7f7;
}

.pbi-search-input:focus {
    outline: none;
    border-color: #0078d4;
    background: #fff;
}

.pbi-search-list {
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #e6e6e6;
    padding-top: 6px;
}

.pbi-search-item {
    padding: 6px 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.pbi-search-item:hover {
    background: #eef6ff;
}

.pbi-search-item.active {
    background: #e8f3ff;
    font-weight: 600;
    border-left: 3px solid #0078d4;
}
*/