/* The portal (index.html): planning and quotes side by side. Colours and
   buttons come from styles.css. */
.pt-page { min-height: 100vh; }
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 2.5rem); background: var(--brand); color: #f4f7f5; }
.pt-logos { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pt-logos span { display: flex; align-items: center; padding: .4rem .6rem; border-radius: 10px; background: #fff; }
.pt-logos span.slowfeeder { background: #2f4a2b; }
.pt-logos img { display: block; height: 28px; width: auto; max-width: 180px; object-fit: contain; }
.pt-top-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.pt-top-link { color: #dbe6e1; font-weight: 650; text-decoration: none; padding: .4rem .5rem; }
.pt-top-link:hover { color: #fff; text-decoration: underline; }
.pt-top .logout-button { background: transparent; color: #dbe6e1; border-color: rgba(255,255,255,.25); }

.pt-main { width: min(1320px, 100%); margin: 0 auto; padding: 1.8rem clamp(1rem, 4vw, 2.5rem) 3rem; }
.pt-out .pt-in { display: none; }
.pt-login { max-width: 420px; }
.pt-login:empty { display: none; }

.pt-hello { margin-bottom: 1.2rem; }
.pt-hello h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; }
.pt-hello p { margin: .2rem 0 0; color: var(--muted); }
.pt-hello #today::first-letter { text-transform: uppercase; }
.pt-stamp { margin-left: .4rem; font-size: .85rem; }

.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.pt-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(13,48,41,.06); }
.pt-head { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.pt-head:hover { background: #f7faf8; }
.pt-head:hover .pt-open { background: var(--brand-2); }
.pt-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: var(--accent); }
.pt-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-title { flex: 1; min-width: 0; }
.pt-title h2 { margin: 0; font-size: 1.35rem; }
.pt-title small { display: block; color: var(--muted); }
.pt-open { flex: none; display: inline-flex; align-items: center; min-height: 44px; }

.pt-body { padding: 1.1rem 1.2rem .4rem; }
.pt-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.1rem; }
.pt-number { display: grid; align-content: start; padding: .75rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; color: inherit; text-decoration: none; }
.pt-number:hover { border-color: var(--brand-2); }
.pt-number strong { font-size: 1.8rem; line-height: 1.1; letter-spacing: -.04em; }
.pt-number span { font-weight: 750; font-size: .88rem; line-height: 1.25; }
.pt-number small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.pt-number.warn { background: #fdf6e0; border-color: #ecd9a4; }
.pt-number.warn strong { color: var(--warn); }
.pt-number.bad { background: #fbeeeb; border-color: #ebc4bd; }
.pt-number.bad strong, .pt-number.bad small { color: var(--bad); }
.pt-number.ok strong { color: var(--good); }

.pt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.pt-cols h3 { margin: 0 0 .4rem; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pt-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.pt-list li, .pt-list li > a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: baseline; }
.pt-list li { padding: .45rem 0; border-bottom: 1px solid #edf1ee; }
.pt-list li:last-child { border-bottom: 0; }
.pt-list li > a { grid-column: 1 / -1; color: inherit; text-decoration: none; }
.pt-list li > a:hover b { text-decoration: underline; }
.pt-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-list small { grid-column: 2; color: var(--muted); font-size: .82rem; }
.pt-list .pt-chip { grid-column: 2; justify-self: start; }
.pt-todo b { min-width: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #3a2a00; text-align: center; font-size: .85rem; }
.pt-chip { display: inline-block; padding: 0 .45rem; border-radius: 999px; font-size: .75rem; font-weight: 750; background: #edf1ee; color: var(--muted); }
.pt-chip.ok { background: #e3f3ea; color: var(--good); }
.pt-empty, .pt-muted { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.pt-error { color: var(--bad); margin: 0 0 1rem; }
.pt-foot { margin: 0 0 .9rem; color: var(--muted); font-size: .8rem; }
.pt-alert { display: block; margin: 0 0 1rem; padding: .7rem .85rem; border-radius: 10px; background: #fdf6e0; border: 1px solid #ecd9a4; color: #5e4520; text-decoration: none; font-size: .9rem; }
.pt-alert:hover { border-color: var(--warn); }

.pt-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding: .8rem 1.2rem 1rem; border-top: 1px solid var(--line); background: #f8faf8; }
.pt-links a { padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brand-2); font-weight: 700; font-size: .88rem; text-decoration: none; }
.pt-links a:hover { border-color: var(--brand-2); }

@media (max-width: 1100px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pt-top { flex-wrap: wrap; }
  .pt-logos img { height: 22px; max-width: 130px; }
  .pt-top-link { display: none; }
  .pt-head { flex-wrap: wrap; }
  .pt-open { width: 100%; justify-content: center; }
  .pt-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* The latest requests: name, products and state each on their own line. */
.pt-recent li > a { display: grid; grid-template-columns: minmax(0, 1fr); }
.pt-recent li > a b, .pt-recent li > a span, .pt-recent li > a small { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-recent li > a span { font-size: .9rem; }
.pt-login { margin: 1rem auto; }
.pt-out .logout-button { display: none; }
