﻿div.search-criteria-outer-wrapper{
    position:absolute;
    z-index:999;
    top:52px;
    width:90%;
    max-width:900px;
    height:auto;
    right:52px;
    margin-left:-450px;
    padding:12px 0 0;
    background:#ccc;
    border-top-left-radius:5px;
    border-top-right-radius:5px;
    border-bottom-left-radius:5px;
    border-bottom-right-radius:5px;
    box-shadow:0 3px 10px 3px rgba(0,0,0,.5);
    -moz-box-shadow:0 3px 10px 3px rgba(0,0,0,.5);
    -o-box-shadow:0 3px 10px 3px rgba(0,0,0,.5);
    -webkit-box-shadow:0 3px 10px 3px rgba(0,0,0,.5);
    box-sizing:border-box;
    background: url('/scripts/plugins/search-criteria/images/wrapper-top-back-tile.png') repeat-x;
    background-color: #333;
    background-position:center top;
    border-top:1px solid #333;
    visibility:hidden;
}

 div.search-criteria-outer-wrapper div.top-pointer{
	border-color: transparent transparent #54504e transparent;
    border-style: solid;
    border-width: 15px;
    height:0;
    width:0;
	margin:-42px auto 0;
	position:absolute;
	display:block;
	right:68px;
}

div.search-criteria-inner-wrapper{
    background:#f0efed;
    height:auto; 
    padding:0;
    box-sizing:border-box;
    border-top-left-radius:0;
    border-top-right-radius:0;
    border-bottom-left-radius:4px;
    border-bottom-right-radius:4px;
    position:relative;
    max-height:calc(100vh - 120px);
    overflow-x:hidden;
    overflow-y:auto;
} 

h2.search-criteria-title {
    font-weight:500;
    color:#fff;
    font-size:110%;
    height:30px;
    overflow:hidden;
    display:block;
    width:100%;
    text-align:center;
    margin:0 auto;
    text-shadow:0 -1px 0 rgba(0,0,0,.9);
}    

a[data-role="search-criteria-search-button"],
button[data-role="search-criteria-search-button"],
a[data-role="search-criteria-close-button"],
button[data-role="search-criteria-close-button"]{
    min-width:40px;
    position:absolute;
    top:4px;
    right:7px;
    height:21px !important;
	border-radius:5px;
	-moz-border-radius:5px;
	-webkit-border-radius:5px;
	-o-border-radius:5px;
	font-family:charcoal,arial,sans-serif;
	font-weight:bold !important;
	font-size:12px !important;
	line-height:15px;
	color:#fff !important;
	text-align:center;
	padding:8px 8px 0;
	border:1px solid rgba(0,0,0,.7);
	background: #314ffe url('/scripts/plugins/search-criteria/images/small-button-tile.png'); /* Fallback background color for non supported browsers */ 
	background-size: 44px 30px;        
	box-shadow:inset 0 0 2px 0 rgba(0,0,0.4), 0 1px 0 rgba(242,238,227,.3);
	-moz-box-shadow:inset 0 0 2px 0 rgba(0,0,0,.4), 0 1px 0 rgba(242,238,227,.3);
	-webkit-box-shadow:inset 0 0 2px 0 rgba(0,0,0,.4), 0 1px 0 rgba(242,238,227,.3);
	-o-box-shadow:inset 0 0 2px 0 rgba(0,0,0,.4), 0 1px 0 rgba(242,238,227,.3);
	text-shadow: 0 -1px 0 rgba(0,0,0,.4);
	cursor:pointer;
}

a[data-role="search-criteria-search-button"]:active,
button[data-role="search-criteria-search-button"]:active,
a[data-role="search-criteria-close-button"]:active,
button[data-role="search-criteria-close-button"]:active
{
    box-shadow:inset 1px 1px 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.3);
	-moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.3);
	-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.3);
	-o-box-shadow:inset 1px 1px 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.3);
}
a[data-role="search-criteria-search-button"][disabled="disabled"],
button[data-role="search-criteria-search-button"][disabled="disabled"]{
	background: rgba(255,255,255,.3);
	color:rgba(0,0,0,.6) !important; 
	box-shadow:inset 0 0 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.2);
	-moz-box-shadow:inset 0 0 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.2);
	-webkit-box-shadow:inset 0 0 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.2);
	-o-box-shadow:inset 0 0 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.2);
	text-shadow: 0 1px 0 rgba(255,255,255,.2);
	cursor:default;
}

a[data-role="search-criteria-close-button"],
button[data-role="search-criteria-close-button"]
{
    left:7px;
    right:auto;
    border:1px solid rgba(0,0,0,.5);
    box-shadow:inset 0 1px 1px rgba(0,0,0.3), 0 1px 0 rgba(242,238,227,.3);
	-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.3), 0 1px 0 rgba(242,238,227,.3);
	-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.3), 0 1px 0 rgba(242,238,227,.3);
	-o-box-shadow:inset 0 1px 1px rgba(0,0,0,.3), 0 1px 0 rgba(242,238,227,.3);
    background: #2d2a27 url('/content/images/buttons/small-button-tile-dark.png'); /* Fallback background color for non supported browsers */ 
}

form[data-role="search-criteria-form"]{
   min-height:100%;
   position:relative;
   padding:0;
   margin:0;
   border:0;
} 

