.sf-summary-row {
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.sf-summary-row:hover td {
  background: #eef6ff !important;
}
.sf-summary-row:focus-visible {
  outline: 2px solid #1769e0;
  outline-offset: -2px;
}
.sf-summary-row:focus-visible td {
  background: #eef6ff;
}
.sf-summary-row:hover .sf-summary-item-link {
  background: #dcecff;
}
.modal-card .sf-evidence-modal {
  width: min(1040px, 100%);
}
.sf-evidence-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.sf-evidence-overview > section {
  padding: 13px;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: #f8fafc;
}
.sf-evidence-overview h3,
.sf-evidence-section-head h3 {
  margin: 0;
  color: #173c61;
  font-size: 11px;
}
.sf-evidence-overview h3 small {
  margin-left: 5px;
  color: #8090a1;
  font-size: 7px;
  font-weight: 600;
}
.sf-evidence-quantity-grid,
.sf-evidence-money-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 9px;
}
.sf-evidence-quantity-grid > div,
.sf-evidence-money-grid > div {
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #fff;
}
.sf-evidence-quantity-grid small,
.sf-evidence-quantity-grid b,
.sf-evidence-money-grid small,
.sf-evidence-money-grid b {
  display: block;
}
.sf-evidence-quantity-grid small,
.sf-evidence-money-grid small {
  color: #7c8c9d;
  font-size: 7px;
  white-space: nowrap;
}
.sf-evidence-quantity-grid b,
.sf-evidence-money-grid b {
  margin-top: 4px;
  color: #254967;
  font-size: 10px;
  white-space: nowrap;
}
.sf-evidence-quantity-grid .contract {
  border-color: #bfd2e7;
  background: #eef5fd;
}
.sf-evidence-quantity-grid .install {
  border-color: #b9d7f3;
  background: #eff7ff;
}
.sf-evidence-quantity-grid .dismantle {
  border-color: #f0d0ae;
  background: #fff7ef;
}
.sf-evidence-money-grid .used {
  border-color: #adcdeb;
  background: #eaf5ff;
}
.sf-evidence-money-grid .remaining {
  border-color: #b9dfca;
  background: #effaf4;
}
.sf-evidence-quantity-grid .negative,
.sf-evidence-money-grid .negative {
  border-color: #efbcbc;
  background: #fff2f2;
}
.sf-evidence-quantity-grid .negative b,
.sf-evidence-money-grid .negative b {
  color: #cf3838;
}
.sf-evidence-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0 8px;
}
.sf-evidence-section-head span {
  color: #78899a;
  font-size: 8px;
}
.sf-evidence-row.selected {
  border-color: #4f91cc;
  background: #edf7ff;
  box-shadow: 0 0 0 2px rgba(23, 105, 224, 0.08);
}
.sf-evidence-record-detail:empty {
  display: none;
}
.sf-evidence-record-card {
  margin: 12px 0;
  padding: 14px;
  border: 2px solid #6aa0d3;
  border-radius: 11px;
  background: linear-gradient(135deg, #f8fcff, #edf6ff);
}
@media (max-width: 760px) {
  .sf-evidence-overview {
    grid-template-columns: 1fr;
  }
  .sf-evidence-quantity-grid,
  .sf-evidence-money-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sf-evidence-quantity-grid > div:first-child,
  .sf-evidence-money-grid > div:first-child {
    grid-column: 1/-1;
  }
  .sf-evidence-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.sf-worklog-counts {
  grid-template-columns: repeat(5, 1fr);
}
.sf-worklog-errors {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #efb9b9;
  border-radius: 9px;
  background: #fff5f5;
}
.sf-worklog-errors h3 {
  margin: 0 0 7px;
  color: #b82f2f;
  font-size: 10px;
}
.sf-worklog-errors p {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid #f3d7d7;
}
.sf-worklog-errors p:first-of-type {
  border-top: 0;
}
.sf-worklog-errors b {
  color: #743d3d;
  font-size: 8px;
}
.sf-worklog-errors span {
  color: #bd3535;
  font-size: 8px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .sf-worklog-counts {
    grid-template-columns: repeat(2, 1fr);
  }
  .sf-worklog-errors p {
    grid-template-columns: 1fr;
  }
}
.safety-facility-page {
  --sf-navy: #0c294a;
  --sf-blue: #1769e0;
  --sf-line: #dfe6ef;
  --sf-soft: #f5f8fc;
  --sf-muted: #7a899c;
  color: #1c2f47;
}
.safety-facility-page * {
  box-sizing: border-box;
}
.sf-page-title {
  align-items: flex-start;
}
.sf-page-title .actions {
  display: flex;
  gap: 8px;
}
.sf-site-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid #dce6f2;
  border-radius: 9px;
  background: #f7faff;
  color: #52677f;
  font-size: 11px;
}
.sf-site-notice > span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #dceaff;
  color: #1769e0;
  font-weight: 800;
}
.sf-site-notice p {
  margin: 0;
}
.sf-site-notice b {
  color: #173a62;
}
.sf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.sf-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 15px 17px;
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  background: #fff;
}
.sf-kpi-card > span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--sf-blue);
  font-size: 18px;
  font-weight: 800;
}
.sf-kpi-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sf-kpi-card small {
  color: #78879a;
  font-size: 9px;
}
.sf-kpi-card strong {
  overflow: hidden;
  color: #102d50;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sf-kpi-card i {
  color: #9aa5b2;
  font-size: 8px;
  font-style: normal;
}
.sf-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--sf-line);
  border-radius: 9px;
  background: #f3f6fa;
}
.sf-tabs button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6d7d90;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.sf-tabs button:hover {
  background: #fff;
  color: var(--sf-blue);
}
.sf-tabs button.active {
  background: #fff;
  color: var(--sf-blue);
  box-shadow: 0 1px 5px rgba(21, 55, 93, 0.12);
}
.sf-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.sf-tabs button:disabled:hover {
  background: transparent;
  color: #6d7d90;
}
.sf-phase-grid {
  display: grid;
  grid-template-columns: minmax(340px, 38%) minmax(0, 62%);
  gap: 14px;
  align-items: start;
}
.sf-card {
  min-width: 0;
  border: 1px solid var(--sf-line);
  border-radius: 11px;
  background: #fff;
}
.sf-entry-card {
  padding: 17px;
}
.sf-list-card,
.sf-summary-card {
  padding: 17px;
}
.sf-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sf-card-head h2 {
  margin: 0;
  color: var(--sf-navy);
  font-size: 15px;
}
.sf-card-head p {
  margin: 4px 0 0;
  color: var(--sf-muted);
  font-size: 9px;
}
.sf-editing-badge {
  padding: 4px 7px;
  border-radius: 10px;
  background: #e8f1ff;
  color: #1769e0;
  font-size: 8px;
  font-weight: 800;
}
.sf-entry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.sf-entry-form label,
.sf-contract-toolbar label,
.sf-add-item-form label,
.sf-filter-bar label,
.sf-summary-filter label {
  display: grid;
  gap: 5px;
  color: #53667d;
  font-size: 9px;
  font-weight: 700;
}
.sf-entry-form em {
  color: #e05252;
  font-style: normal;
}
.sf-entry-form input,
.sf-entry-form select,
.sf-entry-form textarea,
.sf-filter-bar input,
.sf-filter-bar select,
.sf-summary-filter input,
.sf-contract-toolbar input,
.sf-contract-table input,
.sf-contract-table select,
.sf-add-item-form input,
.sf-add-item-form select,
.sf-compare-modal select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
  color: #273c55;
  font:
    500 10px 'Noto Sans KR',
    sans-serif;
  outline: none;
}
.sf-entry-form input,
.sf-entry-form select,
.sf-filter-bar input,
.sf-filter-bar select,
.sf-summary-filter input,
.sf-contract-toolbar input,
.sf-contract-table input,
.sf-contract-table select,
.sf-add-item-form input,
.sf-add-item-form select,
.sf-compare-modal select {
  height: 35px;
  padding: 0 9px;
}
.sf-entry-form textarea {
  padding: 9px;
  resize: vertical;
}
.sf-entry-form input:focus,
.sf-entry-form select:focus,
.sf-entry-form textarea:focus,
.sf-filter-bar input:focus,
.sf-filter-bar select:focus,
.sf-summary-filter input:focus {
  border-color: #7aa8e7;
  box-shadow: 0 0 0 2px rgba(23, 105, 224, 0.08);
}
.sf-entry-form input[readonly] {
  background: #f5f7fa;
  color: #7f8b98;
}
.sf-full {
  grid-column: 1/-1;
}
.sf-item-info {
  overflow: hidden;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #f8fbff;
}
.sf-item-info-head {
  padding: 10px 11px;
  border-bottom: 1px solid #e4ebf3;
}
.sf-item-info-head b,
.sf-item-info-head span {
  display: block;
}
.sf-item-info-head b {
  color: #21466f;
  font-size: 10px;
}
.sf-item-info-head span {
  margin-top: 2px;
  color: #8794a3;
  font-size: 8px;
}
.sf-item-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.sf-item-info-grid div {
  padding: 9px 11px;
  border-right: 1px solid #e4ebf3;
  border-bottom: 1px solid #e4ebf3;
}
.sf-item-info-grid div:nth-child(2n) {
  border-right: 0;
}
.sf-item-info-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.sf-item-info-grid small,
.sf-item-info-grid b {
  display: block;
}
.sf-item-info-grid small {
  color: #8492a2;
  font-size: 8px;
}
.sf-item-info-grid b {
  margin-top: 3px;
  color: #2b465f;
  font-size: 10px;
}
.sf-item-info-grid .negative b,
.sf-number.negative {
  color: #d94747;
}
.sf-empty-info {
  padding: 14px;
  color: #8896a6;
  font-size: 9px;
  text-align: center;
}
.sf-field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  color: #53667d;
  font-size: 9px;
  font-weight: 700;
}
.sf-field-label small {
  color: #98a4b2;
  font-weight: 500;
}
.sf-photo-drop {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 100%;
  min-height: 72px;
  border: 1px dashed #abc2df;
  border-radius: 8px;
  background: #f7faff;
  color: #5e7590;
  cursor: pointer;
}
.sf-photo-drop b {
  color: #1769e0;
  font-size: 10px;
}
.sf-photo-drop span {
  font-size: 8px;
}
.sf-photo-drop:hover,
.sf-photo-drop.dragover {
  border-color: #1769e0;
  background: #edf5ff;
}
.sf-photo-input {
  display: none;
}
.sf-photo-previews {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.sf-photo-preview {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: #f2f4f7;
}
.sf-photo-preview > button:first-child {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}
.sf-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 35, 58, 0.8);
  color: #fff;
  cursor: pointer;
}
.sf-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.sf-form-actions button {
  min-width: 105px;
}
.sf-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-filter-bar .sf-location-filter {
  grid-column: 1/3;
}
.sf-quick-ranges {
  display: flex;
  align-items: end;
  gap: 4px;
}
.sf-quick-ranges button {
  flex: 1;
  height: 35px;
  padding: 0 6px;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #fff;
  color: #62758b;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.sf-quick-ranges button:hover {
  border-color: #8fb2df;
  color: #1769e0;
}
.sf-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
}
.sf-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 9px;
}
.sf-table th {
  padding: 9px 8px;
  border-bottom: 1px solid #dfe5ed;
  background: #f6f8fb;
  color: #607187;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  text-align: left;
}
.sf-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #edf0f4;
  color: #40536a;
  vertical-align: middle;
}
.sf-table tbody tr:last-child td {
  border-bottom: 0;
}
.sf-table tbody tr:hover {
  background: #fbfdff;
}
.sf-table td b,
.sf-table td small {
  display: block;
}
.sf-table td small {
  max-width: 190px;
  margin-top: 2px;
  color: #8b97a5;
  font-size: 7.5px;
}
.sf-table .sf-number {
  text-align: right;
  white-space: nowrap;
}
.sf-record-table {
  min-width: 830px;
}
.sf-record-table td:nth-child(2) {
  min-width: 150px;
}
.sf-record-table td:nth-child(3) {
  min-width: 90px;
}
.sf-thumbs {
  display: flex;
  align-items: center;
  gap: 3px;
}
.sf-thumbs button {
  width: 30px;
  height: 30px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8dfe8;
  border-radius: 5px;
  background: #fff;
  cursor: zoom-in;
}
.sf-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-thumbs span {
  font-size: 8px;
  color: #718196;
}
.sf-row-actions {
  display: flex;
  gap: 4px;
}
.sf-row-actions button,
.sf-mini-danger {
  padding: 4px 6px;
  border: 1px solid #dce3ec;
  border-radius: 5px;
  background: #fff;
  color: #536b85;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sf-row-actions button:hover {
  border-color: #8fb3e1;
  color: #1769e0;
}
.sf-row-actions button.danger,
.sf-mini-danger {
  border-color: #f0c7c7;
  color: #d74d4d;
}
.sf-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  color: #8290a1;
  text-align: center;
}
.sf-empty b {
  color: #4d6178;
  font-size: 11px;
}
.sf-empty span {
  margin-top: 5px;
  font-size: 9px;
}
.sf-summary-filter {
  display: grid;
  grid-template-columns: minmax(220px, 420px);
  gap: 9px;
  margin-bottom: 11px;
  padding: 10px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}
