

#dialogcontroller {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%);
    background-color: var(--bg-panel);
    border: 1px solid;
    border-radius: 2vw;
    padding: 1vw;
    opacity: 95%;
    margin: 0;
    color: var(--text-strong);
    z-index: 25;

    outline: 2px solid rgba(80, 140, 200, 0.5);
    outline-offset: -2px;
    transition: border-color 0.2s, outline-color 0.2s;
}

.dia_80x60 {
    width: 80vw;
    height: 60vh;
}

.dia_80x80 {
    width: 80vw;
    height: 80vh;
}

.dia_80x90 {
    width: 80vw;
    height: 90vh;
}

.dia_90x90 {
    width: 90vw;
    height: 90vh;
}

.dia_20x30 {
    width: 20vw;
    height: 30vh;
}

.dia_40x30 {
    width: 40vw;
    height: 30vh;
}

.dia_40x40 {
    width: 40vw;
    height: 40vh;
}

.dia_60x40 {
    width: 60vw;
    height: 40vh;
}

.dia_50x40 {
    width: 50vw;
    height: 40vh;
}

.dia_50x50 {
    width: 50vw;
    height: 50vh;
}

.dia_60x50 {
    width: 60vw;
    height: 50vh;
}

.dia_60x70 {
    width: 60vw;
    height: 70vh;
}

.dlg_mini_content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: var(--text-strong);
    overflow: auto;
}

.dlg_mini_cmdbtnline {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;    
}

/* Ansage Dialog Styles */
.dlg_ans_page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 0;
}

.dlg_ans_center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2vh 2vw;
    gap: 2vh;
}

.dlg_ans_info_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;
    width: 100%;
}

.dlg_ans_label {
    font-size: min(1vw, 14px);
    color: var(--text-desc);
    min-width: 8vw;
}

.dlg_ans_value {
    flex: 1;
    font-size: min(1.1vw, 15px);
    color: var(--text-strong);
    font-weight: 500;
}

.dlg_ans_play_area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vh 0;
}

.dlg_ans_play_btn {
    width: 4vw;
    height: 4vw;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.15s;
}

.dlg_ans_play_btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.dlg_ans_method_list {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    justify-content: center;
    align-items: stretch;
    max-width: 100%;
    padding: 0 2vw;
    box-sizing: border-box;
}

.dlg_ans_method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5vw 1.5vw 1.2vw 1.5vw;
    border: 2px solid var(--border-separator);
    border-radius: 1vw;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1 1 0;
    max-width: 12vw;
    aspect-ratio: 1;
    min-width: 0;
}

.dlg_ans_method_icon_area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlg_ans_method:hover {
    border-color: var(--border-strong);
    background-color: var(--bg-subtle);
}

.dlg_ans_method_selected {
    border-color: rgba(100, 150, 255, 0.8);
    background-color: rgba(100, 150, 255, 0.15);
}

.dlg_ans_method_icon {
    width: 3vw;
    height: 3vw;
    opacity: 0.8;
}

.dlg_ans_iris_icon {
    font-size: 2.5vw;
    font-weight: 700;
    line-height: 1;
    opacity: 0.8;
    white-space: nowrap;
}

.dlg_ans_iris_icon .iris_slash {
    color: #e53935;
}

.dlg_ans_method_label {
    font-size: min(0.9vw, 13px);
    color: var(--text-strong);
    text-align: center;
}

.dlg_ans_detail_layout {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2vh 2vw;
    gap: 2vw;
}

.dlg_ans_detail_left {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
}

.dlg_ans_detail_right {
    flex: 0 0 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dlg_ans_iris_layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5vh 2vw;
    gap: 1.5vh;
    min-height: 0;
}

.dlg_ans_iris_voice_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5vw;
    flex-shrink: 0;
}

.dlg_ans_voice_btn {
    padding: 0.5vh 1vw;
    border: 2px solid var(--border-separator);
    border-radius: 0.5vw;
    cursor: pointer;
    transition: all 0.2s;
}

.dlg_ans_voice_btn:hover {
    border-color: var(--border-strong);
    background-color: var(--bg-subtle);
}

.dlg_ans_voice_selected {
    border-color: rgba(100, 150, 255, 0.8);
    background-color: rgba(100, 150, 255, 0.15);
}

.dlg_ans_voice_name {
    font-size: min(0.9vw, 13px);
    color: var(--text-strong);
}

.dlg_ans_voice_play {
    width: 2vw;
    height: 2vw;
    cursor: pointer;
    margin-left: 0.5vw;
    transition: opacity 0.2s;
}

.dlg_ans_voice_play:hover {
    opacity: 0.8;
}

.dlg_ans_iris_text_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dlg_ans_iris_textarea {
    flex: 1;
    width: 100%;
    resize: none;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-medium);
    border-radius: 0.5vw;
    color: var(--text-strong);
    font-size: min(1vw, 14px);
    padding: 1vh 1vw;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
}

.dlg_ans_iris_textarea:focus {
    border-color: rgba(100, 150, 255, 0.6);
}

.dlg_ans_iris_bar_track {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 0.3vh;
    flex-shrink: 0;
}

.dlg_ans_iris_bar {
    height: 100%;
    width: 100%;
    background-color: #4CAF50;
    border-radius: 2px;
    transition: width 0.15s, background-color 0.3s;
}

.dlg_ans_upload_dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 0.5vw;
    transition: border-color 0.2s, background-color 0.2s;
    min-height: 0;
    overflow: hidden;
}

.dlg_ans_upload_empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8vh;
    width: 100%;
}

#dlg_ans_upload_filelist {
    width: 100%;
    padding: 1vw;
    box-sizing: border-box;
}

.dlg_ans_upload_file {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.8vw 1vw;
    background-color: rgba(255,255,255,0.15);
    border-radius: 0.3vw;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.dlg_ans_upload_file:hover {
    background-color: rgba(255,255,255,0.2);
}

.dlg_ans_upload_file_icon {
    width: 1.5vw;
    height: 1.5vw;
}

.dlg_ans_upload_file_name {
    flex: 1;
    font-size: 0.9vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dlg_ans_upload_file_size {
    font-size: 0.8vw;
    opacity: 0.6;
}

.dlg_ans_upload_file_status {
    width: 1.2vw;
    height: 1.2vw;
}

.dlg_ans_upload_file_uploading .dlg_ans_upload_file_status {
    animation: fax_spin 1s linear infinite;
}

.dlg_ans_upload_file_delete {
    width: 1.2vw;
    height: 1.2vw;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.dlg_ans_upload_file_delete:hover {
    opacity: 1;
}

.dlg_ans_upload_file_uploading {
    opacity: 0.7;
}

/* Recording Step */
.dlg_ans_record_area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dlg_ans_record_controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5vh;
}

.dlg_ans_record_btn {
    width: 5vw;
    height: 5vw;
    border-radius: 50%;
    background-color: var(--bg-subtle);
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, border-color 0.2s;
}

.dlg_ans_record_btn:hover {
    background-color: var(--bg-subtle-medium);
    border-color: var(--border-strong);
    transform: scale(1.05);
}

.dlg_ans_record_btn_active {
    background-color: rgba(229, 57, 53, 0.3);
    animation: ans_record_pulse 1.5s ease-in-out infinite;
}

.dlg_ans_record_btn_active:hover {
    background-color: rgba(229, 57, 53, 0.5);
}

@keyframes ans_record_pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    50% { box-shadow: 0 0 0 1vw rgba(229, 57, 53, 0); }
}

.dlg_ans_record_btn_icon {
    width: 2.5vw;
    height: 2.5vw;
    filter: invert(1);
}

.dlg_ans_record_timer {
    font-size: 1.5vw;
    font-weight: bold;
    color: #e53935;
    font-variant-numeric: tabular-nums;
}

.dlg_ans_record_hint {
    font-size: 0.85vw;
    opacity: 0.5;
}

#dlg_ans_record_filelist {
    width: 100%;
    padding: 0 1vw 1vw 1vw;
    box-sizing: border-box;
}

