
.dialog_group{
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    top: 0;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000 !important;
}

.dialog_container{
    padding: 10px;
    border-radius: 10px;
    background-color: var(--white);
    max-height: 90vh;
    max-width: 80vh;
    flex-wrap: nowrap;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 10px;
    min-width: 300px;
    box-sizing: border-box;
}

.dialog_scroll_container{
     overflow-y: auto;
    border-radius: 10px;
    border-width: 2px;
    padding-right: 5px;
}

.dialog_pages{
    overflow: auto;
    height: 100%;
    flex-shrink: 1;
    flex-grow: 1;
    overflow-y: auto;
}

.dialog_pages_container{
    height: 100%;
    flex-wrap: nowrap;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    background-color: var(--app3);
    border-radius: 10px;
}

.dialog_map_container{

}

.map_small_container{
    position: relative;
    padding: 5px;
    border-radius: 10px;
    background: var(--white);
}

.map_small_btn{
    border-radius: 4px;
    background: var(--white);
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 800;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    padding: 5px;
    display: flex;
    cursor: pointer;
}

.map_small_btn:hover{
    background-color: #f4f4f4;
}

.map_small_btn_ico{
    width: 20px;
    height: 20px;
}

.dialog_page{
    padding: 20px;
    background: var(--app3);
    border-color: var(--card-border);
    border-style: solid;
    border-radius: 10px;
    border-width: 1px;
    gap: 10px;
    flex-wrap: nowrap;
    align-content: flex-start;
    align-items: stretch;
    display: flex;
    flex-direction: column;
}

.dialog_pages_label{
    border-bottom-style: solid;
    border-bottom-width: 2px;
    flex-shrink: 0;
}

.page_label{
    display: inline-block;
    padding: 5px 10px;
    background: var(--card-border);
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    border-bottom-style: solid;
    border-color: var(--app4);
    border-width: 2px;
}

.page_label:hover{
    background: var(--text-muted);
    color: var(--bg-main);
    border-color: var(--dark-slate);
}

.dialog_group_btn{
    display: flex;
    justify-content: start;
    margin-top: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.dialog_group_content{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 1;
    gap: 10px;
    min-height: 0;
}

.dialog_active_item_head_l{
    margin-right: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
}

.dialog_active_item_btn{
    width: 15px;
    height: 15px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    background: var(--white);
}

.dialog_active_item_btn:hover{
    background-color: var(--app1);
    filter: invert(1);
}

.dialog_active_item_head_r{
    margin-left: auto;
}

.dialog_active_item_ico{
    height: 20px;
    width: 20px;
}

.dialog_active_item_name{
    font-weight: bold;
}

.dialog_active_item_head{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.dialog_active_item{
    border-style: solid;
    border-width: 1px;
    border-color: var(--app8);
    font-size: 14px;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
}

.dialog_active_item:hover{
    border-color: var(--app1);
}

.dialog_group_list{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 5px;
}

.dialog_label{
    display: inline-block;
    cursor: pointer;
    border-color: var(--app4);
    border-width: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--card-border);
    background: var(--text-main);
    padding: 12px;
    margin: -14px -14px 0px -14px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 300px;
}

.dialog_label_desc{
    font-size: 13px;
}

.dialog_group_wrapper{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 140px);
    background: var(--bg-main);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    overflow: hidden;
    gap: 12px;
}

