/**
*
* CSS styles for the Commercial ProcessWire Module Variations (Inputfield)
*
* @author Francis Otieno (Kongondo) <kongondo@gmail.com>
*
* Copyright (C) 2017 by Francis Otieno
*
*/

/* ### @base pixel size: 16px ### */

/** general **/
/*## deal with rogue floats ##*/
.clearfix:after {content: ""; display: table; clear: both;}
.var_hide  {display:none!important;}
.var_required_empty {background-color: #fed6da!important;}

/** div **/
div.var_current_config_edit {margin-top: 1em;}
div.var_add {margin-bottom: 1em;}
div.var_combinations_table_wrapper {margin-left:0}
div.uk-form-label.var_boolean_main_label {margin-bottom:5px;}

/** paragraph **/
p.var_current_config span{font-weight: bold; font-style: italic;}

/** anchor **/
a:focus {outline:0;}
p.var_current_config a {text-decoration: underline; cursor: pointer;}


/** button **/
button:focus {outline:0;}

/** table **/
 /*
 	- @note: dealing with FOUC @see: http://stackoverflow.com/a/27424534
 	- show didn't work properly - table 'mangled'
 	- neither did 'display:none' then 'display:some-value'
 */
table.var_combinations {opacity: 0}
table.var_combinations.show {opacity: 1}

/** input **/
table.var_combinations td input.var_numeric {text-align: right;}

/** span **/
span.var_hidden_text_for_search {display: none;}
span.var_column_options {display:block;}

/**** datatables  ****/

.dataTables_paginate, .dataTables_filter  {float: right;}
li.paginate_button.disabled {display: none;}
div.dataTables_filter input[type=search] {width: initial; margin-left: 10px;}
div.dataTables_info span.var_info{font-weight: bold;}
span.var_no_matching_records {color: red; display: block;text-align: center;}
small.var_info_filtered_from {display: block; font-weight: normal; font-style: italic;}
a.paginate_button {padding: 0.1em 0.7em !important;}


/**** FieldtypeVariations  ****/

.var_settings_table_int_float {display:block;}

h4.var_settings_table_options_header {margin-top: 15px;}
h4.var_header {margin-bottom:0; cursor:move}

small.var_settings_table_data_type_info {font-style: italic; display: block;}
span.var_column_number {display: inline-block; margin-right: 10px;}
label.var_settings_table_label {margin-right: 10px;}
label.var_settings_table_label input {margin-right: 10px;}
a.var_default {padding-left:0; margin-top: 10px;}
a.var_set_default_null {display: inline-block;}
a.var_set_default_current_time {padding-right: 5px;}
span.var_trash i{cursor: pointer;}

div#var_settings_wrapper {margin-top: 20px;}
div#var_settings_wrapper select {width: 100%;}
div#var_settings_wrapper input.var_numeric {text-align: right;}
div.var_settings_column_wrapper {border-bottom: 1px solid #d9e1ea;}

div.var_set_boolean_notes {margin-top:10px;}

@media  (min-width: 960px) {
	div.var_set_boolean:first-child, div.var_set_boolean_notes {padding-left:0}
  }