/* RESPONSIVE / TABLET */

@media only screen and (max-width: 1032px) 
{
	/* AUX */

	.__wideonly
	{
		display: none !important;
	}
}

@media only screen and (max-width: 1032px) 
{	
	/* FORMAT > MESSAGES */

	div.titolo
	{
		overflow: hidden;
	    white-space: nowrap;
	    text-overflow: ellipsis;
	    padding-right: 56px;
	}

	div.titolo .pub_id.lite,
	div.titolo .pub_id.special
	{
		display: none;
	}

	div.messaggio_generico
	{
		margin-left: auto;
		right: auto;
		width: 96%;
		padding: 0px 8px;
	}

	span.basic_caption, 
    div.basic_caption
    {
    	font-size: 110%;
    }

    /* BASE TABLE */

    .basic_wrap
	{
	    width: 100dvw;
	}
	
	/* FRAME TABLE */

	table.frame_table
	{
		width: calc(100% - 16px);
	}

	table.frame_table td
	{
		display: block;
		width: 100%;
	}

	table.frame_table td.col_2
	{
	    width: 100%;
	}

	table.frame_table td.__protover_hide
	{
		display: none;
	}

	/* SHOW TABLE */

	table.frame_table td table.show_table td
	{
		display: table-cell;
	}
	
	/* EDIT TABLE */

	table.edit_table tr.col_tblt_3
	{
		display: inline-block;
		width: 33%;
	}

	table.edit_table td
	{
		display: block;
		padding: 4px 0px;
	}

	table.edit_table td.col_tblt_none
	{
		display: none;
	}

	table.edit_table td.chk
	{
		margin-top: 8px;
	}

	table.edit_table td.basic_caption
	{ 
		width: 100%;
        text-align: left;
        margin-top: 8px;
        line-height: 16px;
        letter-spacing: 1px;
        font-size: 110%;
    }

    /* AUX-INFO TABLE */

    table.edit_table td table.auxinfo_table td
    {
    	display: table-cell;
    }

    table.edit_table td table.auxinfo_table td.auxnum,
    table.edit_table td table.auxinfo_table td.auxcheck
    {
    	width: 20px;
    	text-align: center;
    }

    table.edit_table td table.auxinfo_table td.auxabbr
    {
    	width: 50px;
    }

    table.edit_table td table.auxinfo_table td.auxdesc
    {
    	width: auto;
    }

    /* PROTOTYPE TABLE */

	table.proto_spec_table td,
	table.proto_spec_table table.edit_table td
	{
	    display: table-cell;	   
	}

	table.proto_spec_table table.edit_table td.proto_label
	{
		font-size: 110%;
	}

    /* FREE TABLE */

	table.free_table td
	{
	    padding: 4px 8px;
	}
	
	table.free_table td.col_2
	{	
	    width: 50%;
	    display: table-cell;
	}

	table.free_table td.col_4
	{	
	    width: 25%;
	    display: table-cell;
	}
	
    table.free_table td.col_tblt_2
	{
		display: inline-block;
		max-width: 45%;
		width: 45%;
	}

	/* NOTES TABLE */

	table.basic_table tr.basic_header.notes_header
	{
		display: none;
	}

	table.basic_table td.notes_time
	{
	    font-family: var(--font-bold);
	    font-size: 120%;
	}

    /* INPUTS */

    input,
    textarea
	{
	    width: 100%;
	    font-size: 120%;
	    padding: 8px;
	}

	input.halfsize 
	{
	    width: 50%;
	}

	form .selectbox
	{	 
	    width: 100%;
	}

	div.halfselectwrap
	{
	    width: 50%;
	}

	div.editarea_box
	{
		width: 100%;
	}

	div.dragtargetbox
	{
	    min-height: auto;
	    padding: 0px;
	    border: none;
	}

	div.dragtargetbox span.dragtargetmsg
	{
		display: none;
	}

	table.module_inline_table td
	{
		display: table-cell;
	}

	/* FORM > INPUTS > CONTACTS */

	.anag_contact_item,
	.anag_contact_add
	{
		display: block;
		width: 100%;
	}

	/* FORM > INPUTS > TAGS */

	.tags-input-wrapper
	{
	    width: 100%;
	}

	/* FORM > PREVIEWS > GRID */

	.preview-item
	{
		width: calc(2 * var(--preview-width-base));
	}

	.preview-item.preview-empty .preview-inner
	{
		height: 0px;
	}

	.preview-item .preview-inner,
	.preview-item img
	{
	    height: calc(2 * var(--preview-height-base));
	}

	/* BUTTONS */

	div.iconsbuttonbar a, 
	div.iconsbuttonbar button
	{
	    margin-bottom: 8px;
	}

	div.iconsbuttonbar.fixedbar button.btn-icon:hover span
	{
		display: none;
	}

	.article-insert-loop-box,
	.order-insert-loop-box
	{
		display: none;
	}

	/* FORM > FUNCTIONS */

	
	.more_functions_wrap
	{
	    /*display: none;*/
	    bottom: -100%;
	}

	/*
	.fixed-btn.more
	{
	    
	}
	*/

	/* MESSAGES > INFO / HELPERS */

	.infomsg
	{
	    /*left: 16px;*/

	}

	/* FIXED BUTTONS > WRAPPER */

	.fixed-buttons-wrap.l-side
	{
	    display: none;
	}

	/* LAYOUT > DRAWER > APPLICATION SEARCH */

	div#__drawerappsearch__
	{
		width: 100dvw;
	}

	/* DRAWER > NOTIFY AREA > LAYOUT */

	.drawerappnotices
	{
		width: 100dvw;
	}

	/* TOTALS */

	.fixed-totals-wrap
	{
	    left: 8px;
	    bottom: 20px;
	    padding: 8px;
	}

	.fixed-totals-wrap.fixed-totals-popitframe
	{
	    bottom: 64px;
	}

	.fixed-totals-wrap.fixed-totals-hide
	{
	    display: block;
	}

	.fixed-totals-table
	{
	    border-collapse: collapse;
	}

	.fixed-totals-table td
	{
	    display: block;
	    padding: 8px;
	    border-bottom: var(--border-light-thin);
	}

	/* LOGIN */

	.login-wrapper
	{
	    grid-template-columns: 100%;
	    grid-template-rows: 33% 77%;
	}

	.login-form-wrapper
	{
		grid-row: 2 / span 1;
    	grid-column: 1 / span 1;
    	padding: 64px 16px;
    	justify-content: start;
	}

	form.loginform
	{
		max-width: 480px;
	}

	.login-image-box
	{
	    margin: auto;
	    width: 100%;
	    height: 100%;
	    min-height: unset;
	    background-size: contain;
	}

	.login-image-box:before
	{
		padding-top: 12dvh;
	}

	/* AUX */

    .__desktoponly
    {
        display: none !important;
    }    
}

