/*
/ I used the minimalistic skin as a basis, but removed every style of this file
/ and only restyled elements related to the table settings dialog.
/
/ A general styling proved to be really hard, as ck-editor uses a really messy markup
/ with messy tables and bloated styling.
/
/ TODO: this should become a React Component once the ck-editor rewrite is released.
*/

.cke_dialog {
    visibility: visible;

    font-size: 14px;
    color: #ffffff;
    width: 400px;
}

.cke_dialog * {
    box-sizing: border-box;
    font-family: "Noto Sans", sans-serif !important;
}

.cke_dialog a {
    text-decoration: none !important;
}

/* ############# Title ############# */

.cke_dialog_title {
    position: relative;
    height: 51px;
    padding: 0 16px;

    background: #cfd1cf;

    border-bottom: 1px solid #999;

    font-size: 16px;
    cursor: move;
    color: #ffffff;
    line-height: 51px;
}

.cke_dialog_close_button {
    position: absolute;
    top: 0;
    right: 0;
    height: 51px;
    width: 51px;

    font-family: FontAwesome !important;
    font-size: 18px;
    line-height: 51px;
    text-align: center;
    color: #ffffff;
}

.cke_dialog_close_button .cke_label {
    display: none;
}

.cke_dialog_close_button:before {
    /* getting the correct character from FontAwesome */
    content: '\F00D';
}

/*
/ We hide both tabs as we currently only need the first, which is opens on default.
/ The second tab would need a completely new styling.
*/
.cke_dialog_tabs {
    display: none;
}

/* ######## Body ######## */

.cke_dialog_body {
    z-index: 1;
    background: #141414;
}


/* ######## Forms ######## */

.cke_dialog_body label {
    display: inline-block;
    margin-bottom: 4px;

    font-size: 14px;
    color: #ffffff;
    font-weight: 300;

    cursor: default;
}


/* Form Controls */

input.cke_dialog_ui_input_text,
input.cke_dialog_ui_input_password,
textarea.cke_dialog_ui_input_textarea,
select.cke_dialog_ui_input_select {
    position: relative;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 16px;

    background: #323232;

    border-radius: 0;

    color: #ffffff;
    line-height: 40px;
    font-size: 14px;
    font-weight: 300;
}

/*
/ inside `.cke_dialog_ui_hbox` ck-editor seems to create two column elements.
/ ck-editor also seems to set a lot of inline styles that make styling really hard.
/ That why we have to set an absolute value here.
*/
.cke_dialog_ui_hbox input.cke_dialog_ui_input_text,
.cke_dialog_ui_hbox input.cke_dialog_ui_input_password,
.cke_dialog_ui_hbox textarea.cke_dialog_ui_input_textarea,
.cke_dialog_ui_hbox select.cke_dialog_ui_input_select {
    width: 177px;
}

input.cke_dialog_ui_input_text:focus,
input.cke_dialog_ui_input_password:focus,
textarea.cke_dialog_ui_input_textarea:focus,
select.cke_dialog_ui_input_select:focus {
    background: white;
    color: #141414;
    outline: none;
}

/* ######## Content ######## */

.cke_dialog_contents {
    background-color: #222;
    overflow: auto;
    border-top: 1px solid #3f3f3f;
    width: 100%;
}

.cke_dialog_contents_body {
    overflow: auto;
    padding: 16px;
    margin-top: 40px
}

.cke_dialog_footer {
    text-align: right;
    position: relative;
    border: 0;
    background: #cfd1cf;
}

.cke_dialog_ui_hbox_first, .cke_dialog_ui_hbox_last {
    display: inline-block;
    /* important for manipulating the with of the two column */
    width: 192px !important;
    vertical-align: top;
}

.cke_dialog_ui_hbox_last {
    /* hack for getting the right spacing right */
    margin-right: -15px;
}

/* hack for showing a scrollbar on smaller screens */
.cke_dialog_contents > tbody > tr:first-child {
    display: block;
    height: 80vh;
    max-height: 600px;
    overflow-y: scroll;
}

.cke_dialog_contents > tbody > tr:first-child::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.cke_dialog_contents > tbody > tr:first-child::-webkit-scrollbar-track {
    background-color: #3f3f3f;
}
.cke_dialog_contents > tbody > tr:first-child::-webkit-scrollbar-thumb {
    background-color: #222;
    border: 1px solid #3f3f3f;
}
.cke_dialog_contents > tbody > tr:first-child::-webkit-scrollbar-corner {
    background-color: #3f3f3f;
}

.cke_dialog_ui_vbox table tr:nth-child(even) {
    background: transparent;
}


/* ####### footer & buttons ####### */

.cke_dialog_footer_buttons .cke_dialog_ui_hbox_first, .cke_dialog_footer_buttons .cke_dialog_ui_hbox_last {
    width: 204px;
    text-align: center;
}

.cke_dialog_ui_button {
    display: inline-block;
    width: 204px;
    height: 40px;

    background: #3f3f3f;

    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    font-weight: 300;
}

.cke_dialog_ui_button .cke_dialog_ui_button {
    background: inherit;
}

.cke_dialog_ui_button.cke_dialog_ui_button_ok {
    padding-left: 2px;

    background: #00a338;
}

.cke_dialog_ui_button.cke_dialog_ui_button_cancel:hover {
    background: #00ADEE;
}

.cke_resizer {
    display: none;
}