.dlg_ans_loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5vh;
    color: rgba(255,255,255,0.6);
    font-size: min(1vw, 14px);
}

.dlg_ans_loading_spinner {
    width: 5vw;
    height: 5vw;
    max-width: 60px;
    max-height: 60px;
}

.dlg_ans_content_row {
    align-items: flex-start;
}

.dlg_ans_content_row .dlg_ans_value {
    font-size: min(0.9vw, 13px);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.5;
}

#dialogcontroller:not([open]) {
    display: none;
}

@media (hover: hover) {
    #dialogcontroller:hover {
        border: 2px solid;
        border-color: var(--border-input);
    }
}

#dialog_head {
    height: 10%;
    width: 100%;
    background-color: var(--bg-panel);
    display: flex;
    color: var(--text-strong);
    justify-content: space-between;
    align-items: center;
    font-size: 1.7vw;
    padding: 0 1.5vw;
    box-sizing: border-box;
}

.dialog_headline {
    flex: 1;
    text-align: center;
}

.dialog_close {
    font-size: 2vw;
    cursor: pointer;
    color: var(--text-desc);
    transition: color 0.15s ease;
    line-height: 1;
    padding: 0.3vw;
}

.dialog_close:hover {
    color: var(--text-strong);
}

#dialog_content {
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
}





.button {
    padding: 0.8vh;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 2vh;
    border: solid 2px;
    border-color: transparent;
    text-align: center;
    color: var(--text-secondary);
    background-color: var(--bg-input);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.button-active {
    border-color: var(--text-strong);
    color: var(--text-strong);
}

#dlg_fax_btn_next.button-active,
#dlg_fax_btn_send.button-active,
#dlg_extrabutton_save.button-active,
#ctx_cmd_do_call_planned.button-active {
    border-color: #4CAF50;
    color: white;
}

@media (hover: hover) {
    .button-active:hover {
        background-color: green;
        border-color: green;
        opacity: 100%;
        cursor: pointer;
    }
}

.button-red {
    border-color: red;
}

@media (hover: hover) {
    .button-red:hover {
        background-color: red;
        border-color: red;
    }
}


.inputbox {
    padding: 2vw;
    border: solid 1px;
    border-radius: 100vw;
}

.inputfield {
    background-color: transparent;
    outline: none;
    border: none;
    width: 20vw;
    font-size: 1.7vw;
    color: var(--text-strong);
}

.inputsecret {
    -webkit-text-security: square;
}





.dlg_new_blocking {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 45vh;
}

.dlg_new_blocking_left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-right: solid 1px;
    color: var(--text-strong);
}

.dlg_new_blocking_right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.dlg_new_blocking_callerpic {
    width: 20vh;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px;
    border-radius: 100%;
}

.dlg_new_blocking_btns {
    height: 6vh;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.dlg_confirm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4vh 2vw;
}

.dlg_confirm_message {
    font-size: 1.3vw;
    color: var(--text-strong);
    text-align: center;
    line-height: 1.6;
}

.blocking_duration_title {
    font-size: 1.5vw;
    color: var(--text-strong);
    margin-bottom: 2vh;
}

.blocking_bubble_container {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    width: 80%;
}

.blocking_bubble {
    width: 100%;
    border: solid 1px;
    border-color: var(--text-strong);
    background-color: var(--bg-subtle-hover);
    height: 4vh;
    border-radius: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-strong);
    font-size: 1.2vw;
    cursor: pointer;
    transition: all 0.2s;
}

@media (hover: hover) {
    .blocking_bubble:hover {
        background-color: var(--bg-subtle-medium);
        border-color: var(--text-label);
    }
}

.blocking_bubble_active {
    border-color: green !important;
    background-color: rgba(0, 136, 0, 0.4) !important;
}

@media (hover: hover) {
    .blocking_bubble_active:hover {
        border-color: green !important;
        background-color: rgba(0, 136, 0, 0.4) !important;
    }
}





.dlg_new_planned {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: calc(100% - 6vh);
}

.dlg_new_planned_left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-right: solid 1px;
    color: var(--text-strong);
}

.dlg_new_planned_right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.dlg_new_planned_callerpic {
    width: 15vh;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 1px;
    border-radius: 100%;
}

.dlg_inputfield {
    width: 35vw;
    height: 15vh;
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 2vh;
    padding: 1vh 1.5vh;
    color: var(--text-strong);
    font-size: 1.2vw;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_inputfield:focus {
    border-color: var(--text-strong);
}

.dlg_inputfield::placeholder {
    color: var(--text-secondary);
}

.dlg_new_planned_callername {
    width: 35vw;
    height: 5vh;
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 2vh;
    padding: 1vh 1.5vh;
    color: var(--text-strong);
    font-size: 1.2vw;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_new_planned_callername:focus {
    border-color: var(--text-strong);
}

.dlg_datetime_title {
    display: none;
}

.dlg_datetime_container {
    display: flex;
    flex-direction: column;
    /*gap: 1.8vh;*/
    width: 80%;
}

.dlg_datetime_section {
    display: flex;
    flex-direction: column;
    /*gap: 0.9vh;*/
}

.dlg_datetime_label {
    margin-top: 1vh;
    font-size: 1.08vh;
    color: var(--text-strong);
}

.dlg_datetime_section:first-child .dlg_datetime_label {
    display: none;
}

.dlg_datetime_input {
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1.8vh;
    padding: 0.9vh 1.35vh;
    color: var(--text-strong);
    font-size: 1.08vh;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_datetime_input:focus {
    border-color: var(--text-strong);
}

.dlg_datetime_input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.dlg_calendar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 0.9vh;
}

.dlg_calendar_nav {
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 0.9vh;
    color: var(--text-strong);
    font-size: 1.2vh;
    padding: 0.45vh 0.9vh;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

@media (hover: hover) {
    .dlg_calendar_nav:hover {
        border-color: var(--text-strong);
        background-color: var(--bg-hover);
    }
}

.dlg_calendar_month {
    flex: 1;
    text-align: center;
    font-size: 2vh;
    color: var(--text-strong);
    font-weight: bold;
}

.dlg_calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-top: 0;
    width: 100%;
}

.dlg_calendar_day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-input);
    border: solid 1px transparent;
    border-radius: 1vh;
    color: var(--text-strong);
    font-size: 2vh;
    cursor: pointer;
    transition: all 0.2s;
    /*padding: 0.1vh;*/
    transform: scale(0.58);
}

