/* FONT */
html,
body,
input,
select,
textarea
{
	font-size: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}


/* HTML ELEMENTS */
a
{
	color: #5a9138;
	text-decoration: underline;
}

p
{
	line-height: 1.5;
}

hr
{
	margin: 20px 0;
	border: solid #ccc;
	border-width: 1px 0 0 0;
}


/* SCAFFOLD */
body
{
	padding: 0 10px 10px 10px;
}

header
{
    margin: 10px 0 0 0;
    padding-top: 40px;
}

main
{
	margin: 10px 0 0 0;
}

.wrap_outer
{
    max-width: 480px;
    margin: 0 auto;
}


/* HEADER */
header p
{
	margin: 0;
	padding: 0;
	text-align: center;
}

header p a
{
	display: block;
	line-height: 40px;
	color: #000;
	background: #d4da18;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 90%;
}

header ul
{
	margin: 0;
	padding: 0;
}

header ul li
{
	list-style: none;
	margin: 0 0 10px 0;
	padding: 0;
	width: 100%;
}

header ul li a
{
	display: block;
	line-height: 40px;
	color: #000;
	background: #d4da18;
	text-decoration: none;
	text-align: center;
}


/* CONTENT */
h1
{
	margin: 0 0 10px 0;
	padding: 10px;
	font-size: 150%;
	color: #fff;
	background: #000;
	text-align: center;
}

h2
{
	margin: 20px 0 5px 0;
	padding: 0;
	font-size: 130%;
}

form,
fieldset
{
	margin: 0;
	padding: 0;
	border: 0;
}

legend
{
	width: 100%;
	margin-bottom: 10px;
	padding: 10px;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	background: #ccc;
}

input,
select,
textarea,
button
{
	appearance: normal;
	-moz-appearance: normal;
	-webkit-appearance: normal;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
	background-clip: padding-box;
	border: 1px solid #000;
	outline: none;
}


/* CHECKBOX / RADIO */
input[type="checkbox"],
input[type="radio"]
{
	opacity: 0;
	position: absolute;
}

input[type="checkbox"],
input[type="checkbox"] + label,
input[type="radio"],
input[type="radio"] + label
{
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	cursor: pointer;
}

