body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f9fa;
}

h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

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

input[type="text"],
input[type="number"],
select {
    padding: 8px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #243447;
    color: #ffffff;
}

tr:nth-child(even) {
    background-color: #f6f8fb;
}

tr:hover {
    background-color: #e8f1ff;
}

td {
    color: #1f2933;
}

input[type="submit"],
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

.success {
    color: #28a745;
    background-color: #e9f7ef;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
}

.success a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.success a:hover {
    background-color: #0056b3;
}

.printable {
    display: none;
}

.item-name {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12px;
    word-wrap: break-word;
}

.unique-code {
    display: block;
    font-size: 11px;
}

@media print {
    body > *:not(.printable) {
        display: none;
    }
    .printable {
        display: block;
    }
    .code-box {
        float: left;
        width: 120px;
        min-height: 60px;
        height: auto;
        margin: 5px;
        padding: 5px;
        text-align: center;
        border: 1px solid #000;
        font-size: 12px;
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    input[type="text"],
    input[type="number"],
    select {
        max-width: none;
        width: 100%;
    }

    h2 {
        font-size: 20px;
    }

    input[type="submit"],
    button {
        width: 100%;
        margin-bottom: 10px;
    }
}
