.emergency-heading {
  align-items: flex-start;
}
.emergency-list {
  overflow: auto;
}
.emergency-list table {
  width: 100%;
  border-collapse: collapse;
}
.emergency-list th,
.emergency-list td {
  padding: 15px 16px;
  border-bottom: 1px solid #dbe5f1;
  text-align: center;
  vertical-align: middle;
}
.emergency-list th {
  background: #edf3fa;
  color: #18395f;
  font-size: 13px;
  font-weight: 800;
}
.emergency-list tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}
.emergency-list tbody tr:hover,
.emergency-list tbody tr.selected {
  background: #eef6ff;
}
.emergency-list th:nth-child(1) {
  width: 90px;
}
.emergency-list th:nth-child(2) {
  min-width: 280px;
  text-align: left;
}
.emergency-list th:nth-child(3) {
  width: 140px;
}
.emergency-list th:nth-child(4) {
  width: 130px;
}
.emergency-list th:nth-child(5) {
  width: 140px;
}
.emergency-list th:nth-child(6) {
  width: 120px;
}
.emergency-list td:nth-child(2) {
  text-align: left;
}
.emergency-title {
  padding: 0;
  border: 0;
  background: none;
  color: #102f55;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.emergency-title:hover {
  text-decoration: underline;
  color: #1267d6;
}
.emergency-empty {
  height: 180px;
  color: #72849b !important;
  text-align: center !important;
}
.emergency-modal-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #e1e8f0;
}
.emergency-modal-head p {
  margin: 0 0 7px;
  color: #1267d6;
  font-size: 12px;
  font-weight: 800;
}
.emergency-modal-head h2 {
  margin: 0 0 8px;
  color: #102d51;
}
.emergency-modal-head span {
  color: #708096;
  font-size: 13px;
}
.emergency-form {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}
.emergency-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.emergency-form-grid > label {
  display: grid;
  gap: 8px;
  color: #18395f;
  font-size: 13px;
  font-weight: 800;
}
.emergency-form-grid > label.wide {
  grid-column: 1/-1;
}
.emergency-form input,
.emergency-form select,
.emergency-form textarea {
  width: 100%;
  border: 1px solid #cad8e9;
  border-radius: 9px;
  background: #fff;
  color: #142d4d;
  font: inherit;
  box-sizing: border-box;
}
.emergency-form input,
.emergency-form select {
  height: 44px;
  padding: 0 13px;
}
.emergency-form textarea {
  min-height: 130px;
  padding: 13px;
  line-height: 1.65;
  resize: vertical;
}
.emergency-form input[readonly] {
  background: #f3f6fa;
  color: #64758a;
}
.emergency-files {
  padding: 18px;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  background: #f8fbff;
}
.emergency-files > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  color: #18395f;
}
.emergency-files > header small {
  color: #72839a;
  font-weight: 500;
}
.emergency-files > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.emergency-upload {
  padding: 15px;
  border: 1px dashed #b8cbe1;
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.emergency-upload.attached {
  border-style: solid;
  border-color: #65a1eb;
  box-shadow: 0 0 0 2px rgba(18, 103, 214, 0.06);
}
.emergency-upload header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.emergency-upload header span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #18395f;
}
.emergency-upload header b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e9f0f8;
  color: #7890aa;
  font-size: 12px;
}
.emergency-upload.attached header b {
  background: #e4f7ef;
  color: #09875b;
}
.emergency-upload header small {
  color: #7c8da2;
  font-size: 11px;
}
.emergency-upload > label {
  display: block;
  margin: 13px 0 10px;
}
.emergency-upload > label input {
  display: none;
}
.emergency-upload > label span {
  display: block;
  padding: 10px;
  border: 1px solid #c8d8eb;
  border-radius: 8px;
  color: #1267d6;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.emergency-file-name {
  min-height: 20px;
  color: #5d7088;
  font-size: 12px;
  word-break: break-all;
}
.emergency-file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.emergency-file-actions button {
  padding: 7px 11px;
  font-size: 12px;
}
.emergency-description {
  display: grid;
  gap: 8px;
  color: #18395f;
  font-size: 13px;
  font-weight: 800;
}
.emergency-approval {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
}
.emergency-approval > b {
  color: #18395f;
  font-size: 13px;
}
@media (max-width: 760px) {
  .emergency-heading {
    display: block;
  }
  .emergency-heading .actions {
    margin-top: 14px;
  }
  .emergency-form-grid,
  .emergency-files > div {
    grid-template-columns: 1fr;
  }
  .emergency-form-grid > label.wide {
    grid-column: auto;
  }
  .emergency-list table {
    min-width: 820px;
  }
}