@media (hover: hover) {
    .dlg_calendar_day:hover:not(.dlg_calendar_day_disabled):not(.dlg_calendar_day_past) {
        border-color: var(--text-strong);
        background-color: var(--bg-hover);
    }
}

.dlg_calendar_day_disabled,
.dlg_calendar_day_past {
    color: var(--bg-hover);
    cursor: not-allowed;
    background-color: var(--bg-input-focus);
    opacity: 0.5;
}

.dlg_calendar_day_selected {
    border-color: green !important;
    border-width: 2px !important;
    background-color: rgba(0, 136, 0, 0.4) !important;
}

.dlg_calendar_day_header {
    font-weight: bold;
    color: var(--text-secondary);
    cursor: default;
    background-color: transparent;
}

@media (hover: hover) {
    .dlg_calendar_day_header:hover {
        border-color: transparent;
        background-color: transparent;
    }
}

.dlg_calendar_day_empty {
    background-color: transparent;
    cursor: default;
}

@media (hover: hover) {
    .dlg_calendar_day_empty:hover {
        border-color: transparent;
        background-color: transparent;
    }
}

.dlg_time_bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vh;
    margin-top: 0.5vh;
}

.dlg_time_bubble {
    background-color: var(--bg-input);
    border: solid 1px transparent;
    border-radius: 1.5vh;
    padding: 0.4vh 0.9vh;
    color: var(--text-strong);
    font-size: 1.5vh;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 2vh;
}

@media (hover: hover) {
    .dlg_time_bubble:hover {
        border-color: var(--text-strong);
        background-color: var(--bg-hover);
    }
}

.dlg_time_bubble_selected {
    border-color: green !important;
    background-color: rgba(0, 136, 0, 0.4) !important;
}

.dlg_time_bubble_disabled {
    color: var(--bg-hover);
    cursor: not-allowed;
    background-color: var(--bg-input-focus);
    opacity: 0.5;
}

@media (hover: hover) {
    .dlg_time_bubble_disabled:hover {
        border-color: transparent;
        background-color: var(--bg-input-focus);
    }
}


/* Redirect Dialog Styles */
.dlg_redirect_content {
    width: 100%;
    height: calc(100% - 6vh);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    
}

.dlg_redirect_main {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3vh;
}

.dlg_redirect_main p.dlg_txt {
    margin: 0 0 0.5vh 0;
    line-height: 1.2;
}

.dlg_redirect_inputfield {
    width: 100%;
    display: flex;
    justify-content: center;
}

.dlg_redirect_input {
    width: 80%;
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.6vh 1vh;
    color: var(--text-strong);
    font-size: 1.2vw;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_redirect_input:focus {
    border-color: var(--text-strong);
}

.dlg_redirect_input::placeholder {
    color: var(--text-secondary);
}

.dlg_redirect_suggestions {
    width: 100%;
    max-height: 15vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3vh;
    margin-top: 1vh;
}

.dlg_redirect_suggestion_item {
    background-color: var(--bg-subtle);
    border: solid 1px var(--border-strong);
    border-radius: 0.8vh;
    padding: 0.6vh 1vh;
    color: var(--text-strong);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.2vh;
}

@media (hover: hover) {
    .dlg_redirect_suggestion_item:hover {
        border-color: var(--text-label);
        background-color: var(--bg-subtle-hover);
    }
}

.dlg_redirect_suggestion_item.dlg_redirect_suggestion_selected {
    border-color: green;
    background-color: rgba(0, 136, 0, 0.3);
}

.dlg_redirect_suggestion_name {
    font-size: 1.1vw;
    font-weight: bold;
}

.dlg_redirect_suggestion_number {
    font-size: 0.95vw;
    color: var(--text-label);
}

.dlg_quickswitch_selected {
    color: var(--text-strong);
    font-size: 1.2vw;
    margin-bottom: 1.5vh;
    text-align: center;
}

/* Gemeinsamer Input-Stil für Dialoge */
.dlg_input {
    background-color: transparent;
    outline: none;  
    border: none;
    border-bottom: solid 1px;
    border-bottom-color: var(--border-input);
    width: 100%;
    color: var(--text-strong);
    font-size: 1.4vw;
    padding: 0.5vh 0;
}

.dlg_input::placeholder {
    color: var(--text-label);
}

/* Login-Sperrbalken */
.dlg_login_lockbar {
    position: absolute;
    top: -2vh;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    background-color: #cc0000;
    padding: 0.8vh 1vw;
    border-radius: 0.5vw;
    box-sizing: border-box;
}

.dlg_login_lockbar span {
    color: white;
    font-size: 1.1vw;
    font-weight: normal;
}

.dlg_login_qr_locked {
    width: 100%;
    aspect-ratio: 1;
    background-color: #cc0000;
}

/* Op-Mode Auswahl Dialog */
.dlg_opmode_options {
    display: flex;
    flex-direction: column;
    gap: min(2vh, 1.5vw);
    width: 90%;
    margin-top: min(2vh, 1.5vw);
}

.dlg_mini_content > .dlg_txt {
    font-size: min(1.5vw, 2.5vh);
}

.dlg_opmode_option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: min(2vw, 3vh);
    padding: min(2vh, 1.5vw) min(2vw, 3vh);
    background-color: var(--bg-subtle);
    border: solid 2px var(--border-strong);
    border-radius: 1.5vh;
    cursor: pointer;
    transition: all 0.2s;
}

@media (hover: hover) {
    .dlg_opmode_option:hover {
        border-color: rgba(76, 175, 80, 0.8);
        background-color: rgba(76, 175, 80, 0.15);
    }
}

.dlg_opmode_option_selected {
    border-color: rgba(76, 175, 80, 0.8);
    background-color: rgba(76, 175, 80, 0.15);
}

.dlg_opmode_icon {
    width: min(4vw, 6vh);
    height: min(4vw, 6vh);
    flex-shrink: 0;
}

.dlg_opmode_option span {
    font-size: min(1.2vw, 2vh);
    color: var(--text-strong);
}