.sf-summary-metrics div {
  padding: 13px;
  border: 1px solid #dfe7f0;
  border-radius: 9px;
  background: linear-gradient(145deg, #fff, #f8fbff);
}
.sf-summary-metrics small,
.sf-summary-metrics b {
  display: block;
}
.sf-summary-metrics small {
  color: #75869a;
  font-size: 8px;
  font-weight: 700;
}
.sf-summary-metrics b {
  margin-top: 4px;
  color: #173d68;
  font-size: 14px;
}
.sf-summary-metrics .negative b,
.sf-summary-metrics .warning b {
  color: #d53d3d;
}
.sf-summary-metrics .warning {
  border-color: #f1c9c9;
  background: #fff7f7;
}
.sf-summary-guide {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f6f8fb;
  color: #687a8e;
  font-size: 8px;
}
.sf-summary-guide span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.sf-summary-guide span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f8edc;
}
.sf-summary-guide span.warning {
  color: #ca3e3e;
}
.sf-summary-guide span.warning i {
  background: #e34a4a;
}
.sf-summary-guide > b {
  margin-left: auto;
  color: #7b8999;
  font-size: 8px;
}
.sf-summary-table {
  min-width: 1280px;
}
.sf-summary-table thead tr:first-child th[colspan] {
  background: #edf3f9;
  color: #315473;
  text-align: center;
}
.sf-summary-table thead th[rowspan] {
  vertical-align: middle;
}
.sf-summary-table td:nth-child(1) {
  min-width: 140px;
}
.sf-summary-table td:nth-child(2) {
  min-width: 170px;
}
.sf-summary-table td:nth-child(12) {
  min-width: 145px;
}
.sf-summary-table tbody tr.sf-overused {
  background: #fff8f8;
}
.sf-summary-table tbody tr.sf-overused:hover {
  background: #fff2f2;
}
.sf-summary-table tbody tr.sf-overused td:first-child {
  box-shadow: inset 3px 0 #e24b4b;
}
.sf-used-quantity b {
  color: #244868;
  font-size: 10px;
}
.sf-used-quantity small {
  margin-top: 3px !important;
}
.sf-usage-rate {
  display: block;
  width: 62px;
  height: 5px;
  margin: 5px 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: #e7edf4;
}
.sf-usage-rate i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #4388dc;
}
.sf-usage-rate.warning i {
  background: #e04444;
}
.sf-usage-amount.overused {
  color: #d93333 !important;
  font-weight: 900;
}
.sf-summary-note b {
  color: #d13f3f !important;
  font-size: 8px;
  line-height: 1.55;
}
.sf-summary-table tfoot td {
  border-top: 2px solid #d7e1ec;
  background: #f8fafc;
  color: #304b67;
  font-weight: 800;
}
.sf-summary-table tfoot small {
  display: inline;
  margin-left: 6px;
  font-weight: 500;
}
.sf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 19, 34, 0.9);
}
.sf-lightbox.open {
  display: flex;
}
.sf-lightbox img {
  max-width: min(1100px, 82vw);
  max-height: 82vh;
  object-fit: contain;
}
.sf-lightbox > button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}
.sf-lightbox-close {
  top: 24px;
  right: 28px;
  width: 38px;
  height: 38px;
  font-size: 25px;
}
.sf-lightbox-prev,
.sf-lightbox-next {
  top: 50%;
  width: 42px;
  height: 42px;
  font-size: 30px;
}
.sf-lightbox-prev {
  left: 28px;
}
.sf-lightbox-next {
  right: 28px;
}
.sf-lightbox [data-sf-lightbox-meta] {
  position: absolute;
  bottom: 22px;
  left: 50%;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  transform: translateX(-50%);
}
.modal-card:has(.sf-modal) {
  display: flex;
  width: min(1180px, 94vw);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
}
.modal-card:has(.sf-modal) > #modalBody {
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.sf-modal {
  padding: 24px;
  color: #20354e;
}
.sf-modal * {
  box-sizing: border-box;
}
.sf-modal-head {
  margin: 0 38px 16px 0;
}
.sf-modal-head h2 {
  margin: 0;
  color: #102f52;
  font-size: 18px;
}
.sf-modal-head p {
  margin: 5px 0 0;
  color: #7b899a;
  font-size: 10px;
}
.sf-contract-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sf-contract-toolbar > label {
  flex: 1;
  max-width: 450px;
}
.sf-contract-buttons {
  display: flex;
  gap: 6px;
}
.sf-bulk-ratio {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-bulk-ratio span {
  color: #4f637a;
  font-size: 9px;
  font-weight: 800;
}
.sf-bulk-ratio select {
  height: 31px;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #fff;
  color: #435970;
  font-size: 9px;
}
.sf-bulk-ratio button {
  height: 31px;
  border: 1px solid #b7cce6;
  border-radius: 6px;
  background: #fff;
  color: #1769e0;
  font-size: 8px;
  font-weight: 700;
}
.sf-bulk-ratio small {
  margin-left: auto;
  color: #8b98a8;
  font-size: 8px;
}
.sf-contract-table-wrap {
  max-height: 52vh;
}
.sf-contract-table {
  min-width: 1050px;
}
.sf-contract-table input,
.sf-contract-table select {
  height: 30px;
  font-size: 8px;
}
.sf-contract-table td:nth-child(2) {
  min-width: 145px;
}
.sf-contract-table td:nth-child(3) {
  min-width: 190px;
}
.sf-source-badge {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 10px;
  background: #edf3fb;
  color: #456889;
  font-size: 7px;
  font-weight: 800;
}
.sf-add-item-form {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: #f8fbff;
}
.sf-add-item-form h3 {
  margin: 0 0 10px;
  color: #264966;
  font-size: 11px;
}
.sf-add-item-form > div {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr;
  gap: 7px;
}
.sf-add-item-form > button {
  display: block;
  margin: 10px 0 0 auto;
}
.sf-history-panel {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #fafbfc;
}
.sf-history-panel h3 {
  margin: 0 0 7px;
  color: #324b66;
  font-size: 11px;
}
.sf-history-panel p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid #edf0f3;
  font-size: 8px;
}
.sf-history-panel p b {
  color: #375876;
}
.sf-history-panel p span {
  color: #8592a2;
}
.sf-modal .hidden {
  display: none !important;
}
.sf-compare-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.sf-compare-summary span {
  padding: 10px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #6f7e90;
  font-size: 9px;
}
.sf-compare-summary b {
  float: right;
  color: #1d466f;
  font-size: 12px;
}
.sf-helper {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #f2f7fd;
  color: #55708d;
  font-size: 9px;
}
.sf-compare-modal .sf-table {
  min-width: 1000px;
}
.sf-compare-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 8px;
  font-weight: 800;
}
.sf-compare-status.same {
  background: #edf6f1;
  color: #238057;
}
.sf-compare-status.changed {
  background: #fff5e6;
  color: #b8751f;
}
.sf-compare-status.new {
  background: #eaf2ff;
  color: #1769e0;
}
.sf-removed-items {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #efdddd;
  border-radius: 8px;
  background: #fff9f9;
}
.sf-removed-items b {
  color: #a34747;
  font-size: 9px;
}
.sf-removed-items p {
  max-height: 70px;
  overflow: auto;
  margin: 5px 0 0;
  color: #7b6666;
  font-size: 8px;
  line-height: 1.7;
}
.sf-data-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.sf-data-stats div {
  padding: 12px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  background: #f8fafc;
}
.sf-data-stats small,
.sf-data-stats b {
  display: block;
}
.sf-data-stats small {
  color: #8190a1;
  font-size: 8px;
}
.sf-data-stats b {
  margin-top: 4px;
  color: #234767;
  font-size: 14px;
}
.sf-backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sf-backup-grid article {
  padding: 16px;
  border: 1px solid #dfe6ee;
  border-radius: 9px;
}
.sf-backup-grid h3 {
  margin: 0;
  color: #173b60;
  font-size: 13px;
}
.sf-backup-grid p {
  min-height: 42px;
  margin: 6px 0 12px;
  color: #7b8998;
  font-size: 9px;
  line-height: 1.55;
}
.sf-storage-note {
  margin-top: 11px;
  padding: 11px;
  border: 1px solid #e7e1c8;
  border-radius: 8px;
  background: #fffdf4;
}
.sf-storage-note b {
  color: #775e19;
  font-size: 9px;
}
.sf-storage-note p {
  margin: 4px 0 0;
  color: #81744e;
  font-size: 8px;
  line-height: 1.55;
}
.sf-summary-table {
  min-width: 1180px;
}
.sf-summary-table td:nth-child(11) {
  min-width: 145px;
}
.sf-summary-item-link {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 6px 7px;
  border: 0;
  border-radius: 7px;
  background: #edf5ff;
  color: #174f82;
  text-align: left;
  cursor: pointer;
}
.sf-summary-item-link:hover {
  background: #dcecff;
}
.sf-summary-item-link b {
  font-size: 9px;
}
.sf-summary-item-link small {
  color: #4e7fa9;
  font-size: 7px;
  font-weight: 700;
}
.sf-evidence-modal {
  width: min(920px, 100%);
}
.sf-evidence-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.sf-evidence-summary div {
  padding: 12px;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  background: #f8fbfe;
}
.sf-evidence-summary small,
.sf-evidence-summary b {
  display: block;
}
.sf-evidence-summary small {
  color: #74879a;
  font-size: 8px;
}
.sf-evidence-summary b {
  margin-top: 4px;
  color: #193f65;
  font-size: 11px;
}
.sf-evidence-formula {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #eef5fb;
  color: #587187;
  font-size: 8px;
}
.sf-evidence-list {
  display: grid;
  gap: 7px;
  max-height: 48vh;
  overflow: auto;
}
.sf-evidence-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  background: #fff;
  color: #294761;
  text-align: left;
  cursor: pointer;
}
.sf-evidence-row:hover {
  border-color: #84add4;
  background: #f7fbff;
}
.sf-evidence-row span:nth-child(2) b,
.sf-evidence-row span:nth-child(2) small {
  display: block;
}
.sf-evidence-row span:nth-child(2) b {
  font-size: 9px;
}
.sf-evidence-row span:nth-child(2) small {
  margin-top: 3px;
  color: #6d8093;
  font-size: 8px;
}
.sf-evidence-row strong {
  color: #155d9a;
}
.sf-evidence-phase {
  padding: 5px 7px;
  border-radius: 99px;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
}
.sf-evidence-phase.install {
  background: #e5f1ff;
  color: #1764aa;
}
.sf-evidence-phase.dismantle {
  background: #fff0e3;
  color: #a65b13;
}
.sf-evidence-photo {
  color: #627b90;
  font-size: 8px;
}
.sf-evidence-row > i {
  color: #3979b1;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.sf-focused-record {
  margin-bottom: 12px;
  padding: 14px;
  border: 2px solid #6aa0d3;
  border-radius: 11px;
  background: linear-gradient(135deg, #f8fcff, #edf6ff);
}
.sf-focused-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sf-focused-record-head span {
  color: #2773b5;
  font-size: 8px;
  font-weight: 800;
}
.sf-focused-record-head h3 {
  margin: 3px 0 0;
  color: #153f66;
  font-size: 14px;
}
.sf-focused-record-head button {
  border: 0;
  background: transparent;
  color: #5e7488;
  font-size: 8px;
  cursor: pointer;
}
.sf-focused-record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.sf-focused-record-grid div {
  padding: 9px;
  border-radius: 7px;
  background: #fff;
}
.sf-focused-record-grid small,
.sf-focused-record-grid b {
  display: block;
}
.sf-focused-record-grid small,
.sf-focused-note small {
  color: #74879a;
  font-size: 7px;
}
.sf-focused-record-grid b {
  margin-top: 3px;
  color: #294964;
  font-size: 9px;
}
.sf-focused-note {
  margin-top: 8px;
  padding: 9px;
  border-radius: 7px;
  background: #fff;
}
.sf-focused-note p {
  margin: 3px 0 0;
  color: #405a70;
  font-size: 9px;
}
.sf-focused-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.sf-focused-photos button {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.sf-focused-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}
.sf-focused-photos span {
  display: block;
  padding: 5px;
  overflow: hidden;
  color: #5b7185;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-record-highlight {
  background: #edf7ff !important;
}
.sf-record-highlight td:first-child {
  box-shadow: inset 3px 0 #3d87c6;
}
.sf-worklog-card {
  padding: 20px;
}
.sf-worklog-ready {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 14px;
  background: #eaf6ef;
  color: #24774f;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.sf-worklog-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.sf-worklog-flow article {
  display: flex;
  gap: 10px;
  min-height: 86px;
  padding: 15px;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  background: #f9fbfd;
}
.sf-worklog-flow article > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1769e0;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.sf-worklog-flow b {
  display: block;
  color: #234766;
  font-size: 11px;
}
.sf-worklog-flow p {
  margin: 5px 0 0;
  color: #78889a;
  font-size: 8px;
  line-height: 1.55;
}
.sf-worklog-actions {
  display: flex;
  gap: 8px;
  padding: 15px;
  border: 1px solid #d9e6f5;
  border-radius: 10px;
  background: #f3f8ff;
}
.sf-worklog-actions button {
  min-width: 210px;
}
.sf-worklog-help {
  display: grid;
  gap: 5px;
  margin: 12px 0 18px;
  padding: 13px 15px;
  border-left: 3px solid #efb33b;
  border-radius: 0 8px 8px 0;
  background: #fffaf0;
}
.sf-worklog-help b {
  color: #795914;
  font-size: 9px;
}
.sf-worklog-help span {
  color: #7a7059;
  font-size: 8px;
  line-height: 1.55;
}
.sf-worklog-history h3 {
  margin: 0 0 8px;
  color: #234766;
  font-size: 11px;
}
.sf-worklog-history > p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 10px;
  border-top: 1px solid #edf1f5;
  color: #66798d;
  font-size: 8px;
}
.sf-worklog-history > p b {
  overflow: hidden;
  color: #34536f;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-worklog-history .sf-empty {
  min-height: 130px;
  border: 1px dashed #dce4ed;
  border-radius: 8px;
}
.sf-worklog-preview {
  min-width: 1050px;
}
.sf-worklog-preview .sf-preview-error {
  background: #fff5f5;
}
.sf-worklog-preview .sf-preview-error td:first-child b {
  color: #ce3e3e;
}
.sf-worklog-preview .sf-preview-duplicate {
  background: #f7f8fa;
}
.sf-worklog-preview .sf-preview-duplicate td:first-child b {
  color: #7c8998;
}
.sf-worklog-legacy {
  margin: 0 0 18px;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #fafbfd;
}
.sf-worklog-legacy summary {
  padding: 12px 14px;
  color: #536b80;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.sf-worklog-legacy > p {
  margin: 0;
  padding: 0 14px 10px;
  color: #7a8b99;
  font-size: 8px;
}
.sf-worklog-legacy .sf-worklog-actions {
  margin: 0 12px 12px;
  background: #fff;
}
@media (max-width: 1180px) {
  .sf-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sf-phase-grid {
    grid-template-columns: 1fr;
  }
  .sf-entry-form {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .sf-page-title .actions {
    margin-top: 10px;
  }
  .sf-kpi-grid,
  .sf-summary-metrics,
  .sf-data-stats,
  .sf-backup-grid,
  .sf-worklog-flow,
  .sf-evidence-summary {
    grid-template-columns: 1fr;
  }
  .sf-entry-form,
  .sf-filter-bar,
  .sf-summary-filter,
  .sf-add-item-form > div {
    grid-template-columns: 1fr;
  }
  .sf-full,
  .sf-filter-bar .sf-location-filter {
    grid-column: auto;
  }
  .sf-contract-toolbar {
    display: block;
  }
  .sf-contract-buttons {
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .sf-bulk-ratio {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sf-bulk-ratio small {
    width: 100%;
    margin: 0;
  }
  .sf-photo-previews {
    grid-template-columns: repeat(4, 1fr);
  }
  .sf-summary-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .sf-worklog-actions {
    display: grid;
  }
  .sf-worklog-actions button {
    min-width: 0;
  }
  .sf-evidence-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .sf-evidence-photo,
  .sf-evidence-row > i {
    display: none;
  }
  .sf-focused-record-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sf-focused-photos {
    grid-template-columns: repeat(3, 1fr);
  }
  .modal-card:has(.sf-modal) {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
  .sf-modal {
    padding: 18px 14px;
  }
}
