/* TODO: This should be a global rule in NGG */
#ngg_page_content {
    visibility: hidden;
}

#ngg_page_content table {
    width: 100%;
}

#ngg_page_content table td,
#ngg_page_content table th {
    text-align: left;
    word-wrap: break-word;
}

#ngg_page_content select,
#ngg_page_content input[type=checkbox] {
    font-size: inherit;
}

#ngg_page_content .label_column {
	height: 27px;
}

#ngg_page_content .sort_column {
    width: 1em;
}

.pricelist_sort_handle i:hover {
    cursor: grab;
}

#ngg_page_content table input[type=text],
#ngg_page_content table input[type=number] {
    width: 100%;
    max-width: 150px;
    min-width: 60px;
}

#ngg_page_content table input[type=text][readonly],
#ngg_page_content table input[type=text][readonly]:focus {
	border: none !important;
	background: transparent !important;
	box-shadow: none;
}

#ngg_page_content table .title_field {
    max-width: none !important;
}

#no_pricelist_items {
	display:none;
}

#ngg_page_content table input.shipping_rate {
	width: 60px;
}

#ngg_page_content .delete_item {
    cursor: pointer;
}

#ngg_page_content .title_empty {
    border: solid 1px red !important;
}

#ngg_page_content button.disabled, 
#ngg_page_content .button-primary.disabled,
#ngg_page_content button:disabled, 
#ngg_page_content .button-primary:disabled
#ngg_page_content button[disabled], 
#ngg_page_content .button-primary[disabled] {
    background: #ccc !important;
}

/* Styling for pricelist categories */
.pricelist_category_collection .title_column {
    width: 200px;
}

.pricelist_category_collection th.cost_column,
.pricelist_category_collection th.price_column,
.pricelist_category_collection td.cost_column,
.pricelist_category_collection td.price_column {
    width: 130px;
}

.pricelist_category_collection td.cost_column,
.pricelist_category_collection td.price_column {
    white-space: nowrap;
}

.pricelist_category_collection td.cost_column .cost_column_wrapper,
.pricelist_category_collection td.price_column .price_column_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Styling for digital downloads category/source */
#ngg_digital_downloads_content {
    width: auto !important;
}

#digital_downloads_licensing_page {
	width: 315px;
}

#digital_downloads .resolution_column {
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
    word-wrap: normal;
}

#digital_downloads .title_column {
    width: 200px;
}

#digital_downloads .price_column {
    width: 150px;
}

#digital_downloads .resolution_column {
    width: 180px;
}

#digital_downloads .resolution_column input {
    max-width: 90% !important;
    width: 100% !important;
}