/* Login Numpad - angelehnt an phonedialpad */
.login_numpad {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.numpad_back {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;
    padding: 1vh 2vw;
    cursor: pointer;
    color: var(--text-phone);
    font-size: 1.2vw;
    border: 1px solid transparent;
    border-radius: 1vh;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .numpad_back:hover {
        color: var(--text-strong);
        border-color: var(--border-strong);
        background-color: var(--bg-subtle-hover);
    }
}

.numpad_back_icon {
    height: 2.5vh;
    opacity: 0.7;
}

.numpad_grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.numpad_row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.numpad_key {
    width: 8vh;
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    margin: 2px 6px 6px 6px;
    background-color: var(--bg-phone);
    opacity: 75%;
    font-size: 3.5vh;
    color: var(--text-phone);
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    outline: none;
}

@media (hover: hover) {
    .numpad_key:hover {
        background-color: var(--bg-phone-hover);
        opacity: 100%;
    }
}

.numpad_key:active {
    background-color: var(--bg-phone-active);
    opacity: 100%;
}

.numpad_key_del {
    opacity: 100%;
}

.numpad_key_clear {
    opacity: 100%;
    color: rgb(200, 100, 100);
}

.numpad_icon {
    height: 3.5vh;
    pointer-events: none;
}

/* Telefonbuch bearbeiten Dialog */
.dlg_edit_phonebook {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    height: calc(100% - 6vh);
}

.dlg_edit_phonebook_left {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-right: solid 1px var(--border-medium-alpha);
    color: var(--text-strong);
}

.dlg_edit_phonebook_pic {
    width: 18vh;
    height: 18vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px var(--border-strong);
    border-radius: 100%;
    object-fit: cover;
}

.dlg_edit_phonebook_display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vh;
    cursor: pointer;
}

.dlg_edit_phonebook_inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
    width: 100%;
}

.dlg_edit_phonebook_spacer {
    height: 1vh;
}

.dlg_edit_phonebook_name {
    font-size: 1.8vw;
    font-weight: bold;
    text-align: center;
    color: var(--text-strong);
}

.dlg_edit_phonebook_name_input {
    width: 80%;
    font-size: 1.4vw;
    font-weight: bold;
    text-align: center;
    color: var(--text-strong);
    background-color: var(--bg-input-alpha);
    border: solid 2px var(--border-medium-alpha);
    border-radius: 1vh;
    padding: 0.5vh 1vh;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.dlg_edit_phonebook_name_input:hover {
    background-color: var(--bg-input-hover);
    border-color: var(--border-hover);
}

.dlg_edit_phonebook_name_input:focus {
    border-color: var(--text-strong);
    background-color: var(--bg-input);
}

.dlg_edit_phonebook_name_input::placeholder {
    color: var(--text-placeholder);
    font-weight: normal;
}

.dlg_edit_phonebook_company {
    font-size: 1.2vw;
    color: var(--text-label);
    text-align: center;
}

.dlg_edit_phonebook_company_input {
    width: 80%;
    font-size: 1.4vw;
    text-align: center;
    color: var(--text-strong);
    background-color: var(--bg-input-alpha);
    border: solid 2px var(--border-medium-alpha);
    border-radius: 1vh;
    padding: 0.5vh 1vh;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.dlg_edit_phonebook_company_input:hover {
    background-color: var(--bg-input-hover);
    border-color: var(--border-hover);
}

.dlg_edit_phonebook_company_input:focus {
    border-color: var(--text-strong);
    background-color: var(--bg-input);
    color: var(--text-strong);
}

.dlg_edit_phonebook_company_input::placeholder {
    color: var(--text-placeholder);
}

.dlg_edit_phonebook_pbook_wrapper {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;
    padding: 1vh 1.5vw;
    border: 1px solid var(--border-strong);
    border-radius: 1vh;
    transition: border-color 0.2s, background-color 0.2s;
}

@media (hover: hover) {
    .dlg_edit_phonebook_pbook_wrapper:hover {
        border-color: var(--border-hover);
        background-color: var(--bg-input-alpha);
    }
}

.dlg_edit_phonebook_pbook_icon {
    width: 2vw;
    height: 2vw;
    opacity: 0.7;
}

.dlg_edit_phonebook_pbook_content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3vh;
}

.dlg_edit_phonebook_pbook_label {
    font-size: 0.8vw;
    color: var(--text-placeholder);
}

.dlg_edit_phonebook_pbook {
    font-size: 1vw;
    color: var(--text-strong);
}

.dlg_edit_phonebook_pbook_select {
    font-size: 1vw;
    color: var(--text-strong);
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.5vh 1vh;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.dlg_edit_phonebook_pbook_select:focus {
    border-color: var(--text-strong);
}

.dlg_edit_phonebook_pbook_select option {
    background-color: var(--bg-input);
    color: var(--text-strong);
}

.dlg_pbook_dropdown {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 1vw;
    z-index: 100;
    max-height: 40vh;
    overflow-y: auto;
    min-width: 20vw;
}

.dlg_pbook_dropdown .ctx_dropitem {
    padding: 1.2vh 1.5vw;
    font-size: 1.1vw;
    gap: 0.8vw;
    width: 100%;
    box-sizing: border-box;
}

.dlg_pbook_dropdown .ctx_dropitem img {
    width: 1.6vw;
    height: 1.6vw;
    margin: 0;
}

.dlg_edit_phonebook_pbook_wrapper {
    position: relative;
}

.dlg_edit_phonebook_right {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.dlg_edit_phonebook_scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 2vh 2vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.dlg_edit_phonebook_scroll::-webkit-scrollbar {
    width: 0.5vw;
}

.dlg_edit_phonebook_scroll::-webkit-scrollbar-track {
    background: var(--bg-scrollbar-track);
    border-radius: 0.25vw;
}

.dlg_edit_phonebook_scroll::-webkit-scrollbar-thumb {
    background: var(--bg-scrollbar-thumb);
    border-radius: 0.25vw;
}

.dlg_edit_phonebook_scroll::-webkit-scrollbar-thumb:hover {
    background: var(--bg-scrollbar-thumb-hover);
}

.dlg_edit_phonebook_section {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.dlg_edit_phonebook_section_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-medium-alpha);
    padding-bottom: 0.5vh;
    margin-bottom: 0.5vh;
}

.dlg_edit_phonebook_section_title {
    font-size: 1.3vw;
    font-weight: bold;
    color: var(--text-primary);
}

.dlg_edit_phonebook_add_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5vw;
    height: 1.5vw;
    border: 1px solid var(--text-label);
    border-radius: 100%;
    font-size: 1.2vw;
    color: var(--text-label);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.dlg_edit_phonebook_add_btn:hover {
    background-color: var(--bg-hover-icon);
    color: var(--text-strong);
    border-color: var(--text-strong);
}

.dlg_edit_phonebook_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;
}

.dlg_edit_phonebook_item_label {
    width: 8vw;
    font-size: 1vw;
    color: var(--text-label);
    flex-shrink: 0;
}

.dlg_edit_phonebook_item_select {
    width: 8vw;
    font-size: 1vw;
    color: var(--text-strong);
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.5vh 0.5vh;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.dlg_edit_phonebook_item_select:focus {
    border-color: var(--text-strong);
}

.dlg_edit_phonebook_item_select option {
    background-color: var(--bg-input);
    color: var(--text-strong);
}

.dlg_edit_phonebook_delete_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5vw;
    height: 1.5vw;
    border: 1px solid var(--text-label);
    border-radius: 100%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.dlg_edit_phonebook_delete_btn:hover {
    background-color: var(--bg-hover-icon);
    border-color: var(--text-strong);
}

.dlg_edit_phonebook_item_input {
    flex: 1;
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.8vh 1vh;
    color: var(--text-strong);
    font-size: 1.1vw;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_edit_phonebook_item_input:focus {
    border-color: var(--text-strong);
}

.dlg_edit_phonebook_item_textarea {
    flex: 1;
    background-color: var(--bg-input);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.8vh 1vh;
    color: var(--text-strong);
    font-size: 1.1vw;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
    min-height: 6vh;
}

.dlg_edit_phonebook_item_textarea:focus {
    border-color: var(--text-strong);
}

.dlg_edit_phonebook_item_adresse {
    align-items: flex-start;
}

.dlg_edit_phonebook_adresse_fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.dlg_edit_phonebook_adresse_row {
    display: flex;
    flex-direction: row;
    gap: 0.5vw;
}

.dlg_edit_phonebook_adresse_strasse {
    width: 100%;
}

.dlg_edit_phonebook_adresse_plz {
    width: 30%;
    flex-shrink: 0;
}

.dlg_edit_phonebook_adresse_ort {
    flex: 1;
}

.dlg_edit_phonebook_item_input:invalid {
    border-color: rgba(255, 100, 100, 0.5);
}

.dlg_edit_phonebook_item_input:invalid:focus {
    border-color: rgba(255, 100, 100, 0.8);
}

/* FAB and Dropup for phonebook edit */
.dlg_edit_phonebook_fab_container {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dlg_edit_phonebook_fab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.75vw;
    height: 1.75vw;
    border: 1px solid;
    border-radius: 100%;
    cursor: pointer;
}

@media (hover: hover) {
    .dlg_edit_phonebook_fab:hover {
        background-color: var(--bg-hover-icon);
    }
}

.dlg_edit_phonebook_dropup {
    display: none;
    position: absolute;
    background-color: var(--bg-surface);
    width: 15vw;
    bottom: 3vh;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: left;
    cursor: pointer;
    z-index: 20;
}

.dlg_edit_phonebook_dropup_open {
    display: flex;
}

.dlg_edit_phonebook_dropup_item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 5vh;
    width: 15vw;
    padding-left: 1vw;
    color: var(--text-strong);
    font-size: 1.1vw;
    box-sizing: border-box;
}

@media (hover: hover) {
    .dlg_edit_phonebook_dropup_item:hover {
        background-color: var(--bg-hover);
    }
}

.dlg_edit_phonebook_placeholder {
    color: var(--text-placeholder) !important;
    font-style: italic;
}

.button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Buddy Edit Dialog */
.dlg_edit_buddy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 6vh);
    gap: 4vh;
}

