/* 샘비드 - Custom Styles */
:root {
  --primary-navy: #2563A0;
  --primary-navy-light: #3A82C0;
  --primary-navy-dark: #1A5189;
  --accent-gold: #D4A843;
  --bg-light: #F7F8FC;
}

body {
  background-color: var(--bg-light);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

/* Navbar */
.bg-primary-custom {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
}

.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}
.navbar .navbar-nav .nav-item {
  margin-right: 0.6rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  border-radius: 12px;
  margin: -1rem -0.5rem 0;
}

/* Cards */
.card {
  border-radius: 10px;
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 0.8rem 1rem;
}

/* Tables */
.table th {
  font-weight: 600;
  font-size: 0.82rem;
  color: #555;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
  font-size: 0.88rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(27, 58, 92, 0.04);
}

.text-truncate-custom {
  display: inline-block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Badges */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
}

/* Footer */
.footer-custom {
  background-color: #fff;
  border-top: 1px solid #e9ecef;
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-navy);
  border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
}

/* Search filters */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-navy-light);
  box-shadow: 0 0 0 0.2rem rgba(27, 58, 92, 0.15);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: var(--primary-navy-dark);
  border-color: var(--primary-navy-dark);
}

.btn-outline-primary {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-primary:hover {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
}

/* Nav tabs */
.nav-tabs .nav-link {
  color: #666;
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  color: var(--primary-navy);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-navy);
}

/* Responsive table */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.82rem;
  }

  .text-truncate-custom {
    max-width: 180px;
  }

  .hero-section {
    margin: -0.5rem -0.25rem 0;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }
}

/* Alert auto-dismiss animation */
.alert {
  border: none;
  border-radius: 8px;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
}

/* ========== 홈페이지 상태 카드 ========== */
.status-card {
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}
.status-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.status-card-facility { border-left-color: #0d6efd; }
.status-card-service { border-left-color: #198754; }
.status-card-goods { border-left-color: #0dcaf0; }
.status-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}
.status-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}
.status-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
  margin-left: 2px;
}
.status-icon {
  font-size: 2rem;
  opacity: 0.15;
  color: var(--primary-navy);
}

/* ========== 사이드바 카드 ========== */
.sidebar-card {
  border-radius: 8px;
  overflow: hidden;
}
.sidebar-card:hover {
  transform: none;
}
.sidebar-header {
  background: linear-gradient(135deg, #3D4F5F 0%, #546E7A 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-bottom: none;
}
.cs-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3D4F5F;
  letter-spacing: 1px;
}
.btn-sidebar-login {
  background-color: #3D4F5F;
  border-color: #3D4F5F;
  color: #fff;
}
.btn-sidebar-login:hover {
  background-color: #546E7A;
  border-color: #546E7A;
  color: #fff;
}

