/* Личный кабинет клиента — в стиле сайта pavilion46.pl */
:root { --yellow: #ffd552; --ink: #000; --text: #222; --muted: #6b6b6b; --grey: #f4f4f4; --line: #e6e6e6; --radius: 14px; }
body { background: var(--grey); color: var(--text); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--ink); }
.p-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.p-top .inner { max-width: 1100px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: 1rem; }
.p-top img { height: 44px; width: auto; }
.p-nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.p-nav a { white-space: nowrap; text-decoration: none; padding: .45rem .8rem; border-radius: 40px; color: var(--text); font-weight: 500; }
.p-nav a.on { background: var(--ink); color: #fff; }
.p-nav .dot { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 1em; background: var(--yellow); color: #000; font-size: .75em; text-align: center; margin-left: .25em; }
.p-main { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.p-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.p-h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 1rem; }
.p-h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .75rem; }
.btn-ink { background: var(--ink); color: #fff; border-radius: 40px; padding: .55rem 1.2rem; font-weight: 500; border: 0; }
.btn-ink:hover, .btn-ink:focus { background: #222; color: #fff; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); border-radius: 40px; padding: .5rem 1.1rem; font-weight: 500; background: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }
.attention { background: #fff8dc; border: 1px solid var(--yellow); border-radius: var(--radius); padding: .9rem 1.1rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.attention b { margin-right: .4rem; }
.attention a { background: #fff; border: 1px solid var(--ink); border-radius: 40px; padding: .3rem .8rem; text-decoration: none; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.tile { background: #fff; border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); display: block; }
.tile .n { font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.tile .l { color: var(--muted); font-size: .9rem; }
.tile .s { font-size: .85rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th { color: var(--muted); font-weight: 500; font-size: .85rem; padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.p-table td { padding: .65rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table .num { text-align: right; white-space: nowrap; }
.p-table tr.link { cursor: pointer; }
.p-table tr.link:hover td { background: #fafafa; }
.chip { display: inline-block; padding: .2rem .6rem; border-radius: 40px; font-size: .8rem; font-weight: 500; background: #eee; white-space: nowrap; }
.chip.ready { background: #e3f6e8; color: #146c2e; }
.chip.wait { background: #fff1c2; color: #7a5600; }
.chip.done { background: #eee; color: #555; }
.chip.bad { background: #fde4e4; color: #a12020; }
.chip.info { background: #e4efff; color: #1d4f9c; }
.money { font-weight: 600; white-space: nowrap; }
.debt { color: #b42318; }
.muted { color: var(--muted); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { text-decoration: none; padding: .35rem .9rem; border-radius: 40px; border: 1px solid var(--line); background: #fff; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.item-row { border: 1px solid var(--line); border-radius: 12px; padding: .9rem; margin-bottom: .75rem; background: #fff; }
.login-wrap { max-width: 420px; margin: 3rem auto; }
.login-tabs { display: flex; gap: .3rem; background: var(--grey); padding: .25rem; border-radius: 40px; margin-bottom: 1rem; }
.login-tabs a { flex: 1; text-align: center; padding: .45rem; border-radius: 40px; text-decoration: none; font-weight: 500; }
.login-tabs a.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.note-msg { white-space: pre-line; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:first-child { grid-column: span 2; }
  .cols { grid-template-columns: 1fr; }
  .p-top img { height: 36px; }
  .hide-sm { display: none; }
  .p-h1 { font-size: 1.35rem; }
}
/* Непрочитанное: новый заказ / новости по заказу / ответ магазина — пока клиент не открыл */
.p-table tr.unread td { font-weight: 600; background: #fffdf3; }
.p-table tr.unread td:first-child { box-shadow: inset 4px 0 0 var(--yellow); }
.p-table tr.need td { background: #fff4cc; }
.p-table tr.need:hover td { background: #ffeeb0; }
.new-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #e8a400; vertical-align: middle; }
.note-new { background: #fffbea; border-radius: 10px; box-shadow: inset 4px 0 0 var(--yellow); }
.tile.tile-need { background: #fff4cc; box-shadow: inset 0 0 0 2px var(--yellow); }
.p-table td:first-child { white-space: nowrap; }
