/* М5 Расписание и меню — дополнения к /_ui/cos.css */
[hidden] { display: none !important; }
.r-buildings > .cos-card { margin-top: 0; }
.r-buildings { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.r-bcard { display: flex; flex-direction: column; gap: 10px; }
.r-bcard h2 { margin: 0; font-size: 1.25rem; }
.r-bcard .r-short { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 8px; background: #e0ecff; color: #1d4ed8; font-weight: 700; margin-right: 8px; }
.r-kinds { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.r-kinds li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed #e5e7eb; padding-bottom: 4px; }
.r-kinds .ok { color: #15803d; }
.r-kinds .none { color: #9ca3af; }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.r-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid #e5e7eb; margin: 16px 0; }
.r-tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; cursor: pointer; color: #4b5563; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.r-tabs button.active { color: #1d4ed8; border-bottom-color: #1d4ed8; font-weight: 600; }
.r-tabs .cnt { display: inline-block; background: #fde68a; color: #92400e; border-radius: 10px; padding: 0 7px; font-size: .78rem; margin-left: 4px; }

.r-pub { margin-bottom: 18px; }
.r-pub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.r-pub-head h3 { margin: 0 0 4px; }
.r-files { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.r-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; }
.r-file .r-ext { font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #e5e7eb; color: #374151; }
.r-ext.pdf { background: #fee2e2; color: #b91c1c; } .r-ext.xlsx { background: #dcfce7; color: #15803d; } .r-ext.docx { background: #dbeafe; color: #1d4ed8; } .r-ext.image { background: #fef3c7; color: #92400e; }
.r-file .r-fname { flex: 1; min-width: 160px; word-break: break-word; }
.r-viewer { border: 1px solid #e5e7eb; border-radius: 10px; background: #f1f5f9; padding: 8px; overflow: auto; }
.r-viewer img, .r-viewer canvas { display: block; max-width: 100%; height: auto; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.r-viewer iframe { width: 100%; height: 75vh; border: 0; background: #fff; border-radius: 6px; }
.r-empty { padding: 28px; text-align: center; color: #6b7280; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 10px; }
.r-upcoming { margin-top: 10px; }
.r-badge-soon { background: #ede9fe; color: #6d28d9; }
.r-badge-del { background: #fee2e2; color: #b91c1c; }
.r-badge-cur { background: #dcfce7; color: #15803d; }
.r-hist td { vertical-align: top; }
.r-dropzone { border: 2px dashed #93c5fd; border-radius: 10px; padding: 18px; text-align: center; color: #1e40af; background: #eff6ff; cursor: pointer; }
.r-dropzone.drag { background: #dbeafe; }
.r-flist { font-size: .9rem; margin-top: 6px; }
.r-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .r-two { grid-template-columns: 1fr; }
  .r-viewer iframe { height: 65vh; }
  .r-tabs button { padding: 8px 10px; }
}
