/* Verze 2 – změna názvu slouží také k bezpečnému obnovení cache prohlížeče. */
/* ===== Úřední deska – hlavní přehled ===== */

section#uredni_deska {
  padding: 3rem 0;
  background-color: var(--background);
}

#uredni_deska .section-title h2,
#uredni_deska .section-title span {
  color: var(--primary);
}

#uredni_deska .section-title p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text);
}

/* Formulář */
#uredni_deska form {
  width: 100%;
}

#uredni_deska .bg-white.rounded-4.shadow-sm.border {
  background: #ffffff !important;
  padding: 2rem !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

#uredni_deska label {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

#uredni_deska input[type="date"],
#uredni_deska .form-control {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: var(--transition);
}

#uredni_deska input[type="date"]:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.1);
  outline: none;
}

#uredni_deska .btn {
  background-color: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  width: 100%;
  margin-top: 0 !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(27, 67, 50, 0.1) !important;
}

#uredni_deska .btn:hover {
  background-color: var(--primary-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.15) !important;
}

/* Tabulka */
.table-responsive {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.table thead th {
  background-color: var(--bg-subtle) !important;
  color: var(--primary) !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
  padding: 1.2rem 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.table tbody td {
  padding: 1.2rem 1rem !important;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.table-hover tbody tr:hover {
  background-color: var(--bg-subtle) !important;
}

#uredni_deska td a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

#uredni_deska td a:hover {
  color: var(--primary-light);
}

/* Detail dokumentu */
#document-detail {
  padding: 4rem 0;
}

.document-info {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.document-info h3 {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 0.8rem;
  font-size: 1.8rem;
}

.document-info ul {
  list-style: none;
  padding-left: 0;
}

.document-info ul li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
}

.document-info ul li i {
  color: var(--primary);
  margin-right: 12px;
  font-size: 1.1rem;
}

.document-description {
  margin-top: 2rem;
  padding: 2.5rem;
  background: var(--bg-subtle);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.pdf-viewer {
  background: #fff;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.pdf-viewer object {
  border-radius: 12px;
}