.dlg_edit_buddy_info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3vw;
}

.dlg_edit_buddy_pic {
    width: 14vh;
    height: 14vh;
    border: solid 1px;
    border-radius: 100%;
    object-fit: cover;
}

.dlg_edit_buddy_details {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.dlg_edit_buddy_name {
    font-size: 1.8vw;
    color: var(--text-strong);
    font-weight: bold;
}

.dlg_edit_buddy_number {
    font-size: 1.2vw;
    color: var(--text-label);
}

.dlg_edit_buddy_form {
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: 1vh;
}

.dlg_edit_buddy_label {
    font-size: 1.1vw;
    color: var(--text-label);
}

#dlg_edit_buddy_nickname {
    height: 4vh;
    line-height: 4vh;
}

/* Debug Log Styles */
.debug_log_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 1vh;
}

.debug_log_header {
    font-size: 1.2vw;
    font-weight: bold;
    padding-bottom: 1vh;
    border-bottom: 1px solid var(--border-medium);
}

.debug_log_status {
    font-size: 1vw;
    padding: 0.5vh 0;
}

.debug_log_info {
    font-size: 0.9vw;
    color: var(--text-label);
}

.debug_ok {
    color: #4CAF50;
    font-weight: bold;
}

.debug_error {
    color: #f44336;
    font-weight: bold;
}

.debug_log_entries {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-debug);
    border-radius: 0.5vw;
    padding: 1vh;
    margin-top: 1vh;
    font-family: monospace;
    font-size: 0.85vw;
    max-height: 50vh;
}

.debug_log_entry {
    padding: 0.3vh 0;
    border-bottom: 1px solid var(--border-subtle);
}

.debug_time {
    color: #888;
    margin-right: 1vw;
}

.debug_log_buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1vw;
    margin-top: 1.5vh;
    padding-top: 1vh;
    border-top: 1px solid var(--border-medium);
}

.debug_log_btn {
    padding: 0.8vh 1.5vw;
    border-radius: 2vh;
    border: solid 2px;
    border-color: var(--text-strong);
    text-align: center;
    color: var(--text-strong);
    background-color: var(--bg-input);
    font-size: 0.9vw;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.debug_log_btn:hover {
    background-color: green;
    border-color: green;
}

.debug_log_btn_ai {
    border-color: #10a37f;
    background-color: rgba(16, 163, 127, 0.2);
}

.debug_log_btn_ai:hover {
    background-color: #10a37f;
    border-color: #10a37f;
}

/* AI Thinking Animation for Dialog - same style as app_search */
#dialogcontroller.ai_thinking {
    overflow: visible;
}

#dialogcontroller.ai_thinking::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 2.2vw;
    padding: 4px;
    background: conic-gradient(
        from var(--ai-angle),
        #ff6b6b,
        #feca57,
        #48dbfb,
        #ff9ff3,
        #54a0ff,
        #5f27cd,
        #ff6b6b
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: ai_border_spin 3s linear infinite, ai_border_pulse 2s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* AI Diagnosis Split Screen */
.debug_ai_split {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    height: calc(100% - 8vh);
    overflow: hidden;
}

.debug_ai_left {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.debug_ai_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-medium);
    padding-left: 2vw;
}

.debug_ai_data {
    flex: 1;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8vw;
    color: var(--text-primary);
    background-color: var(--bg-debug);
    padding: 1vh 1vw;
    border-radius: 1vh;
    margin-top: 1vh;
    line-height: 1.6;
}

.debug_ai_response {
    flex: 1;
    overflow-y: auto;
    font-size: 1vw;
    color: var(--text-strong);
    padding: 1vh 1vw;
    margin-top: 1vh;
    line-height: 1.8;
}

.debug_ai_response p {
    margin-bottom: 1.5vh;
}

.debug_ai_response strong {
    color: #10a37f;
}

.debug_ai_response code {
    background-color: var(--bg-debug);
    padding: 0.2vh 0.5vw;
    border-radius: 0.5vh;
    font-family: monospace;
    font-size: 0.9vw;
}

.debug_ai_loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2vh;
    color: var(--text-label);
}

.debug_ai_spinner {
    width: 5vw;
    height: 5vw;
    opacity: 0.7;
}

