/* М3 Портал колледжа — дополнения к общему UI-киту */
.p-nav a { display: flex; align-items: center; gap: 8px; }
.p-nav .p-sep { height: 1px; background: var(--cos-border); margin: 8px 4px; }
.p-nav .p-nav-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cos-muted); padding: 6px 12px 2px; }
.p-ext::after { content: "↗"; font-size: .8em; color: var(--cos-muted); margin-left: auto; }

.p-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.p-head h1 { margin: 0; flex: 1; min-width: 200px; }

.p-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 20px; }
.p-tiles .cos-tile { padding: 14px 16px; }
.p-tiles .cos-tile h3 { font-size: 1rem; }
.p-tile-accent { border-color: var(--cos-primary) !important; background: var(--cos-primary-soft) !important; }

.p-ann { position: relative; }
.p-ann.pinned { border-left: 4px solid var(--cos-primary); }
.p-ann h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.p-ann .p-meta { font-size: .82rem; color: var(--cos-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.p-ann .p-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.p-ann .p-body.clamp { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.p-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.p-block-off { padding: 14px; border: 1px dashed var(--cos-border); border-radius: 8px; color: var(--cos-muted); background: #fafbfc; }
.p-dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
.p-dl dt { color: var(--cos-muted); font-size: .9rem; }
.p-dl dd { margin: 0; overflow-wrap: anywhere; }
.p-cards { display: grid; gap: 10px; }
.p-item { border: 1px solid var(--cos-border); border-radius: 8px; padding: 12px 14px; background: #fff; }
.p-item-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.p-item-title { font-weight: 600; overflow-wrap: anywhere; }
.p-sub { font-size: .85rem; color: var(--cos-muted); }
.p-phone-locked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.05rem; font-weight: 600; }
.p-me td { background: var(--cos-primary-soft); }
.p-file-ico { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--cos-primary-soft); color: var(--cos-primary); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.p-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.p-filters input, .p-filters select { width: auto; flex: 1 1 160px; min-width: 0; max-width: 100%; }
.p-layout > * { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.p-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.p-tabs button { font: inherit; border: 1px solid var(--cos-border); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.p-tabs button.active { background: var(--cos-primary); border-color: var(--cos-primary); color: #fff; }
.p-hero { background: linear-gradient(135deg, #1f5fbf, #3b7be0); color: #fff; border-radius: var(--cos-radius); padding: 22px; margin-bottom: 18px; }
.p-hero h1 { margin: 0 0 6px; }
.p-hero p { margin: 0 0 12px; opacity: .92; }
.p-hero .cos-btn { background: #fff; color: var(--cos-primary); border-color: #fff; }
.p-check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.p-check input { width: auto; }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-empty { color: var(--cos-muted); padding: 10px 0; }

@media (max-width: 860px) {
  /* Меню разделов — горизонтальная лента с прокруткой */
  .p-layout { gap: 12px; }
  .p-nav { display: flex; overflow-x: auto; gap: 6px; padding: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .p-nav::-webkit-scrollbar { display: none; }
  .p-nav a { flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; border: 1px solid var(--cos-border); border-radius: 999px; font-size: .9rem; }
  .p-nav a.active { border-color: var(--cos-primary); }
  .p-nav .p-sep, .p-nav .p-nav-title { display: none; }
  .p-dl { grid-template-columns: 1fr; gap: 2px; }
  .p-dl dd { margin-bottom: 8px; }
  .p-two { grid-template-columns: 1fr; }
  .p-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .p-tiles .cos-tile { padding: 12px; }
  .p-tiles .cos-tile p { display: none; }
  .p-head h1 { font-size: 1.3rem; }
  .cos-card { padding: 14px; }
  .cos-btn { min-height: 40px; }
  .cos-modal { padding: 16px; }
  /* Таблицы на телефоне — карточками */
  table.p-resp thead { display: none; }
  table.p-resp, table.p-resp tbody, table.p-resp tr, table.p-resp td { display: block; width: 100%; }
  table.p-resp tr { border: 1px solid var(--cos-border); border-radius: 8px; margin-bottom: 8px; padding: 6px 0; }
  table.p-resp td { border: none; padding: 4px 12px; }
  table.p-resp td[data-l="№"] { display: none; }
  table.p-resp td[data-l]::before { content: attr(data-l) ": "; color: var(--cos-muted); font-size: .82rem; }
}
@media (max-width: 380px) { .p-tiles { grid-template-columns: 1fr; } }

/* «Моя группа» для куратора: таблица студентов */
.p-students td { vertical-align: middle; }
.p-students .p-st-phone { white-space: nowrap; }
.p-students .p-st-mail { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-ro { margin: 0 0 14px; overflow-wrap: anywhere; }
.p-students .p-st-act { text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .p-students .p-st-name { font-size: 1rem; padding-top: 6px; }
  .p-students .p-st-mail { max-width: none; white-space: normal; overflow-wrap: anywhere; }
  .p-students .p-st-act { text-align: left; padding-top: 8px; padding-bottom: 6px; }
}
.p-students .p-st-name .cos-badge { white-space: nowrap; }
