



#dialogcontroller {
    display: none;
}

#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: rgb(22, 22, 22);
    border: 1px solid;
    border-radius: 2vw;
    padding: 1vw;
    opacity: 95%;
    margin: 0;
    color: white;
    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_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_60x50 {
    width: 60vw;
    height: 50vh;
}

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

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

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

@media (hover: hover) {
    #dialogcontroller:hover {
        border: 2px solid;
        border-color: rgb(200,200,200);
    }
}

#dialog_head {
    height: 10%;
    width: 100%;
    background-color: rgb(22, 22, 22);
    display: flex;
    color: white;
    justify-content: space-around;
    align-items: center;
    font-size: 1.7vw;
}

#dialog_content {
    width: 100%;
    height: 90%;
}





.button {
    padding: 0.8vh;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 2vh;
    border: solid 2px;
    border-color: transparent;
    text-align: center;
    color: gray;
    background-color: rgb(49, 49, 49);
}

.button-active {
    border-color: white;
    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: white;
}

.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: white;
}

.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: white;
    text-align: center;
    line-height: 1.6;
}

.blocking_duration_title {
    font-size: 1.5vw;
    color: white;
    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: white;
    background-color: rgba(255, 255, 255, 0.1);
    height: 4vh;
    border-radius: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2vw;
    cursor: pointer;
    transition: all 0.2s;
}

@media (hover: hover) {
    .blocking_bubble:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.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: white;
}

.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: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 2vh;
    padding: 1vh 1.5vh;
    color: white;
    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: white;
}

.dlg_inputfield::placeholder {
    color: gray;
}

.dlg_new_planned_callername {
    width: 35vw;
    height: 5vh;
    background-color: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 2vh;
    padding: 1vh 1.5vh;
    color: white;
    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: white;
}

.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: white;
}

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

.dlg_datetime_input {
    background-color: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 1.8vh;
    padding: 0.9vh 1.35vh;
    color: white;
    font-size: 1.08vh;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_datetime_input:focus {
    border-color: white;
}

.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: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 0.9vh;
    color: white;
    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: white;
        background-color: rgb(60, 60, 60);
    }
}

.dlg_calendar_month {
    flex: 1;
    text-align: center;
    font-size: 2vh;
    color: white;
    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: rgb(49, 49, 49);
    border: solid 1px transparent;
    border-radius: 1vh;
    color: white;
    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) {
        border-color: white;
        background-color: rgb(60, 60, 60);
    }
}

.dlg_calendar_day_disabled {
    color: rgb(60, 60, 60);
    cursor: not-allowed;
    background-color: rgb(30, 30, 30);
    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: gray;
    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: rgb(49, 49, 49);
    border: solid 1px transparent;
    border-radius: 1.5vh;
    padding: 0.4vh 0.9vh;
    color: white;
    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: white;
        background-color: rgb(60, 60, 60);
    }
}

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

.dlg_time_bubble_disabled {
    color: rgb(60, 60, 60);
    cursor: not-allowed;
    background-color: rgb(30, 30, 30);
    opacity: 0.5;
}

@media (hover: hover) {
    .dlg_time_bubble_disabled:hover {
        border-color: transparent;
        background-color: rgb(30, 30, 30);
    }
}