a.ui-icon-search-criteria 
{
    border:none;
	display:inline-block;
	height:30px;
	width:36px;
	margin:5px auto 3px 7px;
	background-size: 36px 30px;
	background-repeat:no-repeat;
	background-image: url('/scripts/plugins/search-criteria/images/search-criteria-icon.png');
}


/* 
==================================
	AP --- NEW SCHTUFF
================================== */

div.search-criteria-form div.ui-grid-column-a
{
    width: 50% !important;
    display: table-cell;
    border-right:1px solid rgba(100,100,100,0.2) !important;
    padding-left:20px;
    padding-right:40px;
    box-sizing:border-box !important;
}
div.search-criteria-form div.ui-grid-column-b
{
    width: 50% !important;
    display: table-cell;
    padding-left:20px;
    padding-right:40px;
    border-left:1px solid rgba(255,255,255,.6) !important;
    box-sizing:border-box !important;
}
div.search-criteria-form div.ui-grid-column-a-first 
{
    border-left: 0 none transparent !important;
    border-right: 0 none transparent !important;
    border-left:1px solid rgba(255,255,255,.6) !important;
}
div.search-criteria-form div.ui-grid-cell
{
   display:table-cell;
   padding-top:10px !important;
   padding-bottom:20px !important;
   border-bottom:1px solid rgba(100,100,100,0.2);
   box-shadow: 0 1px 0 rgba(255,255,255,1);
   box-sizing:border-box !important;
}
/*div.search-criteria-form div.ui-grid-cell select{
    width: 49%;
    white-space: pre-wrap;
}*/
div.ui-grid-column-b div.ui-grid-cell-a
{
   display:table-cell;
   padding-bottom:-21px !important;
   bottom: -8px !important;
   box-sizing:border-box !important;
}
div.ui-grid-column-b div.ui-grid-cell-b
{
   display: table-cell;
   padding-bottom:-21px !important;
   bottom: -8px !important;
   box-sizing:border-box !important;
}
div.search-criteria-form
{
   padding-top:3px !important;
   padding-bottom: 1px !important;
   bottom: 10px !important;
   width: 100% !important;
}
div.search-criteria-form div.ui-grid-table
{
    display:table;
    table-layout:fixed;
    padding:0 !important;
    width: 100% !important;
    box-sizing:border-box !important;
}
.ui-grid-table .ui-grid-column-a label[for]{
    display:block;
    height:auto !important;
    min-height:20px !important;
    width:100% !important;
    vertical-align: middle !important;
}
.ui-grid-table .ui-grid-column-b label[for]{
    display:block;
    height:auto !important;
    min-height:20px !important;
    width:100% !important;
    vertical-align: middle !important;
}
form[data-role="search-criteria-form"] label{
   font-size:90%;
   text-shadow:none; 
   font-weight:700;
}
.ui-grid-table .ui-grid-row
{
    display: table-row;
    vertical-align: middle !important;
    width: 100% !important;
}
div.search-criteria-form div.ui-grid-cell-last
{
    border-bottom:0 none transparent !important;
    box-shadow:0 0 0 transparent !important;
}




/* 
==================================
	Media Queries
================================== */
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    a.ui-icon-search-criteria{
        background-image:url('/scripts/plugins/search-criteria/images/search-criteria-icon@2x.png');
        background-size:auto 30px;
    }
}

@media only screen and (min-width:1025px){
	div.search-criteria-outer-wrapper {
	    max-width:1024px;
	    margin-left:512px;
	}
}
@media only screen and (max-width:1024px){
	div.search-criteria-outer-wrapper {
	    max-width:900px;
	}
}
@media only screen and (width:768px) and (orientation:portrait){
	div.search-criteria-outer-wrapper {
	    width:768px;
	    right:0;	    
	    left:0;
	    top:0;
	    margin:0;
	    bottom:0;
	    min-height:100%;
	    box-shadow:none;
	    -moz-box-shadow:none;
	    -o-box-shadow:none;
	    -webkit-box-shadow:none; 
	    border-radius:0;  
	    -moz-border-radius:0;  
	    -o-border-radius:0;  
	    -webkit-border-radius:0;   
	}
}

@media only screen and (width:1024px) and (orientation:landscape){
    div.search-criteria-outer-wrapper {
	    max-width:900px;
	}
}

@media only screen and (max-width:320px) and (orientation:portrait){
	/* Targets iPhone in portrait orientation */
	div.search-criteria-outer-wrapper {
	    width:320px;
	    right:0;	    
	    left:0;
	    top:0;
	    margin:0;
	    bottom:0;
	    min-height:100%;
	    box-shadow:none;
	    -moz-box-shadow:none;
	    -o-box-shadow:none;
	    -webkit-box-shadow:none;
	    border-radius:0;  
	    -moz-border-radius:0;  
	    -o-border-radius:0;  
	    -webkit-border-radius:0;   
	}
}
@media only screen and (min-width:320px) and (max-width:479px){
	/* Targets iPhone in landscape orientation */
	div.search-criteria-outer-wrapper {
	    width:480px;
	    right:0;	    
	    left:0;
	    top:0;
	    margin:0;
	    bottom:0;
	    min-height:100%;
	    box-shadow:none;
	    -moz-box-shadow:none;
	    -o-box-shadow:none;
	    -webkit-box-shadow:none;
	}
}
/* 
==================================
	END Media Queries
================================== */