.debug_ai_error {
    color: #ff6b6b;
    padding: 2vh;
    background-color: rgba(255, 100, 100, 0.1);
    border-radius: 1vh;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Rufverteilung Dropdown - styled like footer_dropdown */
.rufverteilung_dropdown {
    position: fixed;
    display: none;
    flex-direction: column;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5vw;
    padding: 0.5vh 0;
    z-index: 20;
    min-width: 10vw;
    max-height: 40vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.rufverteilung_dropitem {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1vh 1vw;
    color: var(--text-strong);
    font-size: 1vw;
    cursor: pointer;
    gap: 0.5vw;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.rufverteilung_dropitem:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.rufverteilung_dropitem.rv_item_active {
    background-color: rgba(100, 150, 255, 0.2);
}

.rufverteilung_dropicon {
    width: 1.2vw;
    height: 1.2vw;
}

.rufverteilung_dropcheck {
    width: 1.2vw;
    height: 1.2vw;
    margin-left: auto;
}

/* Switch Dropdown */
.switch_dropdown {
    position: fixed;
    display: none;
    flex-direction: column;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5vw;
    padding: 0.5vh 0;
    z-index: 20;
    min-width: 12vw;
    max-height: 40vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.switch_drop_group {
    padding: 0.3vh 0;
}

.switch_drop_group + .switch_drop_group {
    border-top: 1px solid var(--border-subtle);
}

.switch_drop_name {
    padding: 0.5vh 1vw 0.3vh;
    color: var(--text-placeholder);
    font-size: 0.8vw;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

.switch_drop_pos {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8vh 1vw;
    color: var(--text-strong);
    font-size: 1vw;
    cursor: pointer;
    gap: 0.5vw;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.switch_drop_pos:hover {
    background-color: var(--bg-subtle-hover);
}

.switch_drop_pos.switch_pos_active {
    background-color: rgba(100, 150, 255, 0.2);
}

.switch_drop_check {
    width: 1.2vw;
    height: 1.2vw;
    margin-left: auto;
}

.footer_badge_disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Fax Dialog Styles */
.dlg_fax_content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#dlg_fax_page_1 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#dlg_fax_page_1 .dlg_fax_dropzone {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.dlg_fax_steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    padding: 1vw 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.dlg_fax_step {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    padding: 0.4vw 0.8vw;
    border-radius: 1vw;
    opacity: 0.5;
    transition: all 0.2s;
}

.dlg_fax_step_clickable {
    cursor: pointer;
}

.dlg_fax_step_clickable:hover {
    opacity: 0.8;
    background-color: rgba(255,255,255,0.1);
}

.dlg_fax_step_active {
    opacity: 1;
    background-color: rgba(100, 150, 255, 0.3);
}

.dlg_fax_step_done {
    opacity: 0.8;
}

.dlg_fax_step_done .dlg_fax_step_num {
    background-color: #4CAF50;
}

.dlg_fax_step_num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5vw;
    height: 1.5vw;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    font-size: 0.9vw;
    font-weight: 500;
}

.dlg_fax_step_label {
    font-size: 0.9vw;
}

.dlg_fax_step_line {
    width: 2vw;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
}



.dlg_fax_title {
    font-size: min(1.2vw, 16px);
    font-weight: 500;
    margin-bottom: min(1vw, 12px);
    flex-shrink: 0;
}

.dlg_fax_dropzone {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    border: 2px dashed var(--border-medium);
    border-radius: 0.5vw;
    background-color: var(--bg-subtle);
    transition: all 0.2s;
    cursor: pointer;
    overflow-y: auto;
}

.dlg_fax_dropzone_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2vw;
}

.dlg_fax_dropzone_active {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.dlg_fax_dropzone_icon {
    width: 3vw;
    height: 3vw;
    opacity: 0.6;
    margin-bottom: 0.5vw;
}

.dlg_fax_dropzone_text {
    font-size: 1vw;
    opacity: 0.8;
}

.dlg_fax_dropzone_subtext {
    font-size: 0.8vw;
    opacity: 0.5;
    margin: 0.5vw 0;
}

.dlg_fax_upload_btn {
    cursor: pointer;
}

.dlg_fax_filelist {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1vw;
}

.dlg_fax_file {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.8vw 1vw;
    margin: 0.4vw 0;
    background-color: rgba(255,255,255,0.15);
    border-radius: 0.3vw;
    cursor: grab;
    transition: background-color 0.2s, transform 0.2s;
}

.dlg_fax_file:hover {
    background-color: rgba(255,255,255,0.2);
}

.dlg_fax_file:active {
    cursor: grabbing;
}

.dlg_fax_file.dragging {
    opacity: 0.5;
    background-color: rgba(100, 150, 255, 0.2);
}

.dlg_fax_file.drag-over-top {
    border-top: 2px solid #4CAF50;
}

.dlg_fax_file.drag-over-bottom {
    border-bottom: 2px solid #4CAF50;
}

.dlg_fax_file_icon {
    width: 1.5vw;
    height: 1.5vw;
}

.dlg_fax_file_name {
    flex: 1;
    font-size: 0.9vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dlg_fax_file_pages {
    font-size: 0.8vw;
    opacity: 0.6;
}

.dlg_fax_file_size {
    font-size: 0.8vw;
    opacity: 0.6;
}

.dlg_fax_file_delete {
    width: 1.2vw;
    height: 1.2vw;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.dlg_fax_file_delete:hover {
    opacity: 1;
}

.dlg_fax_file_status {
    width: 1.2vw;
    height: 1.2vw;
}

.dlg_fax_file_uploading {
    opacity: 0.7;
}

.dlg_fax_file_uploading .dlg_fax_file_status {
    animation: fax_spin 1s linear infinite;
}

@keyframes fax_spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dlg_fax_file_error {
    opacity: 0.5;
}

#dlg_fax_page_3 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#dlg_fax_page_3 .dlg_fax_timing_section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#dlg_fax_page_3 .dlg_datetime_container {
    flex-direction: row;
    gap: min(2vw, 20px);
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#dlg_fax_page_3 .dlg_datetime_section {
    width: calc(50% - min(1vw, 10px));
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

#dlg_fax_page_3 .dlg_calendar_header {
    width: 100%;
    flex-shrink: 0;
    padding-bottom: min(0.5vw, 8px);
}

#dlg_fax_page_3 .dlg_calendar_grid {
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    gap: 2px;
    min-height: 0;
}

#dlg_fax_page_3 .dlg_calendar_day {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(1vw, 14px);
    min-height: 0;
}

#dlg_fax_page_3 .dlg_time_picker_m3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: min(1vw, 12px);
    align-items: center;
}

#dlg_fax_page_3 .dlg_time_input_row {
    display: flex;
    align-items: center;
    gap: min(0.5vw, 6px);
    flex-shrink: 0;
}

#dlg_fax_page_3 .dlg_time_input_box {
    font-size: min(2.5vw, 36px);
    font-weight: 400;
    padding: min(0.6vw, 8px) min(1vw, 14px);
    background-color: var(--bg-input);
    border: 2px solid var(--border-medium);
    border-radius: min(0.6vw, 8px);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: min(4vw, 60px);
    text-align: center;
}

#dlg_fax_page_3 .dlg_time_input_box_active {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.15);
}

#dlg_fax_page_3 .dlg_time_input_box_filled {
    color: var(--text-strong);
}

