/* ==========================================================================
   Vanda Carpet Management - style.css
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Root Variables)
   ========================================================================== */
:root {
  
	--accent-background: #cccccc;
	--text: #333333;
	--accent-color: #222c6a;
	--accent-hover: #222c6a;
}

/* ==========================================================================
   2. Resets and Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--background);
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 20px;
    color: var(--text);
}

body.dev-env {
    background-color: #ffc1c1 !important;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
@font-face {
    font-family: Code128;
    src: url('code128.otf');
}

h1, h2, h3, p {
    margin-bottom: 10px;
}

h1 {
    font-size: 1.5em;
    text-align: center;
}

a, a:visited {
    color: #333;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   4. Layout Components
   ========================================================================== */
#wrapper {
    width: 100%;
    min-height: 300px;
    margin: auto;
    background: var(--background);
    position: relative;
}

#header {
    padding: 0 0 10px 0;
}

#logo {
    width: 150px;
    height: 52px;
    padding-top: 0;
    padding-left: 10px;
    position: absolute;
    z-index: 10;
}

#content-wrapper {
    margin: 5px;
    padding-bottom: 20px;
}

.navigation-header {
    width: 100%;
    padding-bottom: 10px;
}

#version {
    position: fixed;
    bottom: 0;
    right: 3px;
    font-size: 9px;
    color: #aaa;
}

#version a {
    display: inline;
    width: 120px;
    text-align: right;
    font-size: 9px;
    color: #aaa;
    text-decoration: none;
}

/* ==========================================================================
   5. Form Elements
   ========================================================================== */
input[type=submit], input[type=reset], input[type=button] {
    padding: 5px 10px;
    margin: 5px;
}

input[type=text], select, .textfield, .datepicker {
    font-size: 1em;
    margin: 0 5px;
    height: 35px;
    border: 1px solid #ccc;
    line-height: 30px;
    padding: 5px;
	border-radius: 8px;
}

.textfield, .datepicker {
    height: 35px;
}

#gewicht {
    height: 25px;
    line-height: 25px;
    font-size: 12px;
    padding: 0 5px;
    margin: 0;
}

#amount {
    width: 50px;
    text-align: center;
}

.amountbutton {
    margin: 10px;
    width: 25px;
}

.input-select {
    width: 175px;
}

#csv, #csv img {
    width: 70px;
    height: 53px;
    float: left;
    margin-top: 10px;
    cursor: pointer;
}

/* ==========================================================================
   6. Buttons and Interactive Elements
   ========================================================================== */
.button {
    position: relative;
    margin: 0 10px 10px 0;
}

.submit {
    margin-left: 20px;
}

.suppliers .submit, .suppliers .reset {
    margin: 5px 10px;
}

.delete, .delete-stock, .unship-article {
    height: 20px;
    width: 21px;
    display: inline-block;
    cursor: pointer;
}

.delete, .delete-stock {
    background: url(../images/cross-16px.png) center no-repeat;
}

.unship-article {
    background: url(../images/truck-cross.png) center no-repeat;
}

.open:hover, .gereed:hover, .behandeling:hover, .gettransport, .returntransport, .pageswitch {
    cursor: pointer;
    background: #222c6a;
    color: #fff;
    font-weight: bold;
}

/* ==========================================================================
   7. Tables
   ========================================================================== */
.data-table {
    position: relative;
    width: 100%;
    border-collapse: collapse;
}

.data-table tr:nth-of-type(odd) {
    background: #e3e3e3;
}

.data-table th, .data-table th a, .data-table tfoot td {
    background: #222c6a;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.data-table td {
    border-top: 1px solid #ccc;
    padding: 4px 3px;
    text-align: center;
    font-size: 0.9em;
}

#artikelnummer_col {
    min-width: 140px;
}

.table-header tr, .table-header tr:hover {
    background: #222c6a;
    color: #fff;
    line-height: 30px;
    padding: 0;
    margin: 0;
}

.table-header a, .table-header a:visited, .table-header a:active {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.clickable-row:hover, .shipmentrow:hover {
    cursor: pointer;
    background-color: #fdfac6;
}

.clickable-row a {
    text-decoration: none;
}

/* ==========================================================================
   8. Forms
   ========================================================================== */
.register-form {
    margin: 10px auto 0;
    width: 300px;
    padding: 20px;
    background: #ccc;
    border: 1px solid #666;
}

.register-form form input {
    padding: 5px;
}

.register-form .btn {
    background: #222c6a;
    padding: 7px;
    border-radius: 5px;
    text-decoration: none;
    width: 50px;
    display: inline-block;
    color: #fff;
    margin-left: 80px;
}

.register-form .register {
    border: 0;
    width: 90px;
    padding: 8px;
}

#workorderform {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 900px;
    margin: 20px auto;
}