/* 공지사항 리스트 */
.notice-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f5f5f5;
}
.notice-list li:last-child {
  border-bottom: none;
}
.notice-list li a {
  color: #333;
  text-decoration: none;
  font-size: 0.82rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-list li a:hover {
  color: var(--primary-navy);
}

/* ========== 섹션 타이틀 바 ========== */
.section-title-bar {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}
.section-title-bar h6 {
  font-weight: 600;
}

/* ========== INFO 카드 ========== */
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* ========== 용어사전 ========== */
.glossary-item {
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.glossary-item:hover {
  background-color: #f8f9fa;
}
.glossary-term {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.3rem;
}
.glossary-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ========== 메인 배너 ========== */
.main-banner {
  border-radius: 8px;
  overflow: hidden;
  background: #234d78;
  border: 1px solid #1f456c;
  position: relative;
}
.main-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.035);
  border-radius: 50%;
}
.main-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.025);
  border-radius: 50%;
}
.main-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 2rem;
  position: relative;
  z-index: 1;
}
.banner-badge {
  display: inline-block;
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.2px;
  margin-bottom: 0.6rem;
}
.banner-title {
  color: #fff;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.banner-desc {
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.banner-btns {
  display: flex;
  gap: 0.5rem;
}
.banner-btns .btn {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}
.banner-bid-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 158px;
  padding: 0.52rem 0.72rem 0.52rem 0.58rem !important;
  color: #174d7e;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 7px;
  box-shadow: 0 6px 16px rgba(5, 28, 51, 0.2);
  font-size: 0.84rem !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.banner-bid-search-btn:hover,
.banner-bid-search-btn:focus {
  color: #123f69;
  background: #f8fbff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(5, 28, 51, 0.26);
}
.banner-bid-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: #fff;
  background: var(--primary-navy);
  border-radius: 6px;
}
.banner-bid-search-arrow {
  margin-left: auto;
  color: #6d8ca9;
  font-size: 0.76rem;
}
.banner-visual {
  flex-shrink: 0;
}
.banner-service-panel {
  min-width: 168px;
  padding: 0.85rem 0.9rem;
  color: rgba(255,255,255,0.9);
  background: rgba(8, 29, 51, 0.22);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
}
.banner-service-heading {
  padding-bottom: 0.52rem;
  margin-bottom: 0.46rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem;
  font-weight: 700;
}
.banner-service-list {
  display: grid;
  gap: 0.34rem;
  font-size: 0.75rem;
}
.banner-service-list i { color: #d8e6f4; margin-right: 0.22rem; }

.home-search-card {
  border: 1px solid #e1e7ed !important;
  border-radius: 8px;
}
.home-search-card .card-body { padding: 0.8rem 1rem !important; }
.home-search-label {
  margin-bottom: 0.48rem;
  color: #465a6d;
  font-size: 0.76rem;
  font-weight: 700;
}
.home-search-label i { color: var(--primary-navy); margin-right: 0.26rem; }

/* ========== 내 서류함 일정 캘린더 ========== */
.document-calendar {
  padding: 1.1rem;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(58,130,192,0.09), transparent 28%),
    #fff;
  box-shadow: 0 8px 28px rgba(25, 57, 88, 0.07);
}
.document-calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.document-calendar-kicker {
  color: var(--primary-navy-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.document-calendar-title {
  margin: 0.15rem 0 0;
  color: #1f3347;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.document-calendar-description {
  margin: 0.2rem 0 0;
  color: #7a8795;
  font-size: 0.76rem;
}
.document-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 620px;
}
.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 27px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e7ebf0;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #667383;
  font-size: 0.7rem;
}
.calendar-legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}
.calendar-legend-item strong {
  color: #334155;
  font-size: 0.68rem;
}
.calendar-legend-registration i { background: #64748b; }
.calendar-legend-bid i { background: #2563a0; }
.calendar-legend-proposal i { background: #7c5ce7; }
.calendar-legend-opening i { background: #e8792e; }
.calendar-legend-agreement i { background: #159a83; }
.calendar-legend-memo i { background: #d5a21c; }

.document-month-card {
  overflow: hidden;
  height: 100%;
  border: 1px solid #e6ebf1;
  border-radius: 13px;
  background: #f4f7fa;
}
.document-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
}
.document-month-header strong {
  color: #1f3347;
  font-size: 1rem;
}
.document-month-header div span,
.document-month-header > span {
  color: #8a96a3;
  font-size: 0.7rem;
  font-weight: 500;
}
.document-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #e6ebf1;
}
.document-weekdays {
  background: #f8fafc;
}
.document-weekdays > div {
  padding: 0.45rem 0;
  border-bottom: 1px solid #e8edf2;
  color: #84909d;
  background: #f8fafc;
  font-size: 0.67rem;
  font-weight: 700;
  text-align: center;
}
.document-weekdays .sunday,
.document-calendar-date.sunday { color: #dd5660; }
.document-weekdays .saturday,
.document-calendar-date.saturday { color: #3978c5; }
.document-calendar-day {
  position: relative;
  min-width: 0;
  min-height: 105px;
  padding: 0.42rem;
  background: #fff;
}
.document-calendar-day.is-empty {
  background: #f7f9fb;
}
.document-calendar-day.is-outside-range {
  background: #f7f9fb;
  color: #b8c0c8;
}
.document-calendar-day.is-today {
  z-index: 1;
  background: #f2f8ff;
  box-shadow: inset 0 0 0 2px var(--primary-navy-light);
}
.document-calendar-day.is-selected {
  z-index: 2;
  box-shadow: inset 0 0 0 2px #f0a93d;
}
.document-calendar-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  color: #4a5968;
  font-size: 0.72rem;
  font-weight: 700;
}
.document-calendar-date small {
  padding: 0.08rem 0.3rem;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-navy);
  font-size: 0.55rem;
}
.document-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0.25rem;
}
.calendar-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.16rem 0.3rem;
  border-left: 2px solid currentColor;
  border-radius: 4px;
  background: #f3f5f7;
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.25;
  text-decoration: none;
}
.calendar-event:hover,
.calendar-event.active {
  filter: saturate(1.2);
  box-shadow: 0 2px 7px rgba(31,51,71,0.12);
  transform: translateY(-1px);
}
.calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event strong {
  flex: 0 0 auto;
}
.calendar-event-registration { color: #64748b; background: #f1f5f9; }
.application-registration-deadline {
  color: #f04455 !important;
  font-weight: 800 !important;
}
.calendar-event-bid { color: #2563a0; background: #eaf3fb; }
.calendar-event-proposal { color: #7052ca; background: #f0ecfc; }
.calendar-event-opening { color: #d8671e; background: #fff1e7; }
.calendar-event-agreement { color: #138674; background: #e7f7f3; }
.calendar-event-memo { color: #a97700; background: #fff6d9; }
.document-calendar-empty-label {
  display: block;
  margin-top: 0.55rem;
  color: #c2c9d0;
  font-size: 0.57rem;
  text-align: center;
}

/* ========== 내 서류함 공고 분류 카드 ========== */
.document-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}
.document-category-card {
  --category-color: #2563a0;
  --category-soft: #eaf3fb;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 132px;
  padding: 1.15rem 1.2rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  color: #27384a;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 53, 78, 0.07);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.document-category-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--category-soft);
  opacity: 0.72;
}
.document-category-card:hover {
  border-color: var(--category-color);
  color: #27384a;
  box-shadow: 0 14px 32px rgba(28, 53, 78, 0.13);
  transform: translateY(-3px);
}
.document-category-card.active {
  border: 2px solid var(--category-color);
  background: linear-gradient(135deg, #fff 58%, var(--category-soft));
  box-shadow: 0 13px 30px color-mix(in srgb, var(--category-color) 18%, transparent);
}
.document-category-card.category-price {
  --category-color: #167f69;
  --category-soft: #e3f5f0;
}
.document-category-card.category-all {
  --category-color: #3e607d;
  --category-soft: #e9f0f5;
}
.document-category-card.category-ineligible {
  --category-color: #d45a57;
  --category-soft: #fcebea;
}
.document-category-card.category-application {
  --category-color: #4c69c7;
  --category-soft: #e9edfb;
}
.document-category-card.category-result {
  --category-color: #8b5d20;
  --category-soft: #f8f0df;
}
.document-category-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  height: 57px;
  border-radius: 16px;
  color: var(--category-color);
  background: var(--category-soft);
  font-size: 1.65rem;
}
.document-category-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.document-category-content > small {
  margin-bottom: 0.18rem;
  color: var(--category-color);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.document-category-content > strong {
  color: #203246;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.document-category-content > span {
  margin-top: 0.25rem;
  overflow: hidden;
  color: #82909d;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-category-count {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.18rem;
  padding-right: 0.65rem;
  color: var(--category-color);
}
.document-category-count strong {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.document-category-count small {
  font-size: 0.65rem;
  font-weight: 700;
}
.document-category-arrow {
  position: absolute;
  z-index: 1;
  right: 0.75rem;
  bottom: 0.6rem;
  color: var(--category-color);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.document-category-card:hover .document-category-arrow,
.document-category-card.active .document-category-arrow {
  opacity: 1;
  transform: translateX(2px);
}
.document-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.15rem;
  color: #637181;
  font-size: 0.76rem;
}
.document-list-heading > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.document-list-heading > div > strong {
  color: #24364a;
  font-size: 0.94rem;
}
.document-list-eyebrow {
  color: var(--primary-navy-light);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.price-confirm-box {
  min-width: 68px;
  min-height: 28px;
  border-radius: 6px;
  font-size: 0.71rem;
  letter-spacing: -0.02em;
}
.price-confirm-box:disabled {
  opacity: .72;
}
.ineligible-memo-wrap {
  position: relative;
  display: inline-flex;
  max-width: 210px;
  vertical-align: middle;
}
.ineligible-reason {
  display: inline-block;
  max-width: 210px;
  padding: 0.12rem 0.15rem;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  color: #b94a47;
  background: transparent;
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  cursor: pointer;
}
.ineligible-reason:hover,
.ineligible-memo-wrap.is-open .ineligible-reason {
  color: #9f3534;
  background: #fff6f5;
}
.ineligible-memo-popover {
  display: none;
  position: absolute;
  z-index: 30;
  top: 50%;
  right: calc(100% + 7px);
  left: auto;
  width: max-content;
  max-width: 230px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #ead8d6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(51, 38, 38, .14);
  color: #69403e;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  transform: translateY(-50%);
}
.ineligible-memo-wrap.is-open .ineligible-memo-popover {
  display: block;
}
.bid-amount-pair {
  font-size: 0.73rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.bid-amount-pair .base-amount {
  color: #d34f58;
  font-weight: 600;
}
.bid-amount-pair .estimated-amount {
  color: #16805f;
  font-weight: 600;
}
.bid-amount-pair .amount-divider {
  margin: 0 0.28rem;
  color: #c5cbd2;
}
.document-date-heading {
  min-width: 112px;
}
.document-date-cell {
  min-width: 112px;
  padding-right: 0.4rem !important;
  padding-left: 0.4rem !important;
  font-size: 0.76rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.document-bid-table {
  min-width: 1080px;
  table-layout: auto;
  border-collapse: collapse;
}
.document-bid-table th {
  padding: 0.38rem 0.42rem;
  font-size: 0.74rem;
  line-height: 1.15;
}
.document-bid-table td {
  padding: 0.3rem 0.42rem;
  font-size: 0.77rem;
  line-height: 1.2;
}
.document-bid-table .document-number-heading,
.document-bid-table .document-bid-action-heading {
  width: 38px;
  padding-right: 0.24rem;
  padding-left: 0.24rem;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
}
.document-bid-table .document-bid-action-heading {
  width: 42px;
}
.document-bid-table .document-bid-action-cell {
  width: 42px;
  padding-right: 0.18rem !important;
  padding-left: 0.18rem !important;
}
.document-bid-table .form-check-input {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0;
}
.document-number-cell {
  width: 38px;
  padding-right: 0.24rem !important;
  padding-left: 0.24rem !important;
  color: #7b8793;
  font-size: 0.7rem !important;
}
.document-number-cell > div {
  margin-top: 0.18rem;
}
.document-title-cell {
  padding-top: 0.38rem !important;
  padding-bottom: 0.3rem !important;
  line-height: 1.15 !important;
}
.document-title-link {
  color: #265b8f;
  font-size: 0.81rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.document-title-link:hover {
  color: var(--primary-navy-dark);
  text-decoration: underline !important;
}
.document-type-badge {
  margin-right: 0.18rem;
  padding: 0.2em 0.38em;
  font-size: 0.61rem;
  vertical-align: 0.08em;
}
.document-agency-name {
  margin-top: 0.16rem;
  font-size: 0.68rem;
  line-height: 1.1;
}
.document-meta-cell {
  max-width: 150px;
  font-size: 0.71rem !important;
  line-height: 1.18 !important;
  word-break: keep-all;
}
.document-bid-number {
  font-size: 0.7rem !important;
  white-space: nowrap;
}
.document-bid-table .btn-sm {
  min-width: 0;
  padding: 0.18rem 0.28rem;
  font-size: 0.69rem;
}
.document-bid-group td {
  background-color: #fff;
  transition: background-color 0.14s ease;
}
.document-bid-group.group-odd td {
  background-color: #f9fbfd;
}
.document-bid-group .document-bid-row-start td {
  border-top: 6px solid #e9eef3 !important;
}
.document-bid-group .document-bid-row-end td {
  border-bottom-color: #d9e1e8;
}
.document-bid-table.table-hover > tbody.document-bid-group > tr:hover > * {
  --bs-table-bg-state: transparent;
}
.document-bid-table.table-hover > tbody.document-bid-group:hover > tr > * {
  --bs-table-bg-state: #edf5fb;
  background-color: #edf5fb;
}
.document-bid-group .document-number-cell {
  border-left: 4px solid #8094a8 !important;
  background-color: #f1f5f8;
}
.document-bid-group.state-priced .document-number-cell {
  border-left-color: #16805f !important;
  background-color: #ecf8f4;
}
.document-bid-group.state-ineligible .document-number-cell {
  border-left-color: #d45a57 !important;
  background-color: #fff1f0;
}
.document-bid-group.state-pending .document-number-cell {
  border-left-color: #4c79a7 !important;
}

/* ========== 반응형 ========== */
@media (max-width: 991px) {
  .status-count { font-size: 1.3rem; }
  .status-icon { font-size: 1.5rem; }
  .main-banner-inner { padding: 1.5rem; }
  .banner-title { font-size: 1.2rem; }
  .banner-visual { font-size: 3.5rem; }
  .document-calendar-toolbar { flex-direction: column; }
  .document-calendar-legend { justify-content: flex-start; max-width: none; }
  .document-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-category-card { min-height: 108px; }
}
@media (max-width: 576px) {
  .banner-visual { display: none; }
  .banner-btns { flex-direction: column; }
  .document-calendar { padding: 0.75rem; }
  .document-calendar-description { display: none; }
  .document-calendar-day { min-height: 80px; padding: 0.28rem; }
  .document-calendar-date { font-size: 0.65rem; }
  .calendar-event { padding: 0.13rem 0.2rem; font-size: 0.56rem; }
  .document-calendar-empty-label { display: none; }
  .document-category-card {
    gap: 0.65rem;
    min-height: 98px;
    padding: 0.85rem;
    border-radius: 14px;
  }
  .document-category-grid { grid-template-columns: 1fr; }
  .document-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 1.35rem;
  }
  .document-category-content > strong { font-size: 0.9rem; }
  .document-category-content > span { display: none; }
  .document-category-count strong { font-size: 1.35rem; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* 경쟁사 투찰지점 추이 */
.competitor-trend-card .card-body { min-height: 250px; }
.competitor-trend-legend {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #4d6071;
  font-size: 0.72rem;
  white-space: nowrap;
}
.competitor-trend-legend > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.competitor-trend-legend > em { margin-left: auto; color: #8795a5; font-style: normal; }
.competitor-trend-data-note { margin-top: 5px; color: #8795a5; font-size: 0.68rem; }
.competitor-trend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.competitor-trend-company-dot { background: #1677d2; box-shadow: 0 0 0 3px rgba(22, 119, 210, 0.12); }
.competitor-trend-award-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12); }
.competitor-trend-chart-wrap { position: relative; width: 100%; }
.competitor-trend-chart { display: block; width: 100%; height: auto; aspect-ratio: 720 / 250; max-height: 300px; overflow: visible; }
.competitor-trend-grid { stroke: #e7edf3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.competitor-trend-midline { stroke: #b8c9da; stroke-dasharray: 3 2; }
.competitor-trend-axis { stroke: #b6c3d0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.competitor-trend-line { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.competitor-trend-company-line { stroke: #1677d2; stroke-width: 2.2; }
.competitor-trend-award-line { stroke: #f59e0b; stroke-width: 1.9; stroke-dasharray: 6 4; }
.competitor-trend-point { stroke: #fff; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.competitor-trend-company-point { fill: #1677d2; }
.competitor-trend-award-point { fill: #f59e0b; }
.competitor-trend-hover-point { cursor: inherit; }
.competitor-trend-hover-point:hover { stroke-width: 2.4; }
.competitor-trend-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  width: 260px;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid rgba(113, 145, 177, 0.42);
  background: rgba(248, 252, 255, 0.9);
  color: #334e68;
  box-shadow: 0 6px 18px rgba(24, 39, 55, 0.14);
  backdrop-filter: blur(3px);
  pointer-events: none;
  font-size: 0.72rem;
  line-height: 1.35;
}
.competitor-trend-tooltip.show { display: block; }
.competitor-trend-tooltip > div { display: grid; grid-template-columns: 78px 1fr; gap: 6px; margin: 2px 0; }
.competitor-trend-tooltip b { color: #2871ad; font-weight: 700; }
.competitor-trend-tooltip span { min-width: 0; overflow-wrap: anywhere; }
.competitor-trend-y-label, .competitor-trend-x-label, .competitor-trend-x-title { fill: #718195; font-size: 10px; font-family: inherit; }
.competitor-trend-x-title { fill: #9aa7b5; }
@media (max-width: 575.98px) {
  .competitor-trend-legend > em { display: none; }
}
