// Styles for the application list, submit, and mgmt pages
//
// App page:  show a grid of icons with search
//
// Markup:
//  <div...  (TBD)

.appListMain { 
    //border: 2px solid green;
}
.appListGrid { 
    //border: 1px solid red;
}


// ----- App cube ------------
.appCube { 
  width: 160px; 
  height: 240px;

  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  border-radius: 2px;
  background-color: #fafafa;

  margin: 5px;
  padding: 0px;
  float: left;
  text-align: center; //req'd for image
  color: #3b3b3b;
  font-family: sans-serif;
}

.appLabel {
    text-align: left;
    font-family: sans-serif;
    color: #3b3b3b;
    font-weight: bold;
    font-size: 15px;
    padding: 10px 10px 10px 10px;
    height: 36px;
    margin-bottom: 20px;
}

.appDetailLabel {
    text-align: left;
    font-size: 13px;
    font-weight: normal;
    padding: 10px 0px 10px 10px;
}

.appImg,
.appImgNoLink {
    border: 1px solid black;
    background-color: white;
    width: 100px;
    height: 100px; 
    border-radius: 8px; 
    padding: 3px;
    display: block; //req'd for no underline
    margin: auto;   //req'd to center when display:block
}

.appImg:hover {
    border: 2px solid #0198da;
    background-color: #0198da;
}

.appAuthor {
  color: blue;
  cursor: pointer;
  text-decoration: underline;
}

.appAuthorNoLink,
.appImgNoLink {
  color: black;
  cursor: auto;
}

// App Mgmt -------------------------------------

#appMgmtPage {
    position: relative; 
    width:100%; 
    height:100%; 
    top:64px; 
    padding: 0px 50px;
}


#appMgmtTableDiv {
    overflow: hidden;
}

#appReviewDiv {
    float: right;
    width: 200px;
    margin: 60px 0px 0px 20px;
}

#appMgmtPvw {
    margin: auto;
    width: 170px; 
}

#appStatusForm {
    border: 1px solid #b2b2b2;
    -webkit-border-radius: 7px;
    border-radius: 7px;
    background-color: #f5f5f5;
    margin: 20px auto 0px auto;
    padding: 5px 5px 0px 5px;
    font-family: sans-serif;
    font-size: 14px;
}

#appStatusForm #status {
    font-size: 13px;
}

.appControlBtn {
    width: 85px;
    height: 35px;

    -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
    -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
    box-shadow:inset 0px 1px 0px 0px #ffffff;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
    background:-moz-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background:-webkit-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background:-o-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background:-ms-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
    background:linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9',GradientType=0);
    background-color:#f9f9f9;
    -moz-border-radius:6px;
    -webkit-border-radius:6px;
    border-radius:6px;
    border:1px solid #dcdcdc;
    display:inline-block;
    cursor:pointer;
    color:#666666;
    font-family:Arial;
    font-size:14px;
    font-weight:normal;
    text-decoration:none;
    text-shadow:0px 1px 0px #ffffff;

    padding:6px 0px;
    margin: 4px;
}
.appControlBtn:hover {
    color: #666666;    
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9));
    background:-moz-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
    background:-webkit-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
    background:-o-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
    background:-ms-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
    background:linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9',GradientType=0);
    background-color:#e9e9e9;
}
.appControlBtn:active {
    color: #666666;
    background-color:#e9e9e9;
    position:relative;
    top:1px;
}

.appControlBtn:focus {
    color: #666666;
    background-color: #e9e9e9;
    border:1px solid #444444;
}


.appMgmtMainDiv {
    width: 100%;
    min-height: 500px;  //so content below doesn't jump around while loading
}

#appMgmtWaitDiv {
    //border: 2px solid red;
    text-align: center;
    padding: 100px;
    margin: 0 auto;
}

#appMgmtPswdDiv  {
  margin: 100px auto; 
  text-align:center;
}

#appMgmtPswdDiv label {
  width: 110px;                        
  height: 30px;
  float: left;     
  text-align: left;
}