#workorderform label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

#workorderform input[type="text"],
#workorderform input[type="date"],
#workorderform textarea,
#workorderform input[type="file"],
#workorderform input[type="datetime-local"],
#workorderform select {
    width: 100%;
    padding: 10px 15px;
	margin: 0px !important;
	height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

#workorderform textarea {
    resize: vertical;
    height: 150px;
}

#workorderform .form-group {
    width: 48%;
    margin-bottom: 20px;
}

#workorderform .form-group-full {
    width: 100%;
    margin-bottom: 20px;
}

#resourceContainer {
	width: 100%;
	display: inline-block;
	flex-wrap: wrap;
	justify-content: space-between;
}


#workorderform input[type="submit"],
#workorderform #addResource,
#workorderform .removeResource {
    border: none;
    padding: 10px 15px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    margin: 5px 0;
}

#workorderform input[type="submit"],
#workorderform #addResource {
    background-color: #28a745;
    color: #fff;
}

#workorderform .removeResource {
    background-color: #a72828;
    color: #fff;
}

#workorderform input[type="submit"]:hover {
    background-color: #218838;
}

#filter_form_div, #filter_form_div label {
    font-weight: bold;
    line-height: 30px;
    text-align: right;
    margin-right: 10px;
}

#filter_form {
    margin-bottom: 5px;
    font: 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
}

#filter_form input[type=text], #filter_form select, #submit_free_search, #reset_free_form {
    line-height: 32px;
    font: 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
}

#filter_form_div button {
	height: 32px;
	line-height: 32px;
	font: 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
	margin-left: 5px;
	padding: 5px 10px;
	border-radius: 8px;
	border: 1px solid #333;;
}

#input_free_search {
    font-size: 1em;
    margin: 5px;
    height: 20px;
    border: 1px solid #ccc;
    line-height: 25px;
    padding: 5px;
    margin-top: 2px;
}

#herstel, #submit_free_search, #machine_filter {
    height: 32px;
    margin: 0;
}

#filter_form_div select {
    padding: 5px;
    margin: 0 5px;
    border: 1px solid #E5E5E5;
    background: #FBFBFB;
    height: 32px;
}

#machineform ul {
    text-align: center;
    margin: 10px 5px;
}

#machineform ul li {
    display: inline-block;
    width: 180px;
    align-self: center;
}

.machine-input-text {
    padding: 5px 2px;
    margin: 5px;
    width: 150px;
}

.userform-edit {
    margin: auto;
    width: 25%;
}

.userform-edit tr td:first-child {
    width: 50%;
}

.userform-edit input[type="text"],
.userform-edit select {
    height: 24px;
    line-height: 25px;
    font-size: 14px;
    padding: 0 5px;
    margin-top: 2px;
    margin-right: 10px;
}

.userform-edit select {
    height: 28px;
    line-height: 29px;
    width: 95%;
}

/* ==========================================================================
   9. Lists and Forms
   ========================================================================== */
#optieform ul, #stanslist, #insertform {
    list-style: none;
    text-align: center;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

#optieform ul li, #stanslist li, #insertform li {
    line-height: 30px;
}

#optieform ul li label, #stanslist li label, #insertform li label {
    display: inline-block;
    width: 190px;
}

#optieform input, #stanslist input {
    width: 200px;
}

#optieform input[type=text], #stanslist input[type=text], #insertform input[type=text] {
    height: 25px;
    line-height: 25px;
    font-size: 14px;
    padding: 0 5px;
}

#taskform ul li, #taskform ul li label {
    width: 150px;
    float: left;
}

#taskformcontainer {
    background-color: #222c6a;
    color: #fff;
    font-weight: bold;
    padding-bottom: 10px;
}

#taskformcontainer label {
    margin: 10px;
}

#taskformcontainer input[type="text"] {
    height: 24px;
    line-height: 25px;
    font-size: 14px;
    padding: 0 5px;
    margin-top: 15px;
}

#rollformlist, #childrollformlist {
    list-style: none;
}

#rollformlist input[type=submit], #rollformlist input[type=reset], #rollformlist input[type=button] {
    margin: 0;
}

#rollformlist input[type=checkbox] {
    width: 20px;
    height: 20px;
}

#rollformlist label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 5px;
    width: 300px;
}

#rollformlist li {
    margin-bottom: 10px;
}

#rollformlist label span, #childrollformlist label span {
    display: inline-block;
    width: 300px;
}

#rollformlist input[type="text"], #childrollformlist input[type="text"] {
    height: 24px;
    line-height: 25px;
    font-size: 14px;
    padding: 0 5px;
    margin-top: 2px;
    margin-right: 10px;
}

#childrollform {
    display: none;
}