input[type="checkbox"] + label,
input[type="radio"] + label
{
	position: relative;
	line-height: 20px;
	padding-left: 24px !important;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before
{
	content: '';
	position: absolute;
	left: 2px;
	top: 0;
	background: transparent;
	border: 1px solid #5a9138;
	width: 18px;
	height: 18px;
	text-align: center;
	-webkit-transition: background-color 0.2s linear;
	-moz-transition: background-color 0.2s linear;
	-o-transition: background-color 0.2s linear;
	-ms-transition: background-color 0.2s linear;
	transition: background-color 0.2s linear;
}

input[type="checkbox"] + label:hover:before
{
	background: #5a9138;
	box-shadow: inset 0px 0px 0px 3px #fff;
}

input[type="checkbox"]:checked + label:before,
input[type="checkbox"]:checked + label:hover:before
{
	background: #5a9138;
	box-shadow: inset 0px 0px 0px 3px #fff;
}

input[type="radio"] + label:before
{
	border-radius: 50%;
}

input[type="radio"] + label:hover:before
{
	background: #5a9138;
	box-shadow: inset 0px 0px 0px 4px #fff;
}

input[type="radio"]:checked + label:before,
input[type="radio"]:checked + label:hover:before
{
	background: #5a9138;
	box-shadow: inset 0px 0px 0px 4px #fff;
}

input[type="checkbox"]:focus + label,
input[type="radio"]:focus + label
{
	outline: 0;
}


/* FORMS */
.form-row
{
	width: 100%;
	height: 60px;
	overflow: hidden;
	margin-bottom: 10px;
}

.form-row label,
label.radio-row-heading
{
	display: block;
	height: 20px;
	line-height: 20px;
	font-weight: bold;
	font-size: 90%;
	text-transform: uppercase;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="password"]
{
	width: calc(100% - 12px);
	height: 28px;
	padding: 5px;
	border: 1px solid #aaa;
}

.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus,
.form-row input[type="password"]:focus
{
	border-color: #000;
}

.form-row-textarea
{
	height: 120px;
}

.form-row-textarea textarea
{
	width: calc(100% - 12px);
	height: 88px;
	padding: 5px;
	border: 1px solid #aaa;
}

.form-row-file input
{
	width: 100%;
	margin-top: 5px;
	border: 0 !important;
}

.form-submit button[type="submit"]
{
	width: 100%;
	height: 50px;
	margin-bottom: 10px;
	color: #fff;
	background: #5a9138;
	border: 0;
	cursor: pointer;
}

.radio-row
{
	width: 100%;
	padding: 10px 0;
}

.form-spacer
{
	margin: 25px 0;
}

button[type="button"]
{
	width: 100%;
	height: 50px;
	margin-bottom: 10px;
	color: #000;
	background: #d4da18;
	border: 0;
	cursor: pointer;
}


/* ERROR / INFO */
.msg-error p,
.msg-info p
{
	margin: 0 0 10px 0;
	padding: 15px;
}

.msg-error p
{
	color: #fff;
	background: #c00;
}

.msg-info p
{
	color: #fff;
	background: #2e96fc;
}


/* LOGIN */
.login-password
{
	text-align: center;
	-webkit-text-security: disc;
}


/* PRODUCT LIST */
.product-list ul
{
	margin: 0;
	padding: 0;
}

.product-list ul li
{
	list-style: none;
	margin: 0 0 10px 0;
	padding: 10px;
	border: 1px solid #ccc;
}

.product-list ul li h4.product-title
{
	margin: 0;
	padding: 5px;
	background: #ccc;
}

.product-list ul li p
{
	margin: 10px 0 0 0;
	padding: 0;
}

.product-list ul li p.product-unit
{
	font-size: 90%;
}

.product-list ul li p.product-status
{
	font-weight: bold;
}

.product-list ul li p.product-link
{
	margin: 0;
	padding: 0;
}

.product-list ul li p.product-link a
{
	display: block;
	margin-top: 10px;
	padding: 10px;
	line-height: 20px;
	color: #fff;
	background: #5a9138;
	text-decoration: none;
}

/* ORDER LIST */
.order-list ul
{
	margin: 0;
	padding: 0;
}

.order-list ul li
{
	list-style: none;
	margin: 0 0 10px 0;
	padding: 10px;
	border: 1px solid #ccc;
}

.order-list ul li h4.order-number
{
	margin: 0;
	padding: 5px;
	background: #ccc;
}

.order-list ul li p
{
	margin: 10px 0 0 0;
	padding: 0;
}

.order-list ul li button
{
	margin-top: 10px;
	margin-bottom: 0;
}

.order-list ul li button.expedition
{
	color: #fff;
	background: #5a9138;
}


/* ORDER DETAIL */
.order-detail dl,
.order-detail dt,
.order-detail dd
{
	margin: 0;
	padding: 0;
}

.order-detail dt
{
	font-weight: bold;
}

.order-detail dd
{
	padding: 0 0 10px 10px;
}

.order-detail h2
{
	margin: 10px 0;
	padding: 5px;
	background: #ccc;
}

.order-detail ul
{
	margin: 0;
	padding: 0;
}

.order-detail li
{
	list-style: none;
	margin: 0 0 10px 0;
	padding: 5px;
	border: 1px solid #ccc;
}

.order-detail li.check-no { background: #fed9d9; }
.order-detail li.check-pending { background: #fefed9; }
.order-detail li.check-yes { background: #d9fed9; }

.order-detail li p
{
	margin: 5px 0 0 0;
	padding: 0;
}

.order-detail li p:nth-child(1)
{
	margin-top: 0;
}

.order-detail li p.description
{
	font-size: 90%;
}

.order-detail button.expedition
{
	color: #fff;
	background: #5a9138;
}

/* ADAPTISCAN */
.form-row.adaptiscan
{
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
    cursor: pointer;
}

.form-row.adaptiscan.selected
{
    color: #000;
    background: #5fc3fa;
}

.form-row.adaptiscan.selected input,
.form-row.adaptiscan.selected textarea
{
    border-color: #000;
}

/* SUNMI SCANNER BUTTON */
.scan-button
{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #5a9138;
    border: none;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scan-button:hover
{
    background: #4a7a2e;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.scan-button:active
{
    transform: scale(0.95);
}

.scan-button svg
{
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
}

/* Responsive design pro menší obrazovky */
@media (max-width: 480px) {
    .scan-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .scan-button svg {
        width: 20px;
        height: 20px;
    }
}