#dlg_fax_page_3 .dlg_time_colon {
    font-size: min(2.5vw, 36px);
    color: var(--text-muted);
    font-weight: 300;
}

#dlg_fax_page_3 .dlg_time_dial_container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

#dlg_fax_page_3 .dlg_time_dial {
    --dial-size: min(22vw, 240px);
    --dial-radius-outer: calc(var(--dial-size) / 2 - min(1.6vw, 20px));
    --dial-radius-inner: calc(var(--dial-size) / 2 - min(4vw, 48px));
    position: relative;
    width: var(--dial-size);
    height: var(--dial-size);
    background-color: var(--bg-subtle);
    border-radius: 50%;
    flex-shrink: 0;
}

#dlg_fax_page_3 .dlg_dial_hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--dial-radius-outer);
    height: min(0.15vw, 2px);
    background-color: #4CAF50;
    transform-origin: left center;
    transform: translateY(-50%) rotate(var(--hand-angle));
    pointer-events: none;
}

#dlg_fax_page_3 .dlg_dial_hand_inner {
    width: var(--dial-radius-inner);
}

#dlg_fax_page_3 .dlg_dial_center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(0.5vw, 6px);
    height: min(0.5vw, 6px);
    background-color: #4CAF50;
    border-radius: 50%;
    z-index: 1;
}

#dlg_fax_page_3 .dlg_dial_num {
    --num-size: min(2vw, 26px);
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--num-size);
    height: var(--num-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(0.8vw, 11px);
    color: var(--text-strong);
    cursor: pointer;
    border-radius: 50%;
    transform: 
        translate(-50%, -50%)
        rotate(var(--angle)) 
        translate(var(--dial-radius-outer)) 
        rotate(calc(-1 * var(--angle)));
    transition: all 0.15s ease;
}

#dlg_fax_page_3 .dlg_dial_num_inner {
    transform: 
        translate(-50%, -50%)
        rotate(var(--angle)) 
        translate(var(--dial-radius-inner)) 
        rotate(calc(-1 * var(--angle)));
    font-size: min(0.7vw, 10px);
    color: var(--text-secondary);
}

#dlg_fax_page_3 .dlg_dial_num:hover {
    background-color: var(--bg-hover);
}

#dlg_fax_page_3 .dlg_dial_num_selected {
    background-color: #4CAF50;
    color: white !important;
}

#dlg_fax_page_3 .dlg_dial_num_disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.dlg_fax_search_container {
    position: relative;
    margin-bottom: 1vw;
}

.dlg_fax_search_dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: 20vw;
    overflow-y: auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 0.5vw;
    z-index: 100;
    box-shadow: var(--shadow);
}

.dlg_fax_search_dropdown:empty {
    display: none;
}

.dlg_fax_sending {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: min(2vw, 24px);
}

.dlg_fax_sending_spinner {
    width: min(8vw, 80px);
    height: min(8vw, 80px);
    animation: fax_spin 1s linear infinite;
}

.dlg_fax_sending_text {
    font-size: min(1.5vw, 18px);
    color: var(--text-muted);
}

#dlg_fax_page_2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.dlg_fax_recipients_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.9vw;
    opacity: 0.6;
}

.dlg_fax_recipients {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dlg_fax_recipient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8vw 1vw;
    margin: 0.4vw 0;
    background-color: rgba(100, 150, 255, 0.2);
    border-radius: 0.3vw;
}

.dlg_fax_recipient_info {
    display: flex;
    gap: 1vw;
}

.dlg_fax_recipient_name {
    font-size: 0.9vw;
}

.dlg_fax_recipient_number {
    font-size: 0.9vw;
    opacity: 0.7;
}

.dlg_fax_recipient_delete {
    width: 1.2vw;
    height: 1.2vw;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.dlg_fax_recipient_delete:hover {
    opacity: 1;
}

.dlg_fax_no_recipients {
    font-size: 0.9vw;
    opacity: 0.5;
    padding: 0.5vw;
}

.dlg_chat_person_pic {
    width: 2vw;
    height: 2vw;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dlg_fax_server_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(1vw, 12px);
    margin-bottom: min(1vw, 12px);
    flex-shrink: 0;
}

.dlg_fax_server_label {
    font-size: min(1.2vw, 16px);
    font-weight: 600;
}

.dlg_fax_server_select {
    font-size: min(0.9vw, 14px);
    padding: min(0.4vw, 6px) min(0.8vw, 12px);
    border-radius: 0.5vh;
    border: 1px solid var(--border-medium-alpha);
    background-color: var(--bg-surface);
    color: var(--text-strong);
    cursor: pointer;
    width: 50%;
}

.dlg_fax_label {
    display: block;
    font-size: min(0.9vw, 14px);
    font-weight: 500;
    margin-bottom: min(0.5vw, 8px);
}

.dlg_fax_select {
    width: 100%;
    padding: min(0.5vw, 8px);
    font-size: min(0.9vw, 14px);
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: min(0.3vw, 5px);
    color: white;
}

.dlg_fax_timing_section {
    margin-bottom: 1vw;
}

.dlg_fax_timing_options {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    margin-bottom: 1vw;
}

.dlg_fax_radio {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 0.9vw;
    cursor: pointer;
}

.dlg_fax_radio input {
    cursor: pointer;
}

.dlg_fax_schedule {
    padding: 1vw;
    background-color: rgba(255,255,255,0.05);
    border-radius: 0.5vw;
}

.dlg_fax_btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vw;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.dlg_fax_btns_left {
    display: flex;
    gap: 0.5vw;
}

.dlg_fax_btns_right {
    display: flex;
    gap: 0.5vw;
}

.dlg_ans_multi_warning {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.5vw 1vw;
    background: rgba(255, 160, 0, 0.15);
    border-top: 1px solid rgba(255, 160, 0, 0.4);
    font-size: 0.85vw;
    color: #ffa000;
    flex-shrink: 0;
}

.dlg_ans_multi_warning_icon {
    width: 1.2vw;
    height: 1.2vw;
    flex-shrink: 0;
    filter: invert(65%) sepia(90%) saturate(500%) hue-rotate(5deg);
}

/* Umleitungen Dialog */
.dlg_uml_content {
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
    padding: 1.5vw;
    overflow-y: auto;
    flex: 1;
    justify-content: center;
}

.dlg_uml_section {
    background-color: rgba(255,255,255,0.05);
    border-radius: 0.5vw;
    padding: 1vw;
}

.dlg_uml_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dlg_uml_label {
    display: flex;
    flex-direction: column;
    gap: 0.2vw;
}

.dlg_uml_title {
    font-size: min(1.2vw, 16px);
    font-weight: bold;
    color: var(--text-strong);
}

.dlg_uml_desc {
    font-size: min(0.9vw, 12px);
    color: var(--text-desc);
}

.dlg_uml_switch {
    position: relative;
    display: inline-block;
    width: min(4vw, 50px);
    height: min(2vw, 26px);
}

.dlg_uml_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dlg_uml_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: 0.3s;
    border-radius: min(2vw, 26px);
}

