/* main */
html, body, input, select, textarea, button
{ 
    margin: 0; 
    padding: 0; 
    font-family: LocalFont;
    font-size: var(--font-std);
    color: var(--main-fg-color);
    background-color: var(--main-bg-color);
}
header 
{
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
}
input, textarea, select
{
    margin-left: 10px;
    color: var(--input-fg-color);
    background-color: var(--input-bg-color);
    border-color: var(--input-fg-color);
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}
input[type="radio"]
{
    accent-color: var(--main-fg-color);
    margin-top: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
input[type="text"]:disabled, input[type="password"]:disabled, select:disabled
{
    background: var(--disabled-bg-color);
}
input[type="checkbox"] 
{
    accent-color: var(--main-fg-color);
    margin-top: 22px;
    width: 18px;
    height: 18px;
}
select 
{
    width: 300px;
}
a
{
    text-decoration: none;
    color: var(--link-color);
}
a:focus, a:focus img 
{
    outline: none;
    border: none;
}
h1, h2
{
    display: block;
    font-family: LocalFont;
    font-size: var(--font-large);
    margin: 0px;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
h2 
{
    font-size: var(--font-std);
}

/* menu */
#menu_outer_div
{
    width: 100%; 
    text-align: center;
    display: none;
    height: 120px;
}
#menu_width
{
    width: 100%; 
    display: inline-block;
}
.menu
{
    --smart-menu-default-width: 100%;
    --smart-font-size: var(--font-menu);
    --smart-item-border-width: 0px;
    border: 0px;
    height: 120px;
    left: 0px;
}
#menu_small
{
    color: var(--label-fg-color);
    font-size: var(--font-small);
}
.smart-menu
{
    direction: rtl;
    background-color: var(--main-bg-color)  !important;
}
.smart-menu-main-container
{
    background-color: var(--menu-container-bg-color);
    color: var(--menu-fg-color);
    top: 5px;
    height: 50px !important;
}
.smart-menu-item-label-element
{
    font-family: 'LocalFont';
    font-weight: 300 !important;
    font-size: var(--font-std) !important;
    z-index: 10;
}
.smart-menu-item[hover]
{
    border-top: 1px solid var(--menu-bg-color-hover);
    border-right: 1px solid var(--menu-bg-color-hover);
    border-bottom: 1px solid var(--menu-bg-color-hover);
    border-left: 1px solid var(--menu-bg-color-hover);
}

/* slideshow */
.smart-carousel-item-label
{
    font-size: var(--font-carousel);
    color: var(--carousel-fg-color);
    background-color: var(--carousel-bg-color);
    width: 100%;
}
.smart-carousel-item-content
{
    font-size: var(--font-carousel);
    color: var(--carousel-fg-color);
    background-color: var(--carousel-item-bg-color);
    width: 100%;
}
.slideshow
{
    position: relative;
    top: 0px;
    width: 100%;
    min-height: 1200px;
    display: none;
}
.slideimage
{
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 1200px;
}

/* tree */
.smart-tree
{
    width: 100%;
    height: 100%;
    --smart-tree-indent: 30px;
}
smart-tree-items-group 
{
    font-family: 'LocalFont'        !important;
    font-size: var(--font-std)      !important;
}
smart-tree-item
{
    font-family: 'LocalFont'        !important;
    font-size: var(--font-small)    !important;
}
.tree_new_data
{
    color: var(--button-fg-color);
    background-color: var(--button-bg-color);
    font-size: var(--font-small);
    padding-left: 5px;
    padding-right: 5px;
}

/* grid */
smart-grid 
{
    width: 100%;
	height: auto;
    --smart-alternation-index0-color: var(--grid-fg-color);
    --smart-alternation-index0-background: var(--grid-bg-color);
    --smart-alternation-index1-color: var(--grid-fg-color-alternate);
    --smart-alternation-index1-background: var(--grid-bg-color-alternate);
    border-left: 1px solid var(--grid-fg-color) !important;
}
smart-grid-cell
{
    font-family: 'LocalFont';
    font-size: var(--font-small);
    border-right: 1px solid var(--grid-fg-color) !important;
    border-top: 1px solid var(--grid-fg-color) !important;
}
smart-grid .smart-grid-column-header
{
    font-family: 'LocalFont';
    font-size: var(--font-std);
}
smart-grid .smart-grid-column-header .align-left 
{
    text-align: center !important;
    justify-content: center !important;
    color: var(--grid-header-fg-color);
    background-color: var(--grid-header-bg-color);
}
smart-grid-column
{
    border-right: 1px solid var(--grid-fg-color) !important;
    border-top: 1px solid var(--grid-fg-color) !important;
}
smart-grid .smart-grid-column-border-collapse
{
    border-right: 1px solid var(--grid-fg-color) !important;
    border-top: 1px solid var(--grid-fg-color) !important;
}

/* card */
.smart-card
{
    background-color: var(--card-title-bg-color);
    box-shadow: 7px 7px 5px var(--shadow-color); 
    outline: 1px solid;
    height: var(--card-full-height);
}
.card_image, .card_image_full
{
    height: var(--card-height-no-title);
    width: 100%;
    background-position: center; 
    background-repeat: no-repeat;  
    background-size: 100% 100%; 
    background-size: cover;
}
.card_image_full
{
    height: var(--card-full-height);
}
.card_title_container
{
    background-color: var(--card-title-bg-color);
    padding: 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card_title
{
    color: var(--card-title-fg-color);
    font-family: 'LocalFont'            !important;
    font-size: var(--font-card-title)   !important;
}

/* chart */
smart-chart 
{
    width: 100%;
    height: 100vh;
}
.smart-chart-title-text
{
    font-size: var(--font-large)    !important;
    font-family: 'LocalFont'        !important;
}
.smart-chart-title-description, .smart-chart-axis-text
{
    font-family: 'LocalFont'        !important;
}
.smart-tooltip-container 
{
    padding-top: 0      !important;
    white-space: nowrap !important;
}
.smart-chart-tooltip-text
{
    color: var(--tooltip-fg-color)  !important;
    position: relative;
    top: -15px;
}

/* swal2 */
.swal2-styled.swal2-confirm
{
    background-color: var(--message-title-bg-color);
    color: var(--message-title-fg-color);
}
.swal2-title
{
    background-color: var(--message-title-bg-color);
    color: var(--message-title-fg-color);
    padding: 10px 10px 10px;
}
.swal2-html-container, .swal2-actions
{
    background-color: var(--message-bg-color);
    color: var(--message-fg-color);
    height: 100%;
}
.swal2-close 
{
    color: var(--error-fg-color);
    background-color: var(--error-bg-color);
}

/* upload */
.qq-upload-button
{
    background-color: var(--upload-bg-color);
    font-size: var(--font-small);
    width: 300px;
}
#fine-uploader
{
    height: 100px;
    overflow: hidden;
}
#fine-uploader .qq-uploader
{
    height: 100px   !important;
    max-height: 100px   !important;
    overflow-y: hidden;
    border: none !important;
    padding: 0px;
}
#fine-uploader .qq-upload-drop-area 
{ 
    border: none !important; 
}
#fine-uploader .qq-upload-drop-area:focus 
{ 
    outline: none !important; 
}

/* alternate error */
.modal 
{
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.modal-content 
{
    background: var(--message-bg-color);
    padding: 25px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn 
{
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-content button 
{
    font-size: var(--font-std);
    border-radius: 5px; 
    width: 100px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;
}
#message_title
{
    color: var(--message-title-fg-color);
    background-color: var(--message-title-bg-color);
    font-size: var(--font-large);
    width: 100%;
    text-transform: uppercase;
}
#message_text
{
    color: var(--message-fg-color);
    background-color: var(--message-bg-color);
    font-size: var(--font-mid);
    width: 100%;
}

/* web */
#top_position
{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 1px;
}
#logo
{
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 300px;
}
#logo_image
{
    max-height: 100px;
}
#MAIN_CONTENT
{
    position: relative;
    width: 100%;
    background-color: var(--main-bg-color);
    top: 0px;
}
.hidden
{
	display: none;
}
.row, .row_centered
{
    clear: both;
    width: 100%;
    display: inline-block;
    padding-top: 2px;
    padding-bottom: 2px;
}
.row_centered
{
    text-align: center;
    align-items: center;
}
.group_title
{
    color: var(--group-fg-color);
    background-color: var(--group-bg-color);
    font-size: var(--font-large);
    width: 100%;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    text-transform: uppercase;
}
.subgroup_title
{
    color: var(--group-fg-color);
    background-color: var(--group-bg-color);
    font-size: var(--font-std);
    width: 100%;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.label_35
{
    float: none;
    width: 100%;
    display: block;
    text-align: left;
    color: var(--label-fg-color);
    font-size: var(--font-std);
    margin-top: 10px;
}
.input_65
{
    float: none;
    width: 90%;
    display: block;
    text-align: left;
}
.div_inline
{
    display: inline-block;
}
.button, .button_alternate
{
    background-color: var(--button-bg-color);
    color: var(--button-fg-color);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    float: left;
    font-size: var(--font-std);
    border-radius: 5px; 
    margin-left: 20px;
    cursor: pointer;
}
.button_alternate
{
    background-color: var(--button-alternate-bg-color);
    color: var(--button-alternate-fg-color);
    border: 1px solid var(--button-alternate-fg-color);
}
.button a, .button_alternate a
{
    color: var(--button-fg-color);
    text-decoration: none;
    cursor: pointer;
}
.button_alternate a
{
    color: var(--button-alternate-fg-color);
}
.button:hover, .button_alternate:hover
{
    opacity: 0.4;
}
#list_content, #detail_content, #word_content, #attachments_content
{
    display: none;
    position: relative;
    top: 120px;
}
#memo
{
    padding-left: 10px;
    padding-right: 10px;
    display: block;
    text-align: left;
}
#move_down
{
    clear: both;
    height: 20px;
}
#move_down_large
{
    clear: both;
    height: 120px;
    position: relative;
}
#outer_div
{
    width: 100%; 
    text-align: center;
    position: relative;
    background-color: var(--main-bg-color);
}
.overlay 
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#gallery_menu
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000000;
}
.arrow, .gallery_close 
{
    position: absolute;
    top: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    user-select: none;
}
.arrow.left 
{
    right: 100px;
}
.arrow.right 
{
    right: 60px;
}
.gallery_close 
{
    right: 20px;
    cursor: pointer;
}
.fullscreen 
{
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.doc_small_image_collection
{
    position: relative;
    top: -140px;
    left: 2px;
    z-index: 10;
    width: 32px;
    background-color: rgba(255, 255, 255, 0.4);
}
.doc_small_image
{
    left: 0px;
    width: 32px;
    z-index: 10;
}
.doc_small_image img
{
    width: 32px;
}
#field_divisor
{
    width: 100px;
    display: inline-block;
}
.text, .text_inactive
{
    font-size: var(--font-std);
}
.text_inactive, .text_inactive_right
{
    color: var(--text-inactive-fg-color);
    background-color: var(--text-inactive-bg-color);
}
.text_inactive .text a 
{
    color: var(--text-inactive-fg-color);
    font-size: var(--font-small);
}
.text a:hover, .text_inactive a:hover
{
    text-decoration: underline;
}
.text_right, .text_inactive_right
{
    font-size: var(--font-std);
    text-align: right;
}
.lookup_select
{
    width: 520px;
    border: 1px solid var(--input-fg-color);
    margin-left: 10px;
    margin-top: -10px;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 20px;
    height: 150px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown
{
    color: var(--input-fg-color);
    background-color: var(--input-bg-color);
    border-radius: 3px;
    border: 2px solid var(--input-fg-color);;
}
.dropdown option:checked
{
    background-color: var(--input-fg-color);
    color: var(--input-bg-color);
}
.dropdown_voice a
{
    font-size: var(--font-small);
    padding: 5px;
}
.dropdown_voice a:hover
{
    color: var(--button-fg-color-hover);
    background-color: var(--button-bg-color-hover);
}
.input_num
{
    text-align: right;
}
.small
{
    font-size: var(--font-small);
}
#clear
{
    clear: both;
}
#wait
{
    display: none;
    height: 100%; 
    width: 100%;
    position: fixed;
    left: 0px; 
    bottom: 0px; 
    z-index: 1000;
    text-align: center;
    background-color:rgba(0,0,0,0.2);
    color: var(--main-fg-color);
    font-size: var(--font-std);
}
#inner_wait
{
    position: relative;
    top: 40%;
}
#login_fullscreen 
{
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0px;
    left: 0px;
}
#login_box 
{
    width: 800px;
    height: 370px;
    background: var(--main-bg-color);
    border: 1px solid var(--button-bg-color)
}
#login_1
{
    display: block;
}
#login_2
{
    display: none;
}


@media (min-width: 800px) 
{
    #logo, #menu_outer_div, .slideshow
    {
        display: block;
    }
    .label_35
    {
        float: left;
        width: 35%;
        text-align: right;
    }
    .input_65
    {
        float: left;
        width: 65%;
    }
}

