/* Editable Label Styles */

.label-editor-wrapper {
    display: inline-block;
    min-width: 200px;
    max-width: 100%;
    margin: 5px 0;
}

.editable-text-toolbar {
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 5px;
    border-radius: 4px 4px 0 0;
}

.editable-text-toolbar button {
    margin-right: 5px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    border-radius: 3px;
}

.editable-text-toolbar button:hover {
    background-color: #e0e0e0;
}

.editable-text-toolbar button.ql-active {
    background-color: #d0d0d0;
}

.editable-text-content {
    min-height: 40px;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    padding: 8px;
    background-color: white;
}

.editable-text-content .ql-editor {
    min-height: 30px;
    padding: 5px;
}

.editable-text-content .ql-editor:focus {
    outline: 2px solid #007bff;
}

/* Hide the default Quill snow theme toolbar since we use custom */
.label-editor-wrapper .ql-toolbar {
    display: none;
}

/* Style for labels in edit mode */
label[editable-label] {
    white-space: normal !important;
    display: block !important;
    width: 100%;
}

/* Preserve line breaks and formatting in labels */
label[editable-label] p {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    white-space: normal !important;
}

label[editable-label] br {
    display: block !important;
    content: "" !important;
    margin: 0.5em 0 !important;
}

span[editable-label] {
    white-space: normal !important;
    display: inline-block !important;
}

span[editable-label] p {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    white-space: normal !important;
}

/* Label Edit Header Container - Sticky positioning */
.label-edit-header {
    background-color: #e3f2fd;
    padding: 10px 15px;
    border-bottom: 2px solid #2196f3;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1050; /* Above modal content but below modal header */
    /*margin-bottom: 10px;*/
}

/* Label Editor Tabs */
.label-editor-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid #ddd;
}

.label-editor-tabs > li {
    margin-bottom: -1px;
}

.label-editor-tabs > li > a {
    margin-right: 2px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: #337ab7;
}

.label-editor-tabs > li > a:hover {
    background-color: #eee;
    border-color: #eee #eee #ddd;
}

.label-editor-tabs > li.active > a,
.label-editor-tabs > li.active > a:hover,
.label-editor-tabs > li.active > a:focus {
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: default;
}

.label-editor-tab-content {
    padding: 10px 0;
}

/* Label Edit Toggle Button Positioning */
.label-edit-toggle-top-right {
    display: flex !important;
    align-items: center;
    margin-right: auto !important;
}

.label-edit-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-mode-status {
    margin-left: 10px;
    color: #666;
    font-size: 13px;
}