#appMgmtPswdDiv input {
  width: 250px;
  height: 30px;
  margin: 0px;
  padding: 0px 5px 0px 5px;
  float: left;
                         
  border: 1px solid #E1E1E1;
  appearance: none;
  box-shadow: none;
  border-radius: none;
  transition: box-shadow 0.2s, border 0.2s;
}

#appMgmtPswdDiv p {
  margin: 0 auto;                    
  padding: 5px 0px;
  clear:both;
}



#appTable_wrapper {
    font: 12px arial, sans-serif;
    //color: red;
}

#appTable_filter {
    width: 237px;
    height: 25px;
    margin: 0px;
}

#appTable_filter label {
    font: normal 400 12px/18px arial, sans-serif;

    width: 237px;
    height: 100%;//15px;
    padding: 0px;
    margin: 0px;
}

#appTable_filter label input {
    font: normal 400 12px/18px arial, sans-serif;
    display: inline-block;
    width: 177px;
    height: 100%;//15px;
    padding: 2px 4px;
    margin-left: 0.5em;

    background: #ffffff url("/assets/apps/app-mgmt-search-input.png") repeat-x top;
    border-radius: 3px;
    border-color: #b2b6b2;
    box-shadow: 0 0 3px #b2b6b2;
}

#appTable th.sorting,
#appTable tr,
#appTable td {
    text-align: left;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    cursor: pointer;
}

#appTable .accepted {
    color: black;
}
#appTable .pending {
    color: blue;
}
#appTable .rejected {
    color: gray;
}


// ----- Search form ---------------

#appSearchDiv {
  border: 1px solid #b2b2b2;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  background-color: #f5f5f5;

  position: relative;
  height: 50px;
  margin: 5px auto;
  padding: 8px 0px;
  display: flex;

  font-family: Verdana, Arial,Helvetica, sans-serif;
  font-size: 10pt;
}

#divSize { 
  display: none;
  width: 1%;
  height: 34px;
  float: left;
}

#labelSort,
#labelSearch {
  height: 33px;
  margin: 2px 0px 0px 10px;
  padding: 5px 3px 3px 3px;
  float: left;
  font-weight: normal;
}

#appListSort {
  max-width: 180px;
  min-width: 50px;
  margin: 3px 10px 0px 5px;
  height: 27px;
  float:left;
  flex: 2;
}

#appListSearch {
  flex: 2;
  float: left;
  min-width: 50px;
  height: 25px;
  margin: 4px 10px 0px 5px;
  padding: 0px 3px 0px 3px;

  border: 1px solid #E1E1E1;
  appearance: none;
  box-shadow: none;
  border-radius: none;
  transition: box-shadow 0.2s, border 0.2s;

  color: #505050;

  &:focus {
    border: 1px solid black;
  }
}

form.appSearchForm input:focus, select:focus {
  background-color: #f1fafd; //light blue
}

form.appSearchForm input[type="image"] {
  width: 31px;
  height: 33px;
  float: right;
}

/*

.searchImg {
    position: fixed;
    z-index: -1;

    top: 145px;
    right: 15px;
}

.searchForm {
    position: fixed; 

    top: 154px;
    right: 18px;
    width: 393px;    
}

.searchBox {
    position: fixed;
    border: none;

    top: 155px;
    right: 89px;
    width: 310px;
    padding: 0px 12px 0px 0px;
}
p 
textarea:focus, input:focus {
    outline: 0;
}

.searchBtn {
    position: fixed;
    cursor: pointer;    
    border: none;
    color: #0198da;
    font-family: sans-serif;
    background-color: white;

    top: 155px;
    right: 26px;
    padding: 0px;
    font-size: 14px;
    font-weight: bold;
}

.searchBtn:focus {
    color: #ff9000;
}

//@-moz-document url-prefix() {
//    .searchBox { top: 156px; right: 89px }
//    .searchBtn { top: 155px; right: 19px }
//} 

.mainBlock {
    position: relative;
    height: 100%;
    top: 210px;
}

*/