/* Styling for print catalog source */
#print_catalog_dialog {
/*	top: 10%;*/
/*	left: 25%;*/
/*	width: 50%;*/
/*	height: 80%;*/
/*	z-index: 20000;*/
}
.catalog-dialog {
	height: 100%;
}
.catalog-dialog .catalog-wrap {
	height: 100%;
/*	border: solid 2px #bbb;*/
/*	background: white;*/
}
.catalog-dialog .catalog-container {
/*	padding: 40px 40px 25px 40px;*/
}
.catalog-dialog .catalog-header {
}
.catalog-dialog .catalog-header:after {
  content: "";
  display: table;
  clear: both;
}
.catalog-dialog .catalog-header .header-title {
	display: inline-block;
	float: left;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 12pt;
	margin: 0;
}
.catalog-dialog .catalog-header .header-buttons {
	display: inline-block;
	float: right;
}
.catalog-dialog .catalog-header .header-buttons a.button {
	margin-right: 1em;
}
.catalog-dialog .catalog-container:after {
  content: "";
  display: table;
  clear: both;
}
.catalog-dialog .catalog-categories {
	background: transparent;
	border: none;
	margin: 0.8em 0 0 0;
	margin: 0;
	list-style: outside none none;
}
.catalog-dialog .catalog-categories:after {
  content: "";
  display: table;
  clear: both;
}
.catalog-dialog .catalog-categories li {
	float: left;
	margin: 0 20px 0 0;
	display: inline-block;
	vertical-align: center;
	border-bottom: solid 3px transparent;
	font-weight: normal;
	-webkit-transition-property: border-bottom-color, font-weight;
	transition-property: border-bottom-color, font-weight;
}
.catalog-dialog .catalog-categories li a {
	text-decoration: none;
	display: block;
	padding: 4px;
	outline: none !important;
	color: inherit !important;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700; 
    font-size: 13px;
}
.catalog-dialog .catalog-categories li.selected {
	border-bottom-color: #9ebc1b;
}
.catalog-dialog .catalog-panel-container {
	overflow: auto;
	margin-top: 1.1em;
	margin-bottom: 0.8em;
}
.catalog-dialog table.items-table {
	width: 100%;
	margin-top: 0.3em;
}
.catalog-dialog table.items-table tr.item-content {
	cursor: pointer;
}
.catalog-dialog table.items-table td,
.catalog-dialog table.items-table th {
	text-align: left;
	padding-bottom: 0.4em;
}
.catalog-dialog table.items-table th {
	text-transform: uppercase;
	padding: 0.3em 0 0.3em 0;
}
.catalog-dialog table.items-table tbody tr:hover {
    background-color: #f0f0f0;
}
.catalog-dialog table.items-table td.item-label,
.catalog-dialog table.items-table th.item-label {
	width: 100%;
    padding-right: 1em;
}
.catalog-dialog table.items-table td.item-cost,
.catalog-dialog table.items-table th.item-cost,
.catalog-dialog table.items-table td.item-cost-estimate,
.catalog-dialog table.items-table th.item-cost-estimate {
    text-align: center;
    min-width: 75px;
}
.pricelist_category_collection.hide-cost-estimate th.cost_column,
.pricelist_category_collection.hide-cost-estimate td.cost_column,
.catalog-dialog table.items-table.hide-cost-estimate td.item-cost-estimate,
.catalog-dialog table.items-table.hide-cost-estimate th.item-cost-estimate {
    display: none;
}
.catalog-dialog table.items-table td.item-added,
.catalog-dialog table.items-table th.item-added {
	text-align: center;
    min-width: 65px;
}
.catalog-dialog table.items-table .item-added input[type="checkbox"] {
	display: none;
}
.catalog-dialog table.items-table .item-added input[type="checkbox"] + label {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid #ccc;
	border-radius: 25%;
	cursor: pointer;
	display: inline-block;
	font-size: 10px;
	height: 13px;
	width: 13px;
	line-height: 12px;
	margin-bottom: 2px;
	padding-left: 0;
	text-align: center;
	vertical-align: middle;
}
.catalog-dialog table.items-table .item-added input[type="checkbox"] + label .fa {
	color: #fff;
	display: none;
	line-height: inherit;
}
.catalog-dialog table.items-table .item-added input[type="checkbox"]:checked + label {
	background-color: #5f5f5f;
	border: 1px solid transparent;
}
.catalog-dialog table.items-table .item-added input[type="checkbox"]:checked + label .fa {
	display: block;
}
.catalog-dialog table.items-table th.item-added input[type="checkbox"] + label {
	margin-left: 0.4em;
}
.catalog-dialog table.items-table th.item-added input[type="checkbox"] + label .fa {
}
.catalog-dialog table.items-table .item-default .item-added input[type="checkbox"]:checked + label {
}

/** Add Product modal */
#new_product_wrapper {
    height: calc(100% - 45px);
    display: flex;
    flex-direction: column;
    margin: 28px 15px 15px 15px;
    box-sizing: border-box;
}

#new_product_source_list {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex: 100 25 auto;
    margin-top: -32px;
}

#new_product_source_list ul {
    margin: auto;
    margin-top: 14px;
}

#new_product_source_list li {
    margin: 0;
    padding: 16px;
    border-left: 3px solid #fff;
}

#new_product_source_list li:hover {
    cursor: pointer;
    border-left: 3px solid #9ebc1b;
    color: #9ebc1b;
}

.new_product_source_title {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

#new_product_source_form {
    flex: 100 25 auto;
}

#new_product_buttons_wrapper {
    text-align: right;
    height: 32px;
}

#new_product_button_add {
    display: none;
}

.new_pricelist_product_row {
    margin-bottom: 20px;
}

.new_pricelist_product_row span {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.new_pricelist_product_row input {
    font-size: 18px;
    color: #555;
    border: 1px solid #DDD;
    padding: 10px;
}

.new_pricelist_product_row select {
    margin: 1px;
    padding: 10px;
    height: 46px;
    line-height: 17px;
    font-size: 18px;
    color: #555;
    border: 1px solid #DDD;
}

.new_pricelist_product_row input[type=text],
.new_pricelist_product_row input[type=number],
.new_pricelist_product_row select {
    width: 100%;
    height: 40px;
    font-size: 15px;
}

.price_column .fa {
    display: inline;
}

#ngg_page_content table .cost_column input.price_field,
#ngg_page_content table .price_column input.cost_field {
    width: 100px;
    margin-left: 6px;
}

/* Properly these next three lines belong in their own file specific to digital downloads but it's the only
   styling specific to downloads; SHOULD THIS CHANGE then create a new file please */
.new_pricelist_product_row input.resolution_field {
    width: 90%;
}

.new_pricelist_product_row.half_row {
    display: flex;
    justify-content: space-between;
}

