/* SSI Track — deliberately plain. Mobile-first, big touch targets on floor screens. */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
       background: #f4f5f7; color: #1a1a2e; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }

.topbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
          background: #16324f; color: #fff; padding: 10px 16px; }
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.2em; text-decoration: none; margin-right: 12px; }
.topbar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar a { color: #cfe3f5; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.topbar a:hover { background: #244b73; }
.topbar .who { color: #8fb3d1; margin-left: 8px; font-size: .9em; }

h1 { font-size: 1.4em; } h2 { font-size: 1.1em; margin-top: 28px; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card.narrow { max-width: 420px; margin: 40px auto; }
.kpi { font-size: 1.05em; }

/* forms */
label { display: block; margin: 12px 0; font-weight: 600; }
input, select, button { font-size: 16px; padding: 10px; border: 1px solid #c5ccd6;
                        border-radius: 8px; width: 100%; margin-top: 4px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin: 12px 0; }
.inline-form input, .inline-form select { width: auto; }
.inline-form .wide { min-width: 280px; }
form.inline { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
form.inline input { width: 160px; margin: 0; }
.filters { display: flex; gap: 8px; margin: 12px 0; }
.filters input, .filters select, .filters button { width: auto; }

/* floor screens: bigger everything */
.floor main { max-width: 640px; }
.big-input, .floor select, .floor input { font-size: 20px; padding: 16px; }
button.big, a.btn.big { display: block; width: 100%; font-size: 22px; font-weight: 700;
    padding: 18px; margin-top: 16px; border: none; border-radius: 10px; cursor: pointer;
    text-align: center; text-decoration: none; background: #d7dbe0; color: #1a1a2e; }
button.green, .btn.green { background: #1e8a3c; color: #fff; }
button.blue, a.btn.blue, .btn.blue { background: #1c6dd0; color: #fff; }
a.btn { display: inline-block; width: auto; padding: 10px 16px; border-radius: 8px;
        text-decoration: none; }
button.danger { background: #b3261e; color: #fff; border: none; }
button.small { width: auto; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* tables */
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px;
             overflow: hidden; margin: 12px 0; font-size: 14px; }
table.data th { background: #e8edf3; text-align: left; padding: 10px; }
table.data td { padding: 8px 10px; border-top: 1px solid #eef1f5; }
table.data .num { text-align: right; }
table.data tr.muted td { color: #9aa3af; text-decoration: line-through; }
table.data tr.total td { background: #f0f4f8; }

/* messages */
.error { background: #fdecea; color: #b3261e; padding: 10px; border-radius: 8px; }
.ok { background: #e6f4ea; color: #1e8a3c; padding: 10px; border-radius: 8px; }
.warn { background: #fff4e5; color: #8a5a00; padding: 12px; border-radius: 8px; margin-bottom: 12px; }
.ok-big { font-size: 1.5em; color: #1e8a3c; }
.result-box { text-align: center; }
.tabs a { display: inline-block; padding: 8px 14px; border-radius: 8px 8px 0 0;
          text-decoration: none; color: #16324f; background: #e2e7ee; margin-right: 4px; }
.tabs a.active { background: #fff; font-weight: 700; }

/* floor menu tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 8px; background: #fff; border-radius: 14px; padding: 36px 12px;
        font-size: 44px; text-decoration: none; color: #16324f;
        box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.tile span { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.tile:active { background: #e8edf3; }

/* consumir: rolls-on-machine rows — info on its own full-width line,
   inputs below, so nothing gets squeezed into a narrow column */
.machine-row { display: block; padding: 16px 0; border-top: 2px solid #dfe5ec; }
.machine-row .machine-info { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.machine-row .machine-info strong { font-size: 20px; }
.machine-row input { margin: 0 0 8px 0; width: 100%; }
.machine-row button { width: 100%; margin-top: 4px; }
.machine-info small { color: #7a8494; }