#childrollform li {
    list-style: none;
    width: 100%;
}

#childrollform li label span {
    font-size: 1em;
    display: inline-block;
    width: 300px;
    text-align: left;
}

#rollform-edit {
    text-align: center;
}

#rollform-edit #rollformlist tr td:first-child {
    text-align: left;
    width: 50%;
}

.childrolllist-input {
    font-weight: bold;
    width: 50%;
    margin: auto;
}

#chilldrolllist {
    width: 100%;
}

#chilldrolllist tr td input {
    max-width: 80px;
}

/* ==========================================================================
   10. Notifications and Messages
   ========================================================================== */
#result {
    text-align: center;
    padding: 5px;
    font-weight: bold;
}

#notice {
    width: 210px;
    margin: 5px auto;
}

.notice {
    border: 1px solid #6879FF;
    background: #C8CEFF;
    margin: 5px;
}

.error {
    border: 1px solid #FF8D82;
    background: #FFD4A4;
    margin: 5px;
}

.error_message {
    color: #f00;
    clear: both;
    padding: 5px 0 0 0;
    width: 100%;
}

.password_message {
    color: rgb(163, 0, 0);
}

.debug {
    width: 100%;
    background: #fffa90;
    color: #777620;
    border: 1px solid #dad55e;
}

.yellow-background {
    background-color: #faf7b5;
    border: 1px solid #b6ad00;
}

.green-background {
    background-color: #B6F3B9;
    border: 1px solid #063E00;
}

.red-background {
    background-color: #ff9090;
    border: 1px solid #832424;
}

.machine-success {
    border: 1px solid #063E00;
    background-color: #B6F3B9;
}

.red {
    background: #FFEDED;
}

/* ==========================================================================
   11. Miscellaneous
   ========================================================================== */
hr {
    margin: 10px;
    height: 1px;
    background-color: #ccc;
    border: none;
}

.clr {
    clear: both;
}

.grey {
    background: #ededed;
}

.blue-divider {
    background: #222c6a;
    height: 5px;
    line-height: 5px;
}

#barcode-display {
    font-family: Code128;
    font-size: 45px;
    line-height: 50px;
}

#stansbuttons-container {
    display: inline-block;
}

#stansbuttons-container a {
    margin: 5px 50px;
    line-height: 25px;
}

#results {
    margin: 0 0 10px 0;
}

#query {
    display: none;
}

.ui-accordion-content-active {
    height: 155px;
    vertical-align: middle;
}

.ui-widget tr:hover {
    background: #ccc;
}

.ui-state-active {
    color: #fff;
}

#filterdiv {
    text-align: right;
}

#filterdiv select {
    font-size: 14px;
    margin: 0 10px 10px 0;
    height: 30px;
    border: 1px solid #ccc;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination-link, .current-page {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination-link:hover {
    background-color: #f0f0f0;
}

.current-page {
    background-color: #222c6a;
    color: white;
    border: 1px solid #222c6a;
}

.results {
    width: 100%;
    text-align: center;
    line-height: 27px;
}

#insertform a.ui-button {
    margin: 5px;
}

.mobilelist {
    list-style: none;
    line-height: 25px;
    text-align: center;
}

.mobilelist label {
    display: inline-block;
    width: 140px;
    font-size: 14px;
}

.roll-form-div {
    margin-left: 20px;
}

.roll-form-div tr td:first-child {
    width: 50%;
}

/* ==========================================================================
   12. Login and Error Pages
   ========================================================================== */
.login-header {
    float: center;
}

.login-body {
    display: inline-block;
}

.login-body .labels {
    float: left;
    width: 40%;
}

.login-body .labels > label {
    margin: 2px;
    line-height: 30px;
    text-align: right;
}

.login-body .inputfields {
    float: right;
    width: 60%;
}

.login-body .inputfields > input {
    width: 90%;
    height: 15px;
    margin: 2px;
    border: none;
}

.login-footer {
    float: right;
}

.forbidden-page, .error-page {
    padding: 0 1em;
    font-size: 1.2em;
    margin-left: auto;
    margin-right: auto;
    width: 600px;
}

.forbidden-page > p, .error-page > p {
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    width: 350px;
    margin-bottom: 5%;
    height: 17px;
}

.forbidden-page > p > span, .error-page > p > span {
    float: left;
    margin-right: 0.3em;
    top: 0.4em;
}

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   13. Media Queries
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #1a1a1a;
        --text: #ffffff;
		--accent-background: #333333;
    }
}

@media (forced-colors: active) {
    :root {
        --background: Canvas;
        --text: CanvasText;
        --accent-color: ButtonText;
    }
}

@media (max-width: 768px) {
    #workorderform .form-group {
        width: 100%;
    }

    #workorderform {
        flex-direction: column;
    }
}