.dialog_btn_cancel{
    border-style: none;
    margin-right: 10px;
    width: max-content;
    background: #cbd5e1;
    color: var(--text-main, #1e293b);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    text-align: center;
    box-sizing: border-box;
}

.dialog_btn_cancel:hover{
    background: #94a3b8;
}

.dialog_btn_ok{
    width: max-content;
    white-space: nowrap;
    background: var(--primary-green, #00bd8e);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.15s ease;
    text-align: center;
    box-sizing: border-box;
}

.dialog_btn_ok:hover{
    background: var(--primary-green-hover, #009a74);
}

.dialog_btn_ok_hint{
    margin-right: 10px;
    cursor: pointer;
    background-color: var(--app2);
    border-radius: 10px;
    padding: 5px 20px 5px 20px;
    width: max-content;
    color: var(--white);
    font-size: 14px;
}

.dialog_btn_ok_hint:hover{
    background-color: #676767;
}

.dialog_btn_ok_title{
    white-space: nowrap;
}

.dialog_btn_ok_desc{
    white-space: nowrap;
    font-size: 12px;
    color: var(--app1);
}

.dialog_search_box {
    padding: 10px;
    border-bottom: 2px solid rgba(0, 189, 142, 0.15) !important;
}

.dialog_search_input {
    box-sizing: border-box;
    border-style: solid;
    border-color: var(--app1);
    width: 100%;
    border: 1px solid var(--card-border);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.dialog_no_results {
    padding: 15px;
    text-align: center;
    color: #999;
}

.dialog_items{
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
    flex-grow: 1;
    display: flex;
    gap: 5px;
    flex-direction: column;
    flex-wrap: nowrap;
}

.dialog_item{
    border-style: solid;
    border-width: 1px;
    border-color: white;
    cursor: pointer;
    background: white;
    padding: 5px;
    font-size: 14px;
    border-bottom: 1px solid var(--app3) !important;
    border-radius: 5px;
}

.dialog_item:hover{
    background-color: var(--app3);
}

.settings_block{
    color: var(--app2);
    font-weight: bold;
    font-size: 16px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.settings_container_check{
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    gap: 5px;
    align-items: flex-start;
}

.settings_check{
    cursor: pointer;
}

.settings_check_head{
    color: var(--app2);
    text-align: start;
}

.settings_check_head_second{
    color: var(--app2);
    font-size: 16px;
    text-align: start;
}

.settings_container_check_info{
    margin-left: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.settings_container{
    border-style: solid;
    border-radius: 10px;
    border-width: 1px;
    border-color: var(--app4);
    padding: 5px 10px;
}

.file_path_bread {
    padding: 5px 15px;
    font-size: 13px;
    color: var(--app2);
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.file_list_header {
    display: flex;
    padding: 10px;
    background: #f1f1f1;
    font-weight: bold;
    font-size: 12px;
}

.file_list_container {
    flex-grow: 1;
    overflow-y: auto;
}

.file_item {
    display: flex;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    align-items: center;
    font-size: 13px;
}

.file_item:hover {
    background-color: #f5faff;
}

.file_item.is_folder { color: #975d00; }
.file_item .col_name { flex: 3; display: flex; align-items: center; }
.file_item .col_size { flex: 1; color: #888; }
.file_item .col_type { flex: 1; color: #888; }
.col_size {
    display: flex;
    justify-content: center;
}

.file_item .col_name::before {
    content: "\1F4C4";
    margin-right: 8px;
}
.file_item.is_folder .col_name::before {
    content: "\1F4C1";
}

.col_actions {
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.file_item:hover .col_actions {
    opacity: 1;
}

.action_btn {
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 16px;
    filter: grayscale(1);
}

.action_btn:hover {
    filter: grayscale(0);
    background: #e0e0e0;
    border-radius: 5px;
}

.dialog_desc{
    padding: 10px;
}

.dialog_head{
    padding: 8px 10px;
    background: var(--app1);
    border-radius: 12px;
    color: var(--white);
}

.live_status{

}

.live_btn_start{
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--primary-green);
    color: #ffffff;
}

.live_btn_start:disabled{
    background: var(--card-border);
    color: #ffffff;
}

.live_btn_stop{
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--text-muted);
    color: #ffffff;
}

.live_btn_stop:disabled{
    background: var(--card-border);
    color: #ffffff;
}

.live_title{
    color: var(--text-main);
    padding: 10px;
}

.live_status_container{
    font-size: 14px;
}