/* 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: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.6vh 1vh;
    color: white;
    font-size: 1.2vw;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dlg_redirect_input:focus {
    border-color: white;
}

.dlg_redirect_input::placeholder {
    color: gray;
}

.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: rgba(255, 255, 255, 0.05);
    border: solid 1px rgba(195, 195, 195, 0.3);
    border-radius: 0.8vh;
    padding: 0.6vh 1vh;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.2vh;
}

@media (hover: hover) {
    .dlg_redirect_suggestion_item:hover {
        border-color: rgba(195, 195, 195, 0.8);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.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: rgba(255, 255, 255, 0.7);
}

.dlg_quickswitch_selected {
    color: white;
    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: rgb(195, 195, 195);
    width: 100%;
    color: white;
    font-size: 1.4vw;
    padding: 0.5vh 0;
}

.dlg_input::placeholder {
    color: rgba(195, 195, 195, 0.7);
}

/* 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: rgba(255, 255, 255, 0.05);
    border: solid 2px rgba(195, 195, 195, 0.3);
    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: white;
}

/* 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: rgb(141, 141, 141);
    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: white;
        border-color: rgba(255, 255, 255, 0.3);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.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: black;
    opacity: 75%;
    font-size: 3.5vh;
    color: rgb(141, 141, 141);
    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: rgb(66, 66, 66);
        opacity: 100%;
    }
}

.numpad_key:active {
    background-color: rgb(100, 100, 100);
    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 rgba(100, 100, 100, 0.5);
    color: white;
}

.dlg_edit_phonebook_pic {
    width: 18vh;
    height: 18vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px rgba(195, 195, 195, 0.5);
    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: white;
}

.dlg_edit_phonebook_name_input {
    width: 80%;
    font-size: 1.4vw;
    font-weight: bold;
    text-align: center;
    color: white;
    background-color: rgba(49, 49, 49, 0.4);
    border: solid 2px rgba(100, 100, 100, 0.5);
    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: rgba(49, 49, 49, 0.7);
    border-color: rgba(150, 150, 150, 0.6);
}

.dlg_edit_phonebook_name_input:focus {
    border-color: white;
    background-color: rgb(49, 49, 49);
}

.dlg_edit_phonebook_name_input::placeholder {
    color: rgba(195, 195, 195, 0.6);
    font-weight: normal;
}

.dlg_edit_phonebook_company {
    font-size: 1.2vw;
    color: rgba(195, 195, 195, 0.8);
    text-align: center;
}

.dlg_edit_phonebook_company_input {
    width: 80%;
    font-size: 1.4vw;
    text-align: center;
    color: white;
    background-color: rgba(49, 49, 49, 0.4);
    border: solid 2px rgba(100, 100, 100, 0.5);
    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: rgba(49, 49, 49, 0.7);
    border-color: rgba(150, 150, 150, 0.6);
}

.dlg_edit_phonebook_company_input:focus {
    border-color: white;
    background-color: rgb(49, 49, 49);
    color: white;
}

.dlg_edit_phonebook_company_input::placeholder {
    color: rgba(195, 195, 195, 0.4);
}

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

@media (hover: hover) {
    .dlg_edit_phonebook_pbook_wrapper:hover {
        border-color: rgba(195, 195, 195, 0.6);
        background-color: rgba(49, 49, 49, 0.5);
    }
}

.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: rgba(195, 195, 195, 0.5);
}

.dlg_edit_phonebook_pbook {
    font-size: 1vw;
    color: white;
}

.dlg_edit_phonebook_pbook_select {
    font-size: 1vw;
    color: white;
    background-color: rgb(49, 49, 49);
    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: white;
}

.dlg_edit_phonebook_pbook_select option {
    background-color: rgb(49, 49, 49);
    color: white;
}

.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: rgba(49, 49, 49, 0.5);
    border-radius: 0.25vw;
}

.dlg_edit_phonebook_scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.8);
    border-radius: 0.25vw;
}

.dlg_edit_phonebook_scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, 0.8);
}

.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 rgba(100, 100, 100, 0.5);
    padding-bottom: 0.5vh;
    margin-bottom: 0.5vh;
}

.dlg_edit_phonebook_section_title {
    font-size: 1.3vw;
    font-weight: bold;
    color: rgba(195, 195, 195, 0.9);
}

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

.dlg_edit_phonebook_add_btn:hover {
    background-color: rgba(200, 200, 200, 0.2);
    color: white;
    border-color: white;
}

.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: rgba(195, 195, 195, 0.7);
    flex-shrink: 0;
}

.dlg_edit_phonebook_item_select {
    width: 8vw;
    font-size: 1vw;
    color: white;
    background-color: rgb(49, 49, 49);
    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: white;
}

.dlg_edit_phonebook_item_select option {
    background-color: rgb(49, 49, 49);
    color: white;
}

.dlg_edit_phonebook_delete_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5vw;
    height: 1.5vw;
    border: 1px solid rgba(195, 195, 195, 0.7);
    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: rgba(200, 200, 200, 0.2);
    border-color: white;
}

.dlg_edit_phonebook_item_input {
    flex: 1;
    background-color: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.8vh 1vh;
    color: white;
    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: white;
}

.dlg_edit_phonebook_item_textarea {
    flex: 1;
    background-color: rgb(49, 49, 49);
    border: solid 2px transparent;
    border-radius: 1vh;
    padding: 0.8vh 1vh;
    color: white;
    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: white;
}

.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: rgba(200, 200, 200, 0.2);
    }
}

.dlg_edit_phonebook_dropup {
    display: none;
    position: absolute;
    background-color: rgba(42, 42, 42, 0.8);
    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: white;
    font-size: 1.1vw;
    box-sizing: border-box;
}

@media (hover: hover) {
    .dlg_edit_phonebook_dropup_item:hover {
        background-color: rgb(62, 62, 62);
    }
}

.dlg_edit_phonebook_placeholder {
    color: rgba(195, 195, 195, 0.5) !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: white;
    font-weight: bold;
}

.dlg_edit_buddy_number {
    font-size: 1.2vw;
    color: rgba(255, 255, 255, 0.7);
}

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

.dlg_edit_buddy_label {
    font-size: 1.1vw;
    color: rgba(255, 255, 255, 0.8);
}

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