/* RESPONSIVE / MOBILE */

@media only screen and (max-width: 600px) 
{
	/* NAVIGATION */

	div#__gm_main_nav__
	{
		display: none !important;
	}

	/* LAYOUT > HEADER > FILTERS */

	a.info_filter_on,
	a.info_filter_off
	{
		max-width: 36dvw;
	}

	/* TYPOGRAPHY > PUBLIC IDENTIFIERS */

	a.pub_id.rspv,
	span.pub_id.rspv
	{
	    display: block;
	    white-space: unset;
	}

	/* BASE TABLE */

    .basic_wrap
	{
	    width: 100dvw;
	}

	/* FREE TABLE */

    table.free_table td,
    table.free_table td.col_tblt_2
	{
		display: block;
		max-width: 96%;
		width: 96%;
	}

	/* SHOW TABLE */

	table.show_table td.rspv-td-block
	{
		display: block;
	}

	table.show_table td.basic_caption.rspv-td-block
	{
		display: block;
		width: 90%;
		text-align: left;
		font-size: 130%;
	}

	/* CUSTOMERS > TABLES > INFO */

	table.customer_info td
	{ 
	    display: block;
	}

	/* PAGER */

	div.t_basic_controls div.t_basic_element
	{
		display: block;
	}

	div.t_basic_controls div.t_basic_element .t_mid_select_wrap,
	div.t_basic_controls div.t_basic_element .t_wide_select_wrap,
	div.t_basic_controls div.t_basic_element .t_basic_select_wrap
	{
	    width: 100%;
	}

	/* FORM > BUTTONS */

	/*
	div.buttonbar a,
	div.buttonbar button,
	div.buttonbar input { margin: 4px auto; }
	*/

	.btn,
	a.btn
	{
	    min-width: 160px;
	    width: 160px;
	    margin: 4px;
	}

	/* FIXED BUTTONS > BUTTONS */

	.fixed-btn.extended
	{
		width: 58px;
	}


	/* GRIDS */

	.data_grid_item
	{
		width: 100%;
	}

	/* ATTACHMENTS */

	div.attach_item
	{ 
	   min-width: 100%;
	}

	/* ARTICLES */

	a.techpicwrap
	{
		display: none;
	}

	/* ASSORTMENTS */

	.asr-item-wrap,
	.asr-item-wrap-custom,
	.asr-item-add
	{
	    width: 100%;
	}

	/* GUIDE */

	ul.gm-guide
	{
	   width: 75dvw;
	}

	/* FOOTER  */

	div#footer
	{
		padding: 16px 8px 48px 8px;
	}

	.promptbox 
	{
	    width: 90%;
	    margin-left: -45%;
	}

	/* CONTACTS > SNIPPET */

	.contact-snippet-box.extended .contact-snippet-item
	{
		width: 100%;
	}

	/* MAIL > SNIPPET */

	a.mail_snippet,
	a.tel_snippet
	{
	    max-width: 120px;
	}

	/* POP-IT > MENUS & SELECTS */
    
    #popitmodalback 
    { 
        display: block;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;    
        z-index: 10; 
        background: var(--background-modal);
    }

    .popitmenu,
    .popitselect, 
    .popitbaloon
    {
        box-sizing: border-box;
        text-align: left;  
        position: absolute;
        top: 8%;
        left: 5%;
        width: 90%;
        height: 84%;
        max-height: unset;
        min-height: unset;
        max-width: unset;
        min-width: unset;       
        opacity: 1;        
        box-shadow: none;
    }

    .popitmenu-itemswrap,
    .popitselect-itemswrap
    {        
        max-height: unset;
        min-height: unset;
        max-width: unset;
        min-width: unset;    
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* POP-IT > CLOSE */

    a.popitclose
    {
        box-sizing: content-box;
        top: 2px;
    	right: 2px;
        width: var(--icon-dim-base);
        height: var(--icon-dim-base);        
    }

    /* POP-IT > BALOONS */

    div.popitbaloon-asyncwrap,
    div.popitbaloon-expandwrap
    {
        width: 100%;
    }

    div.popitbaloon-asyncguide
    {
		width: 100%;
    	height: 100%;
    }

    div.popitgmcontacts-asyncwrap,
	div.popitgmreminders-asyncwrap
	{
	    width: 100%;
    	height: 100%;
	}


    /* POP-IT > BALOON > FORM */

	.popitframe,
	.popitframe.small,
	.popitframe.popitspecedit,
	.popitframe.popitspecedit.popitspec-w-tech,
	.popitframe.popitassortments,
	.popitframe.popitsmartselector
	{
	    top: 0px;
	    left: 0px;
	    width: 100dvw;
	    height: 100dvh;
	    border-radius: 0px;
	}

	/* POP-IT > INLINE EDIT > FORM */

	.inlineprompt-form
	{
	    height: calc(100dvh - 96px);
	    /*overflow: hidden;*/
	}

	/* POP-IT > BALOONS > FILE PREVIEW */

	/*
	.popit-preview-title
	{
	    width: 92%;	    
	}
	*/

	/* FORM > INPUTS */

	div.search_input
	{
	    width: 100%;
	}

	/* FORM > INPUTS > CALENDAR */
	
	div.inputcalendarwrap
	{
		width: 100%;
		margin-top: 32px;
	}


	/* ARTICLE SMART SEARCH  */

	.smartsearch-item
	{
		width: 99%;
	}

	table.frame_table td.smartsearch-col-selection
	{
		width: 0px;
		overflow: hidden;
	}

	table.frame_table td.smartsearch-col-selection .titolo
	{
		position: fixed;	    
	    bottom: 60px;
	    left: 8px;
	    z-index: 2;
	}

	.smartsearch-result
	{
		margin-top: 48px;
		height: calc(100dvh - 268px);
		max-height: unset;
	}

	.smartsearch-select-all
	{
		position: relative;
		right: auto;		
		height: 26px;
		text-align: right;
		margin-top: 8px;
        padding-right: 14px;
	}

	.article-filters-box
	{
	    top: -640px;
	    left: 8px;
	    width: 90dvw;
	    left: 2.5dvw;
	}
	
	/* QR CODE SCANNER */

	.device-camera-frame
	{
	    margin-top: 15dvh;
	    width: 42dvh;
	    height: 42dvh;
	}

	.device-camera-reader
	{    
	    width: 42dvh;
	    height: 42dvh;
	}

	/* AUX */

	.__tablet
    {
        display: none !important;
    }

	.__mobileonly
    {
        display: unset !important;
    }
}