/* 2026-06-22 v1.1
 * - Added dynamic overview sorter select to chevron background rule
 */

body {
	--input_padding_v:7px;
	--input_padding_h:15px;
}
.form-field-group-inner {
    position: relative;
}
select {
    cursor: pointer;
}
label + select {
    margin-left: 10px;
}
label + select, select[name="order_by"], .kdp-dynamisch-overzicht-sort-select { 
    background-image:url('/themes/koffiedrukker/images/icons/chevron-down-gray.svg');
    background-repeat: no-repeat;
    background-size:auto 8px;
    background-position: calc(100% - 10px) center;
    padding-right: 25px!important;
}
input:not(input[type="radio"]):not(input[type="checkbox"]) {
	width: 100%;
}
input:not(input[type="radio"]):not(input[type="checkbox"]), 
textarea, 
input:not(input[type="radio"]):not(input[type="checkbox"]):focus,
select, input:-webkit-autofill,
input:-webkit-autofill:hover, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
select:-webkit-autofill,
select:-webkit-autofill:hover {
	border:1px solid #CCC;
	border-radius: var(--border-radius-buttons,5px);
	background-color: #fff;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
select:-webkit-autofill,
select:-webkit-autofill:hover {
     -webkit-text-fill-color: #000;
      -webkit-box-shadow: 0 0 0px 1000px #FFF inset;
};

input:not(input[type="radio"]):not(input[type="checkbox"]):focus, textarea:focus { 
	border-color:var(--colorgreen);
/*	box-shadow: 0px 0px 0px 2px var(--colorgreen);*/
    
    
    border-color:var(--colororangelight);
	/*box-shadow: 0px 0px 0px 2px var(--colororangelight);*/
    box-shadow: 0px 0px 0px 2px var(--colororangeverylight);
	border-radius: var(--border-radius-sm,5px);
}
.content-wrapper input:not(input[type="radio"]):not(input[type="checkbox"]).error, textarea.error { 
    border-color:#FF0004;
    color:#FF0004;
}
input:not(input[type="radio"]):not(input[type="checkbox"]), textarea, button, input:focus, input + label.input-placeholder, select, a.button { 
	padding:5px 15px;
	line-height: 20px;
}


.content-wrapper form input:not(input[type="radio"]):not(input[type="checkbox"]), textarea, select  {
	padding:var(--input_padding_v,7px) var(--input_padding_h,15px);
}

tr:has(.inline-edit) *:is(td, th) {
	padding-top: calc(var(--input_padding_v,7px) + 5px )!important;
}
*:is(.content-wrapper form input:not(input[type="radio"]):not(input[type="checkbox"]), textarea, select).inline-edit  {
	margin-top: calc(0px - var(--input_padding_v,7px))!important;
	margin-left: calc(0px - var(--input_padding_h,15px))!important;
	width: calc(100% +  var(--input_padding_h,15px) * 2 );
}
*:is(.content-wrapper form input:not(input[type="radio"]):not(input[type="checkbox"]), textarea, select).inline-edit:not(:focus)  {
	border: 1px solid rgba(255,255,255,0)!important;
	box-shadow: none;
}
*:is(.content-wrapper form input:not(input[type="radio"]):not(input[type="checkbox"]), textarea, select).inline-edit:hover {
	background-color: rgba(0,0,0,0.05)!important;
}
*:is(.content-wrapper form input:not(input[type="radio"]):not(input[type="checkbox"]), textarea, select).inline-edit:focus {
	background-color: rgba(0,0,0,0)!important;
	border-color:var(--color_highlight);
	box-shadow: 0px 0px 0px 1px var(--color_highlight);
}



input[type="search"] + button { 
	padding:5px 5px;
}
.header-search-bar-wrapper {
	position: relative;
    min-height: 32px;
}
.header-search-bar-wrapper input {
    position: absolute; 
   
}

.header-search-bar-wrapper button {
    position: absolute; 
  
}
body:not(.overlay-shown) .header-search-bar-wrapper input,
body:not(.overlay-shown) .header-search-bar-wrapper button{
  
    z-index: 999995!important;
}

input[type="search"] {
	background-color: #f6f6f6;
}
input[type="search"] + button {
	/*text-indent:-9999px;*/
	overflow: hidden;
	position: absolute;
	display: block;
	right: 0px;
	top: 0px;
	bottom: 0px;
	min-height: 25px;
	z-index: +1;
	width: 40px;
	background-color:var(--colororange);
	color: #fff;
	background-size: 20px auto;
	background-position: center;
	background-repeat: no-repeat;
    border:none!important;
}
input[type="search"]:focus + button {
     /*background-color:var(--colorgreen);  */ 
}
sup.required {
	font-weight: bold;
	color: var(--colororange);
	
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
	
	transform: translateY(-5px);
}
textarea, .file-dropper {
	
	width: 100%;
	min-height: 80px;
}

textarea {
	border:1px solid #ccc;
}
/*.content-wrapper input.has-placeholder {
	margin-top: 0px;
	transition: 0.1s ease all;
}
.content-wrapper input.has-placeholder:not([value=""]) {
	margin-top: -10px!important;

}*/
input + label.input-placeholder{
     color:#66666650;
}
input + label.input-placeholder,
textarea + label.input-placeholder,
script + label.input-placeholder,
input + .form-field-label { 
	position: absolute;
	top: 8px;
  
	margin-top: 2px;
	left: 5px;
	padding:0px 10px;
	user-select: none;	
	cursor: text;
	transition:0.16s ease all;
	
    border-radius: var(--border-radius-sm,5px);
}
input + label.input-placeholder,
textarea + label.input-placeholder,
script + label.input-placeholder,
input + .form-field-label { 
    line-height: 16px;
	
	font-size: 11px;
	font-weight: 500;
    color:#66666650;
}
textarea::placeholder {
	font-weight: 500;
    color:#B3B3B3;
	text-wrap:balance;
}
input[type="search"]::placeholder, textarea.inline-edit::placeholder {
	 color:#757575;
}
input + .form-field-label { 
     left: 5px!important;   
}
input:not([value=""]):not(:focus) + label.input-placeholder,
textarea + label.input-placeholder,
script +  label.input-placeholder,
input + .form-field-label  {
/*	background-color: #999;
    color:#fff;*/
    background-color: #fff;
    color:#66666650;
  
} 
input.error + label.input-placeholder {
    color:#fff!important;
}
input:not([value=""]) + label.input-placeholder,
input:focus + label.input-placeholder, 
textarea:focus + label.input-placeholder { 
 	margin-top: -24px;
	margin-top: -16px;
	
	
	opacity: 1;
    background-color: var(--colorgreen);
	color:#fff;
    
    background-color: #FFF;
    color: var(--colororange)!important;
}
input:focus + .form-field-label { 
    
	/*background-color: var(--colorgreen);
	opacity: 1;
	color:#fff;
    
    background-color: var(--colororangelight);
    color: var(--colororange);*/
    color: var(--colororange);
}
script + label.input-placeholder { 
     margin-top: -15px!important;   
}
textarea + label.input-placeholder, textarea +  script + label.input-placeholder { 
     margin-top: -10px!important;   
}
.group-small textarea + label.input-placeholder, .group-small script + label.input-placeholder { 
     margin-top: -5px!important;   
}
.form-input-helper .fa-check {
    color:var(--colorgreen)!important;
}

input:not([value=""]) + label.input-placeholder:after,
input:focus + label.input-placeholder:after {
	content: ':';
}
input[required]   + label.input-placeholder:after {
	content:  ' *';
}
input[required]   +  .form-field-label {
    white-space: nowrap;
}
input[required]   +  .form-field-label:after {
    content:  ' *';
}
input[required]:not([value=""]) + label.input-placeholder:after,
input[required]:focus + label.input-placeholder:after {
	content:  ' *:';
}
.form-inputs-grid {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: 1fr 1fr;
	
}
.form-inputs-grid > * {
	margin: 0px;
}

.content-wrapper input.touched:not(input[type="radio"]):not(input[type="checkbox"]):not(:focus):not(:valid), 
.content-wrapper input:not(input[type="radio"]):not(input[type="checkbox"]):not([value=""]):not(:valid):not(type="number"),
.content-wrapper input.error { 
	border-color:#CB0003;
	box-shadow: 0px 0px 0px 2px #CB000320;
	transition-delay: 2s;
}
.content-wrapper input.error { 
     opacity: 0.8!important;   
}
.content-wrapper input:not([value=""]):not(:valid) + label.input-placeholder,
.content-wrapper input.error + label.input-placeholder{ 
	background-color:#CB0003!important;
	transition-delay:0.1s;
    color:#fff!important;
}

input, textarea, .file-dropper {
	background-color: #ffffff!important;
}

.file-dropper:active {
    background-color: #ddd!important;
}

body[class*="account"] form:not(.max-width-lock) {
    max-width: 720px;
}
body[class*="account"] form input {
    background-color: #fff!important;
}
label + .form-input-helper, input + .form-input-helper  {
     margin-top: 0px!important;   
}

.header-search-bar-results-wrapper .kdp-category-page-wrapper { 
    padding-bottom: 0px;
}

.form-field-group-inner input::placeholder, 
.form-field-group-inner textarea::placeholder { 
    color:rgba(255,255,255,0)!important;
}
 input:not(:focus) + .form-field-label, textarea:not(:focus)  + .form-field-label { 
     top: 20px!important;   
}
input:focus + .form-field-label, textarea:focus  + .form-field-label,
input.touched + .form-field-label, textarea.touched  + .form-field-label { 
     top: 2px!important;   
}


.form-field-group[fieldtype="textarea"]::before { 
     content: ".";
      display: block;
      height: 10px;
      clear: both;
      visibility: hidden;
      margin:0px;
      padding:0px;
     margin-top: 0px!important;
}
.vat-field .form-input-helper {
    max-width: 200px!important;
}

/* Config 2026 uploader remarks. */
.pff-2025-wrapper textarea[name^="uploader_comments"] { border-color: #e5e5e5; max-height: 200px; overflow-y: auto; }
