
/* ===== INTRANET ===== */


.intranet-sidebar {
  border-right: 1px solid #ddd;
}

/* ===== Intranet multi-level navigation =====

.intranet-nav-horizontal {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ddd;
}

.nav-level-1 {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-level-1 > li {
  position: relative;
}

/* Level 1
.nav-level-1 > li > a {
  padding: 0.75rem 0;
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.nav-level-1 > li.active > a {
  border-bottom: 3px solid #4c5727;
}

/* Level 2 + 3 shared
.nav-level-2,
.nav-level-3 {
  display: none;
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  border: 1px solid #ccc;
  min-width: 220px;
  z-index: 1000;
}

/* Level 2
.nav-level-2 {
  top: 100%;
  left: 0;
}

/* Level 3
.nav-level-3 {
  top: 0;
  left: 100%;
}

/* Show dropdowns
.nav-level-1 > li:hover > .nav-level-2 {
  display: block;
}

.nav-level-2 > li:hover > .nav-level-3 {
  display: block;
}

/* Links
.nav-level-2 a,
.nav-level-3 a {
  display: block;
  padding: 0.4rem 1rem;
  white-space: nowrap;
  text-decoration: none;
}

/* Current page
.nav-level-3 li.current > a {
  font-weight: bold;
}

/* Dropdown
.intranet-nav-level-2 {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 220px;
  border: 1px solid #ccc;
  z-index: 1000;
}

.intranet-nav-level-2 li a {
  display: block;
  padding: 0.4rem 1rem;
  white-space: nowrap;
}

.intranet-nav-level-1 > li:hover .intranet-nav-level-2 {
  display: block;
}

/* Current page
.intranet-nav-level-2 li.current > a {
  font-weight: bold;
}



/* Intranet pages */
body.intranet-page {
  font-family: "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;

}

/* Intranet layout refinements */
body.intranet-page .intranet-container {
  max-width: 1200px;
}
body.intranet-page .intranet-container h3 {
  font-size: 2rem;
  letter-spacing:normal;
}

/* Sidebar */
body.intranet-page .intranet-sidebar {
  background: #fafafa;
  padding: 1rem;
  border-right: 1px solid #ddd;
}

.intranet-footer{
  margin-top:3rem;
}

/* Document lists */


.intranet-file-list li {
  margin-bottom: 0.3rem;
}

body.intranet-page .intranet-file-list {
  list-style: none;
  padding-left: 0;
}

body.intranet-page .intranet-file-list li {
  padding: 0.3rem 0;
  border-bottom: 1px dotted #ccc;
}

body.intranet-page .file-meta {
  font-size: 0.85em;
  color: #777;
  margin-left: 0.5rem;
}

/* Sticky year header */
.year-row .year-header {
  position: sticky;
  top: 0;
  background: #f7f8f6;
  font-weight: 700;
  padding: 0.4rem 0.5rem;
  border-top: 2px solid #ccc;
  border-bottom: 1px solid #ccc;
  z-index: 2;
}

/* normal listing pages: list_style: year-simple */




/* meeting (table + years) pages: list_style: meeting*/

/* Ensure table respects sticky positioning */
.intranet-meetings-table {
  table-layout: fixed;
}


.intranet-meetings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* IMPORTANT */
}

.intranet-meetings-table td {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

/* Date column: fixed, compact */
.meeting-date {
  width: 180px;
  white-space: nowrap;
  font-weight: 600;
}

/* Agenda / Minutes columns: flexible */
.meeting-doc {
  text-align: left;
}

/* Links */
.meeting-doc {
  width: 120px;
  white-space: nowrap;
}

/* Missing state */
.meeting-doc .missing {
  color: #8a2d2d;
  font-style: italic;
}

.nopermission h2 { color: red;}


/* ── PDF Upload Partial  see twig for more details─────────────────────────────────── */


.pdf-upload-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e4;
}

.pdf-upload-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pdf-upload-hint {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
}

.pdf-upload-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pdf-upload-notice ul {
  margin: 0;
  padding-left: 1rem;
}

.pdf-upload-notice--success {
  background: #edfaf3;
  color: #1a7a42;
  border: 1px solid #b3e8cc;
}

.pdf-upload-notice--error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c0bb;
}

.pdf-upload-drop-zone {
  position: relative;
  border: 2px dashed #c8c8c8;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0.75rem;
}

.pdf-upload-drop-zone:hover,
.pdf-drop--over {
  border-color: #4a7fbd;
  background: #f0f6ff;
}

.pdf-drop--has-file {
  border-color: #2e8b57;
  background: #f0faf5;
}

.pdf-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.pdf-upload-drop-ui {
  text-align: center;
  padding: 1.5rem 1rem;
  pointer-events: none;
  color: #999;
}

.pdf-upload-drop-text {
  font-size: 0.875rem;
  color: #555;
  margin: 0.5rem 0 0.25rem;
}

.pdf-upload-browse {
  color: #4a7fbd;
  text-decoration: underline;
}

.pdf-upload-drop-hint {
  font-size: 0.75rem;
  color: #aaa;
  margin: 0;
}

.pdf-upload-filename {
  font-size: 0.8rem;
  font-weight: 500;
  color: #2e8b57;
  margin: 0.4rem 0 0;
}

.pdf-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: #2c5f8a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.pdf-upload-btn:hover {
  background: #234d73;
}
