/* GENERISANO - scripts/novibeograd_onlajn.py. Policijsko sanduče, PU za grad Beograd (2019). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #222; background: #eef1f5; font-size: 16px; line-height: 1.45; }
a { color: #1f4f99; }
.hd { background: #1f2a44; color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 18px; min-height: 60px; }
.hd img { height: 40px; width: 40px; background: #fff; border-radius: 50%; flex: none; }
.hd span { font-size: 15px; }
.hd b { font-weight: 700; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 0 40px; background: #fff; min-height: calc(100vh - 60px); }
/* prijava */
.login { background: #eef1f5; }
.bx { max-width: 460px; margin: 48px auto; background: #fff; border-top: 5px solid #1f2a44; padding: 30px 32px; box-shadow: 0 2px 10px #0002; text-align: center; }
.bx img { height: 84px; }
.bx h1 { font-size: 19px; margin: 14px 0 2px; color: #1f2a44; }
.bx .s { color: #666; font-size: 14px; margin-bottom: 20px; }
.bx label.f { display: block; text-align: left; font-size: 14px; margin: 12px 0 4px; }
.bx input[type=text], .bx input[type=password] { width: 100%; border: 1px solid #bbb; height: 42px; border-radius: 3px; padding: 8px; font-size: 16px; }
.bx .ch { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 13px; color: #555; margin-top: 8px; }
.bx button { margin-top: 20px; width: 100%; background: #1f2a44; color: #fff; font: 700 15px Arial, sans-serif; padding: 12px; border: 0; border-radius: 3px; cursor: pointer; }
.err { color: #c62828; font-size: 14px; margin-top: 14px; display: none; }
.err.show { display: block; }
/* sanduče */
.pr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 20px 22px 10px; font-size: 20px; }
.pr span { font-size: 14px; color: #666; white-space: nowrap; }
.pr i { color: #bbb; font-style: normal; border: 1px solid #ddd; padding: 2px 8px; margin-left: 4px; }
table.inbox { width: calc(100% - 44px); margin: 0 22px; border-collapse: collapse; font-size: 15px; }
table.inbox th { text-align: left; color: #666; font-size: 13px; font-weight: 400; border-bottom: 2px solid #ccc; padding: 8px; }
table.inbox td { padding: 13px 8px; border-bottom: 1px solid #e3e3e3; }
table.inbox tr:nth-child(even) td { background: #f4f7fb; }
table.inbox tr.red { cursor: pointer; }
table.inbox tr.red:hover td { background: #e6eefa; }
table.inbox a { color: inherit; text-decoration: none; font-weight: 700; }
.cl { width: 30px; color: #777; }
/* mejl */
.nazad { display: inline-block; margin: 16px 22px 0; font-size: 14px; }
.mejl { padding: 6px 22px 10px; }
.mejl h1 { font-size: 22px; margin: 14px 0 12px; font-weight: 700; }
.meta { color: #444; font-size: 14px; border-bottom: 1px solid #e3e3e3; padding-bottom: 12px; margin-bottom: 16px; }
.meta .od { font-weight: 700; color: #222; }
.telo p { margin: 0 0 12px; }
.potpis img { max-height: 46px; max-width: 100%; margin: 4px 0 6px; }
.prilozi { border-top: 1px solid #e3e3e3; margin-top: 18px; padding-top: 14px; }
.prilozi h2 { font-size: 14px; color: #666; font-weight: 400; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: flex; flex-direction: column; width: 170px; border: 1px solid #d6dbe3; border-radius: 4px; background: #f7f9fc; text-decoration: none; color: #222; font-size: 13px; overflow: hidden; }
.chip .sl { height: 104px; background: #e9edf3 center top / cover no-repeat; border-bottom: 1px solid #d6dbe3; }
.chip .ime { padding: 7px 9px; word-break: break-word; }
.chip .ime::before { content: "\1F4CE  "; }
.audio { border: 1px solid #d6dbe3; border-radius: 4px; background: #f7f9fc; padding: 12px; max-width: 440px; }
.audio .ime { font-size: 13px; margin-bottom: 8px; }
.audio .ime::before { content: "\1F50A  "; }
.audio audio { width: 100%; }
.potpis-ime { font-size: 13px; color: #666; text-align: center; margin: 8px 0 0; }
/* prilog */
.prilog { padding: 10px 22px; }
.prilog img { display: block; max-width: 100%; height: auto; margin: 12px auto; border: 1px solid #ddd; box-shadow: 0 1px 6px #0002; }
.prilog .ime { font-size: 14px; color: #444; }
@media (max-width: 640px) {
  .hd span { font-size: 13px; }
  .bx { margin: 20px 12px; padding: 24px 18px; }
  .pr { padding: 16px 14px 8px; }
  table.inbox { width: calc(100% - 28px); margin: 0 14px; }
  table.inbox thead { display: none; }
  table.inbox tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 6px; border-bottom: 1px solid #e3e3e3; }
  table.inbox td { border: 0; padding: 2px 4px; background: none !important; }
  table.inbox td.po { grid-column: 1; }
  table.inbox td.na { grid-column: 1; grid-row: 2; }
  table.inbox td.cl { grid-column: 2; grid-row: 2; width: auto; }
  table.inbox td.vr { grid-column: 2; grid-row: 1; font-size: 12px; color: #555; }
  .mejl, .prilog { padding-left: 14px; padding-right: 14px; }
  .nazad { margin-left: 14px; }
  .chip { width: calc(50% - 6px); }
}