.dlg_uml_slider:before {
    position: absolute;
    content: "";
    height: min(1.6vw, 20px);
    width: min(1.6vw, 20px);
    left: min(0.2vw, 3px);
    bottom: min(0.2vw, 3px);
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.dlg_uml_switch input:checked + .dlg_uml_slider {
    background-color: #4CAF50;
}

.dlg_uml_switch input:checked + .dlg_uml_slider:before {
    transform: translateX(min(2vw, 24px));
}

.dlg_uml_target_row {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-top: 0.8vw;
    position: relative;
}

.dlg_uml_time_row {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-top: 0.5vw;
}

.dlg_uml_target_label {
    font-size: min(1vw, 13px);
    color: rgba(255,255,255,0.7);
    min-width: min(3vw, 40px);
}

.dlg_uml_input {
    flex: 1;
    padding: min(0.5vw, 8px);
    font-size: min(1vw, 14px);
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.3vw;
    color: #fff;
    outline: none;
}

.dlg_uml_input:focus {
    border-color: rgba(255,255,255,0.4);
}

.dlg_uml_select {
    padding: min(0.5vw, 8px);
    font-size: min(1vw, 14px);
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.3vw;
    color: #fff;
    outline: none;
    cursor: pointer;
}

.dlg_uml_suggestions {
    position: absolute;
    left: min(3.5vw, 45px);
    right: 0;
    top: 100%;
    max-height: 15vw;
    overflow-y: auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 0.3vw;
    z-index: 100;
    box-shadow: var(--shadow);
}

.dlg_uml_suggestions:empty {
    display: none;
}

.dlg_uml_suggestion_item {
    display: flex;
    justify-content: space-between;
    padding: min(0.5vw, 8px) min(0.8vw, 10px);
    cursor: pointer;
    transition: background-color 0.15s;
}

.dlg_uml_suggestion_item:hover {
    background-color: rgba(255,255,255,0.1);
}

.dlg_uml_suggestion_name {
    font-size: min(1vw, 14px);
    color: var(--text-strong);
}

.dlg_uml_suggestion_number {
    font-size: min(0.9vw, 12px);
    color: var(--text-desc);
}

.dlg_uml_btns {
    display: flex;
    justify-content: flex-end;
    padding: 1vw;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.dlg_uml_locked {
    opacity: 0.4;
    pointer-events: none;
}

.dlg_uml_locked .dlg_uml_slider {
    cursor: not-allowed;
}

.dlg_uml_locked .dlg_uml_input,
.dlg_uml_locked .dlg_uml_select {
    cursor: not-allowed;
}

.dlg_uml_bubble_container {
    display: flex;
    flex-wrap: wrap;
    gap: min(0.5vw, 6px);
}

.dlg_uml_bubble {
    padding: min(0.4vw, 6px) min(0.8vw, 10px);
    font-size: min(0.9vw, 12px);
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: min(1vw, 15px);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dlg_uml_bubble:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.dlg_uml_bubble_active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.dlg_uml_bubble_active:hover {
    background-color: #45a049;
}

.dlg_uml_status_toggle {
    padding: min(0.4vw, 6px) min(1vw, 12px);
    font-size: min(0.9vw, 12px);
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: min(1vw, 15px);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: min(5vw, 60px);
    text-align: center;
}

.dlg_uml_status_toggle:hover {
    background-color: rgba(255,255,255,0.25);
}

.dlg_uml_status_toggle.dlg_uml_status_active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
}

.dlg_uml_status_toggle.dlg_uml_status_active:hover {
    background-color: #45a049;
}

/* Ringtone Dialog */
.dlg_rt_content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}

.dlg_rt_section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1vh 1vw;
}

.dlg_rt_section_title {
    font-size: min(1.1vw, 15px);
    font-weight: 600;
    color: var(--text-strong);
    padding-bottom: 1vh;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1vh;
    flex-shrink: 0;
}

.dlg_rt_divider {
    width: 1px;
    background-color: var(--border-subtle);
    align-self: stretch;
    margin: 1vh 0;
}

.dlg_rt_list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: min(0.4vw, 4px);
    overflow-y: auto;
    min-height: 0;
}

.dlg_rt_item {
    display: flex;
    align-items: center;
    gap: min(0.6vw, 8px);
    padding: min(0.5vw, 7px) min(0.8vw, 10px);
    border-radius: min(0.4vw, 6px);
    cursor: pointer;
    transition: background-color 0.15s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.dlg_rt_item:hover {
    background-color: var(--bg-subtle);
}

.dlg_rt_item_selected {
    border-color: rgba(100, 150, 255, 0.6);
    background-color: rgba(100, 150, 255, 0.12);
}

.dlg_rt_item_current {
    opacity: 1;
}

.dlg_rt_item_name {
    flex: 1;
    font-size: min(0.95vw, 13px);
    color: var(--text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dlg_rt_item_badge {
    font-size: min(0.7vw, 10px);
    color: var(--text-placeholder);
    padding: min(0.2vw, 3px) min(0.4vw, 6px);
    border: 1px solid var(--border-separator);
    border-radius: min(0.3vw, 4px);
}

.dlg_rt_item_play {
    width: min(1.4vw, 18px);
    height: min(1.4vw, 18px);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.dlg_rt_item_play:hover {
    opacity: 1;
}

.dlg_rt_item_check {
    width: min(1.2vw, 16px);
    height: min(1.2vw, 16px);
    opacity: 0;
    flex-shrink: 0;
}

.dlg_rt_item_selected .dlg_rt_item_check {
    opacity: 1;
}

/* Audio Devices Dialog */
.dlg_ad_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: min(2vh, 18px);
    padding: min(1.5vh, 12px) 2vw;
    min-height: 0;
    overflow-y: auto;
}

.dlg_ad_row {
    display: flex;
    flex-direction: column;
    gap: min(0.5vh, 6px);
}

.dlg_ad_label {
    display: flex;
    align-items: center;
    gap: min(0.5vw, 8px);
    font-size: min(1vw, 13px);
    font-weight: 600;
    color: var(--text-strong);
}

.dlg_ad_icon {
    width: min(1.4vw, 18px);
    height: min(1.4vw, 18px);
    opacity: 0.7;
}

.dlg_ad_select_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: min(0.5vw, 6px);
}

.dlg_ad_select_row .dlg_ad_select {
    flex: 1;
    min-width: 0;
}

.dlg_ad_test_btn {
    font-size: min(0.8vw, 12px) !important;
    padding: min(0.5vh, 5px) min(0.6vw, 8px) !important;
    white-space: nowrap;
}

.dlg_ad_select {
    width: 100%;
    padding: min(0.5vh, 5px) min(0.8vw, 10px);
    background-color: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: min(0.4vw, 6px);
    color: var(--text-strong);
    font-size: min(0.9vw, 13px);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right min(0.8vw, 10px) center;
    padding-right: min(2vw, 28px);
}

.dlg_ad_select:focus {
    border-color: rgba(100, 150, 255, 0.6);
}

.dlg_ad_select option {
    background-color: var(--bg-panel);
    color: var(--text-strong);
}