.new_pricelist_product_half_row {
    width: 49%;
}

#TB_title {
    height: 80px!important;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    background-color: black !important;
    border-bottom: 10px solid #9fbb1a !important;
    color: #fff;
}

#TB_closeAjaxWindow {
    display: none;
}

#TB_ajaxWindowTitle {
    margin-left: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;

}

#TB_window button {
    background-color: #9FBB1A;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    height: 35px !important;
    padding: 0 24px !important;
    line-height: 35px;
    width: auto !important;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .5px;
}

#TB_window button:hover {
    background-color: #A9C524;
}

#TB_window button {
    vertical-align: middle;
}

#TB_window button.button-secondary {
    background-color: #bbb !important;
}


/* Bulk Markup dialog */
.bulk-markup-wrap {
	margin: 1em;
}

/** Redesign-specific **/
.wrap.ngg_manage_pricelist.redesign {
    visibility: hidden;
}

.wrap.ngg_manage_pricelist.not-redesign .ngg_page_content_header {
    display: none;
}

.wrap.ngg_manage_pricelist.redesign h2 {
    display: none;
}

.ngg_manage_pricelist.redesign .ngg_pricelist_actions {
    margin: -78px 0 60px 280px;
}

.ngg_manage_pricelist.redesign #titlediv #title {
    height: 46px;
}

#ngg_pricelist_attributes_container {
    margin-bottom: 40px;
}

.ngg_manage_pricelist.redesign #titlediv {
    display: flex;
    align-items: center;
}

.ngg_manage_pricelist.redesign #titlediv label {
    display: inline-block;
}

.ngg_manage_pricelist.redesign #titlediv label:hover {
    cursor: pointer;
}

.ngg_manage_pricelist.redesign #titlediv #title {
    margin-left: 15px;
    width: auto;
    flex-grow: 1;
}

.ngg_manage_pricelist.redesign thead,
.ngg_manage_pricelist.redesign tfoot {
    background-color: transparent !important;
}

.ngg_manage_pricelist.redesign thead th,
.ngg_manage_pricelist.redesign thead span.tooltip {
    color: #334656 !important;
    font-size: 14px;
    padding: 6px;
}

.ngg_manage_pricelist.redesign thead span.tooltip {
    padding-top: 0;
}

.ngg_manage_pricelist.redesign #ngg_pricelist_form td {
    padding-right: 20px;
}

.ngg_manage_pricelist.redesign #ngg_pricelist_form td.price_column {
    padding-right: 0;
}

.ngg_manage_pricelist.redesign #ngg_pricelist_form td.delete_column {
    width: 30px;
    padding-right: 0;
}

.ngg_manage_pricelist.redesign #ngg_pricelist_form td.pricelist_item_column {
    width: 400px;
}

.ngg_manage_pricelist.redesign p.no_items {
    padding-left: 31px;
}

@media (max-width: 800px) {
    .ngg_manage_pricelist.redesign .ngg_pricelist_actions {
        margin: 5px 0;
    }
    .ngg_manage_pricelist.redesign .ngg_pricelist_actions .page-title-action {
        margin: 20px 0;
        margin-left: 0px !important;
        padding: 12px 24px!important;
        text-align: center;
        width: 85% !important;
    }
    .price_column .fa {
        display: none;
    }
    .pricelist_category_collection .cost_column,
    .pricelist_category_collection .price_column {
        width: auto;
    }
    #ngg_page_content table .cost_column input.cost_field,
    #ngg_page_content table .price_column input.price_field,
    #ngg_page_content table .price_column input.title_field {
        width: 100% !important;
        margin-left: 0;
        font-size: 12px;
    }
    #TB_window #TB_ajaxContent,
    #TB_window #new_product_wrapper, 
    #TB_window form, 
    #TB_window input {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    #new_product_wrapper {
        margin-top: 0;
        height: 100%;
    }
    #new_product_source_list {
        margin: 0 0 20px;
    }
    #TB_window input, 
    #TB_window select {
        height: 35px !important;
    }
    .catalog-dialog table.items-table th {
        width: 20%;
    }
}

@media (max-width: 500px) {
    .catalog-dialog .catalog-categories li {
        display: block;
        float: none;
        margin: 0;
        border-left: 3px solid #fff;
    }
    .catalog-dialog .catalog-categories li a {
        padding: 5px 0 5px 10px;
    }
    .catalog-dialog .catalog-categories li.selected {
        border-bottom: none;
        border-left: 3px solid #9ebc1b;
    }
    .catalog-dialog .catalog-categories li.selected a {
        padding: 5px 0 5px 10px;
    }
    .catalog-dialog .catalog-categories {
        border-bottom: 1px solid #ccc;
        padding-bottom: 20px;
    }
}