* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    background: linear-gradient(145deg, #f5f0e8 0%, #f2e8d8 55%, #e6dcc7 100%);
    color: #2f2419;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 14px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #3a2b1f;
    color: #fff5e6;
}

.title {
    margin: 0;
    font-size: 1.2rem;
}

.topbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card {
    margin-top: 14px;
    background: rgba(255, 250, 242, 0.94);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 25px rgba(58, 43, 31, 0.12);
}

h2,
h3 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    border: 1px solid #b8aa91;
    border-radius: 10px;
    padding: 10px;
    font-size: 1rem;
    background: #fffdf9;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.96rem;
}

.btn-primary {
    background: #2f7f52;
    color: white;
}

.btn-secondary {
    background: #405e7f;
    color: white;
}

.btn-danger {
    background: #b74835;
    color: white;
}

.btn-warning {
    background: #c77916;
    color: white;
}

.btn-link {
    text-decoration: none;
    display: inline-block;
}

.flash {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: bold;
}

.flash-ok {
    background: #d9f3df;
    color: #1e5b34;
}

.flash-error {
    background: #f6d9d5;
    color: #7a2418;
}

.orders-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.order-card {
    border: 1px solid #dccfb9;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: bold;
}

.status-podana {
    background: #f4dfb7;
    color: #674800;
}

.status-priprava {
    background: #d4e6ff;
    color: #234e84;
}

.status-vybavena {
    background: #d6efd8;
    color: #245f2a;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 520px;
    background: #fff;
}

th,
td {
    border: 1px solid #dccfb9;
    text-align: left;
    padding: 8px;
    vertical-align: top;
}

th {
    background: #f0e4cf;
}

.small {
    font-size: 0.84rem;
    color: #5b4f3f;
}

.inline-form {
    display: inline-block;
    margin: 0 6px 6px 0;
}

.quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

@media (max-width: 760px) {
    .orders-user-first,
    .orders-time-day,
    .orders-time-head-day {
        display: block;
    }

    .orders-user-last,
    .orders-time-time,
    .orders-time-head-time {
        display: block;
    }
}

@media (min-width: 761px) {
    .orders-user-first,
    .orders-time-day,
    .orders-time-head-day {
        display: inline;
    }

    .orders-user-last,
    .orders-time-time,
    .orders-time-head-time {
        display: inline;
    }
}

@media (min-width: 700px) {
    .container {
        padding: 20px;
    }

    .form-grid.two {
        grid-template-columns: 1fr 1fr;
    }

    .grid-two {
        grid-template-columns: 1fr 1fr;
    }

    .title {
        font-size: 1.5rem;
    }
}
