* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background: #f5f7fb;
  color: #182230;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf1f5;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #162a46;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand small,
.user-mini small {
  display: block;
  color: #8190a3;
  font-size: 11px;
  margin-top: 3px;
}
.user-mini {
  margin: 18px 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f9fc;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8eef8;
  color: #24466d;
  display: grid;
  place-items: center;
  font-weight: 700;
}
nav {
  padding: 4px 12px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  margin: 3px 0;
  border-radius: 9px;
  text-decoration: none;
  color: #566579;
  font-size: 14px;
}
nav a:hover,
nav a.active {
  background: #eef4fb;
  color: #173e67;
  font-weight: 650;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #9aa6b4;
  letter-spacing: 0.12em;
  padding: 18px 13px 7px;
}
.side-bottom {
  margin-top: auto;
  padding: 15px;
  border-top: 1px solid #edf1f5;
}
.logout-side {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 10px 13px;
  color: #7b8797;
  cursor: pointer;
}
.main {
  margin-left: 260px;
  min-height: 100vh;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #e6ebf1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
.breadcrumb {
  font-size: 13px;
  color: #778598;
}
.breadcrumb a {
  color: #54718e;
  text-decoration: none;
}
.content {
  padding: 30px;
  max-width: 1500px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.page-title {
  font-size: 27px;
  margin: 0 0 7px;
  letter-spacing: -0.02em;
}
.page-subtitle {
  color: #7b8797;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.stat,
.card {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(20, 35, 55, 0.03);
}
.stat {
  padding: 19px;
  position: relative;
  overflow: hidden;
}
.stat small {
  color: #7d8998;
}
.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 9px;
}
.stat.pending {
  border-top: 3px solid #d7a72e;
}
.stat.approved {
  border-top: 3px solid #3b9a68;
}
.stat.rejected {
  border-top: 3px solid #c85454;
}
.card {
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 {
  font-size: 17px;
  margin: 0 0 7px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.muted {
  color: #8390a0;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}
.table th {
  font-size: 11px;
  color: #8290a0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table-link {
  color: #1c4b78;
  font-weight: 700;
  text-decoration: none;
}
.table-link:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.pending {
  background: #fff4d9;
  color: #9a6b00;
}
.badge.approved {
  background: #e5f7ed;
  color: #147443;
}
.badge.rejected {
  background: #fdeaea;
  color: #b52b2b;
}
.badge.neutral {
  background: #edf2f7;
  color: #526173;
}
.badge.admin {
  background: #e9eef8;
  color: #25486d;
}
.priority-high,
.priority-urgent {
  color: #a12d2d;
  font-weight: 700;
}
.priority-low {
  color: #68778a;
}
.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary {
  background: #193e67;
  color: white;
}
.btn-primary:hover {
  background: #143453;
}
.btn-light {
  background: #edf2f7;
  color: #30445b;
}
.btn-light:hover {
  background: #e3eaf1;
}
.btn-danger {
  background: #b72e2e;
  color: #fff;
}
.btn-danger:hover {
  background: #9d2525;
}
.btn-sm {
  padding: 7px 10px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 16px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #526173;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  outline: none;
  background: #fff;
  color: #182230;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #557da7;
  box-shadow: 0 0 0 3px #eaf1f8;
}
.field select:disabled {
  background: #f3f5f8;
  color: #8a96a5;
}
.field-hint {
  font-size: 11px;
  color: #8491a0;
  margin-top: 6px;
  line-height: 1.45;
}
.workflow-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 13px;
  padding: 14px 16px;
}
.workflow-step {
  flex: 1;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 9px;
  align-items: center;
  min-width: 0;
}
.workflow-step span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eaf1f8;
  color: #214b73;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.workflow-step b {
  font-size: 13px;
}
.workflow-step small {
  color: #8793a1;
  font-size: 11px;
}
.workflow-arrow {
  align-self: center;
  color: #a2adba;
  font-size: 18px;
}
.submission-guide {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.guide-item {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}
.guide-item > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7eef7;
  color: #244b72;
  font-weight: 800;
  font-size: 12px;
}
.guide-item b {
  display: block;
  font-size: 12px;
}
.guide-item small {
  display: block;
  color: #8491a0;
  font-size: 11px;
  margin-top: 3px;
}
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8793a1;
  margin-bottom: 8px;
}
.report-title {
  font-size: 25px;
  margin: 0 0 9px;
  line-height: 1.2;
}
.report-date {
  font-size: 11px;
  color: #8995a3;
  text-align: right;
  white-space: nowrap;
}
.report-date b {
  font-weight: 600;
  color: #526173;
}
.report-content {
  white-space: pre-wrap;
  line-height: 1.75;
  color: #39495b;
  font-size: 14px;
}
.report-meta {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6e7c8d;
}
.rule {
  border: 0;
  border-top: 1px solid #edf0f4;
  margin: 20px 0;
}
.decision-card {
  border-left: 4px solid #557da7;
}
.decision-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.decision-head h2 {
  margin: 0 0 4px;
}
.review-step {
  background: #eef4fb;
  color: #244b72;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}
.timeline {
  margin: 15px 0 5px 8px;
  padding-left: 23px;
  border-left: 2px solid #e0e7ef;
}
.event {
  position: relative;
  margin-bottom: 25px;
}
.event:last-child {
  margin-bottom: 5px;
}
.event-dot {
  position: absolute;
  left: -30px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #557da7;
  border: 3px solid #eef3f8;
  box-sizing: content-box;
}
.event-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.event-title .meta {
  font-size: 11px;
  color: #7b8797;
}
.event-flow {
  font-size: 11px;
  color: #8a96a5;
  margin-top: 4px;
}
.event-comment {
  margin-top: 8px;
  background: #f7f9fc;
  border: 1px solid #e7ecf2;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
  color: #4d5c6c;
}
.alert {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 18px;
}
.alert-success {
  background: #e8f7ef;
  color: #166d40;
  border: 1px solid #ccebd9;
}
.alert-danger {
  background: #fdeaea;
  color: #a72b2b;
  border: 1px solid #f3d0d0;
}
.notice {
  padding: 11px 13px;
  border-radius: 8px;
  background: #eef4fb;
  color: #294e75;
  font-size: 13px;
  margin-bottom: 16px;
}
.error {
  padding: 10px;
  background: #fdeaea;
  color: #a72b2b;
  border-radius: 7px;
  font-size: 13px;
  margin: 10px 0;
}
.success {
  padding: 10px;
  background: #e8f7ef;
  color: #166d40;
  border-radius: 7px;
  font-size: 13px;
  margin: 10px 0;
}
.empty,
.loading {
  padding: 32px;
  text-align: center;
  color: #8995a3;
}
.top-level {
  font-size: 12px;
  color: #657588;
}
.inline-select {
  min-width: 210px;
  border: 1px solid #d7dee7;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.inline-select:disabled {
  background: #f3f5f8;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.login-left {
  background: #162a46;
  color: #fff;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-left h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 15px 0;
}
.login-left p {
  color: #c3cfdd;
  max-width: 580px;
  line-height: 1.7;
  width: 547px;
}
.login-right {
  background: #f7f9fc;
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-box {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 15px 45px rgba(22, 42, 70, 0.08);
}
.login-box h2 {
  margin: 0 0 7px;
}
.login-box .muted {
  color: #7d8998;
  font-size: 13px;
  margin-bottom: 25px;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 220px;
  }
  .main {
    margin-left: 220px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .workflow-strip {
    flex-wrap: wrap;
  }
  .workflow-arrow {
    display: none;
  }
  .workflow-step {
    min-width: 45%;
  }
  .submission-guide {
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .main {
    margin-left: 0;
  }
  .content {
    padding: 18px;
  }
  .topbar {
    padding: 0 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-direction: column;
  }
  .report-head {
    flex-direction: column;
  }
  .report-date {
    text-align: left;
  }
  .workflow-step {
    min-width: 100%;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-left {
    display: none;
  }
  .login-box {
    padding: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .table {
    min-width: 850px;
  }
}

.detail-edit-button {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.attachments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}
.attachments-title {
  font-size: 12px;
  font-weight: 800;
  color: #526173;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.attachment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #f8fafc;
}
.attachment-card img,
.attachment-card video {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.attachment-media {
  padding-top: 12px;
}
.attachment-media audio {
  width: calc(100% - 20px);
  margin: 10px;
}
.attachment-caption {
  padding: 9px 34px 9px 10px;
  font-size: 11px;
  color: #5f6d7d;
  word-break: break-word;
  background: #fff;
  border-top: 1px solid #e8edf2;
}
.attachment-remove {
  position: absolute;
  right: 7px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #b72e2e;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}
.media-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.media-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f7f9fc;
  border: 1px solid #e6ebf1;
  border-radius: 7px;
  font-size: 12px;
}
.media-item small {
  margin-left: auto;
  color: #8491a0;
}
.field input[type="file"] {
  padding: 9px;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}


.bureau-departments{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:14px}.bureau-departments label{display:flex;align-items:center;gap:4px;font-weight:600}.bureau-departments input{width:auto}
