body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #202936;
  background: #f6f8fb;
}

a {
  color: #1f6fc8;
}

a:hover,
a:focus {
  color: #2f8eef;
}

.portal-brand {
  position: static !important;
  max-width: none !important;
  margin-bottom: 0 !important;
  padding-top: 18px;
  padding-bottom: 18px;
}

.portal-brand-link,
.portal-brand-link:hover,
.portal-brand-link:focus {
  display: inline-flex;
  align-items: center;
  color: #113a73;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border: 2px solid #113a73;
  border-radius: 50%;
  color: #113a73;
  font-size: 15px;
}

.portal-brand-name {
  margin-right: 16px;
  color: #113a73;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.portal-brand-divider {
  width: 1px;
  height: 32px;
  margin-right: 16px;
  background: #aeb7c3;
}

.portal-brand-text {
  color: #5d6674;
  font-size: 16px;
  font-weight: 700;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-bottom: 0;
  border-width: 0 0 1px;
  border-color: #e1e7ef;
  border-radius: 0;
  background: #f7f9fc;
  box-shadow: 0 1px 6px rgba(32, 41, 54, 0.06);
}

.portal-topbar:before,
.portal-topbar:after {
  display: none;
}

.portal-topbar .navbar-header {
  float: none;
}

.portal-topbar .navbar-brand {
  float: none;
  height: auto;
  padding: 12px 34px;
}

.portal-public-header .navbar-brand {
  padding-top: 12px;
  padding-bottom: 12px;
}

.portal-public-main {
  padding-top: 24px;
}

.portal-user-menu {
  float: none !important;
  margin-right: 34px;
}

.portal-user-name {
  display: inline-block;
  margin-right: 10px;
  color: #121820;
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}

.portal-user-avatar {
  display: inline-block;
  width: 31px;
  height: 31px;
  margin-right: 10px;
  border-radius: 50%;
  background: #d8dde5;
  color: #6c7480;
  font-size: 16px;
  line-height: 31px;
  text-align: center;
  vertical-align: middle;
}

.portal-logout-button {
  padding: 0;
  color: #202936 !important;
  font-size: 13px;
  font-weight: 600;
}

.portal-logout-button:hover,
.portal-logout-button:focus {
  color: #1277e5;
  text-decoration: none;
}

.portal-shell {
  min-height: calc(100vh - 64px);
  /* padding-right: 0;
  padding-left: 0; */
    border-width: 1px;
    border-color: #e1e7ef;
    border-radius: 14px;
    border-style: solid;
    margin: 20px;
    padding: 0;
    overflow: hidden;
}

.portal-shell > .row {
  margin-right: 0;
  margin-left: 0;
}

.portal-sidebar-col {
  min-height: calc(100vh - 64px);
  padding: 18px 14px 28px;
  border-right: 1px solid #dfe5ed;
  background: #f7f9fc;
}

.portal-nav > li > a {
  color: #202936;
  font-size: 13px;
  font-weight: 600;
}

.portal-nav .glyphicon,
.portal-filter-item .glyphicon {
  margin-right: 9px;
  color: #68727f;
}

.portal-nav > li.active > a,
.portal-nav > li.active > a:hover,
.portal-nav > li.active > a:focus {
  background: #eaf3ff;
  color: #0878ec;
}

.filter-nav > li.active > a,
.filter-nav > li.active > a:hover,
.filter-nav > li.active > a:focus {
  background: #eaf3ff;
  color: #0878ec;
}

.portal-nav > li.active .glyphicon {
  color: #0878ec;
}

.portal-sidebar-actions {
  margin-top: 30px;
}

.portal-action-button {
  padding-top: 10px;
  padding-bottom: 10px;
  border-color: #34a853;
  background: #34a853;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.portal-action-button:hover,
.portal-action-button:focus {
  border-color: #2d9449;
  background: #2d9449;
}

.portal-action-button + .portal-action-button {
  margin-top: 12px;
}

.portal-filter-shell {
  margin-top: 30px;
}

.portal-filter-shell h2 {
  margin: 0 0 12px 8px;
  color: #202936;
  font-weight: 700;
}

.portal-filter-item {
  color: #202936;
  font-weight: 600;
}

.portal-filter-item  a.nav-link { 
    color: #202936;
}

.portal-main {
  padding: 12px 12px;
  background: #ffffff;
  min-height: calc(100vh - 64px);
}

.dashboard-page {
  max-width: 1180px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 22px;
}

.dashboard-header-actions {
  padding-top: 6px;
}

.dashboard-header h1 {
  margin: 0;
  color: #171c24;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-header .text-success {
  margin-bottom: 6px;
}

.dashboard-export-button,
.dashboard-export-button:hover,
.dashboard-export-button:focus {
  border: 1px solid #1a73e8;
  border-radius: 6px;
  background: #1a73e8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-export-button:hover {
  background: #1557b0;
  border-color: #1557b0;
}

.dashboard-export-button .glyphicon {
  margin-right: 6px;
}

#dateRangeButton {
  border-radius: 6px;
  border-color: #d1d5db;
  background: #ffffff;
  font-size: 13px;
  padding: 6px 12px;
}

#dateRangeButton .glyphicon-calendar {
  margin-right: 6px;
  color: #6b7280;
}

#dateRangeButton .caret {
  margin-left: 8px;
}

.dashboard-panel {
  margin-bottom: 18px;
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(32, 41, 54, 0.04);
}

.dashboard-status-panel {
  padding: 24px 24px 26px;
}

.dashboard-files-panel {
  padding: 20px 20px 12px;
}

.dashboard-section-heading {
  margin-bottom: 16px;
}

.dashboard-section-heading h2 {
  margin: 0;
  color: #202936;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-clear-filter,
.dashboard-file-count {
  color: #6d7784;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-status-row {
  margin-right: -9px;
  margin-left: -9px;
}

.dashboard-status-col {
  padding-right: 9px;
  padding-left: 9px;
}

.dashboard-status-card,
.dashboard-status-card:hover,
.dashboard-status-card:focus {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  margin-bottom: 0;
  padding: 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #121820;
  text-decoration: none;
}

.dashboard-status-card.active {
  border-color: #1a73e8;
}

.dashboard-status-submitted {
  background: #e8f2ff;
}

.dashboard-status-in-progress {
  background: #fff7e6;
}

.dashboard-status-completed {
  background: #e8f6ed;
}

.dashboard-status-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  font-size: 22px;
}

.dashboard-status-submitted .dashboard-status-icon {
  color: #1a73e8;
}

.dashboard-status-in-progress .dashboard-status-icon {
  color: #f9a825;
}

.dashboard-status-completed .dashboard-status-icon {
  color: #34a853;
}

.dashboard-status-content {
  display: block;
  min-width: 0;
}

.dashboard-status-title,
.dashboard-status-count,
.dashboard-status-trend {
  display: block;
}

.dashboard-status-title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-status-count {
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-status-trend {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-status-trend.positive {
  color: #1b9b48;
}

.dashboard-status-trend.neutral {
  color: #7a8594;
}

.dashboard-grid-shell {
  border-top: 1px solid #edf1f5;
}

.dashboard-grid-shell .gridjs-container {
  display: block;
  padding: 0;
  color: #202936;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dashboard-grid-shell .gridjs-head {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 12px 0;
}

.dashboard-grid-shell .gridjs-search {
  float: none;
}

.dashboard-grid-shell .gridjs-search-input {
  width: 250px;
  max-width: 100%;
  height: 34px;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  box-shadow: none;
  color: #202936;
  font-size: 13px;
}

.dashboard-grid-shell .gridjs-wrapper {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-grid-shell .gridjs-table {
  width: 100%;
  border-collapse: collapse;
  color: #202936;
  font-size: 13px;
}

.dashboard-grid-shell .gridjs-th {
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-grid-shell .gridjs-td {
  border: 0;
  border-top: 1px solid #edf1f5;
  background: #ffffff;
  vertical-align: middle;
  white-space: nowrap;
}

.dashboard-grid-shell .gridjs-footer {
  border: 0;
  border-top: 1px solid #edf1f5;
  box-shadow: none;
}

.dashboard-grid-shell .gridjs-pagination .gridjs-pages button {
  border-color: #dfe5ed;
  color: #4b5563;
}

.dashboard-grid-shell .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #ffffff;
}

.dashboard-grid-actions .btn-link,
.dashboard-grid-actions .btn-link:hover,
.dashboard-grid-actions .btn-link:focus {
  padding: 0 4px;
  color: #4b5563;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.dashboard-grid-actions .dropdown-menu {
  min-width: 150px;
  border-color: #dfe5ed;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(32, 41, 54, 0.12);
  font-size: 13px;
}

.dashboard-status-badge {
  display: inline-block;
  min-width: 86px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.dashboard-status-badge-submitted {
  background: #e8f2ff;
  color: #1a73e8;
}

.dashboard-status-badge-inprogress {
  background: #e8eef7;
  color: #2f5f96;
}

.dashboard-status-badge-completed {
  background: #e5f5ea;
  color: #137333;
}

/* Grid Request Number Link */
.grid-request-link {
  color: #1f6fc8;
  font-weight: 600;
  text-decoration: none;
}

.grid-request-link:hover,
.grid-request-link:focus {
  color: #2f8eef;
  text-decoration: underline;
}

.dashboard-empty-state {
  padding: 24px !important;
  color: #6d7784;
  text-align: center;
}

.portal-footer {
  display: none;
}

.portal-login-page {
  padding-top: 46px;
  padding-bottom: 46px;
}

.portal-login-card {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(17, 58, 115, 0.16);
}

.portal-login-card .panel-body {
  padding: 34px;
}

.portal-login-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: #113a73;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
}

.portal-login-subtitle {
  margin-bottom: 26px;
  color: #5f6775;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.portal-login-form .form-control {
  max-width: none;
  height: 48px;
  border-color: #d6deea;
  border-radius: 8px;
  box-shadow: none;
  color: #3a4656;
}

.portal-login-form .form-control:focus {
  border-color: #7ab2ec;
  box-shadow: 0 0 0 3px rgba(47, 142, 239, 0.16);
}

.portal-login-link {
  margin-top: -4px;
  margin-bottom: 16px;
}

.portal-login-link a,
.portal-help-link a {
  font-weight: 600;
  text-decoration: none;
}

.portal-login-link a:hover,
.portal-login-link a:focus,
.portal-help-link a:hover,
.portal-help-link a:focus {
  text-decoration: underline;
}

.portal-login-button {
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #1f80e4;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portal-login-button:hover,
.portal-login-button:focus {
  background: #176fc9;
}

.portal-help-link {
  margin-top: 20px;
  margin-bottom: 0;
}

.portal-support-note {
  margin-top: 20px;
  margin-bottom: 0;
  color: #5f6d80;
  font-size: 13px;
  line-height: 1.5;
}

.validation-summary-errors,
.field-validation-error {
  font-size: 13px;
}

.portal-disabled {
  opacity: 0.5;
  pointer-events: none;
}

#downloadButton .glyphicon-spin {
  animation: spin 5s infinite linear;
  -webkit-animation: spin 5s infinite linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .portal-brand,
  .header-contact {
    text-align: center;
  }

  .portal-login-page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .portal-login-card .panel-body {
    padding: 24px 18px;
  }

  .portal-main {
    padding: 20px 16px;
  }

  .dashboard-header-actions {
    padding-top: 14px;
  }

  .dashboard-status-card {
    min-height: 96px;
    margin-bottom: 14px;
  }

  .portal-shell {
    overflow: visible;
    margin: 10px;
  }

  .portal-shell > .row {
    display: flex;
    flex-direction: column;
  }

  .portal-main {
    order: 1;
  }

  .portal-sidebar-col {
    order: 2;
    min-height: auto;
    border-right: 0;
    border-top: 1px solid #dfe5ed;
  }
}

/* Error / empty-state views */
.error-page {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
}
.error-icon svg {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 20px;
  color: currentColor;
  stroke: currentColor;
  fill: currentColor;
}
.error-title {
  color: #333;
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
}
.error-message {
  color: #666;
  font-size: 18px;
  margin-bottom: 32px;
}
.error-actions {
  margin-top: 40px;
}
.error-support {
  color: #999;
  font-size: 14px;
  margin-top: 32px;
}
.error-support a {
  color: #007bff;
}
.error-icon.server {
  color: #dc3545;
}
.error-icon.neutral {
  color: #6c757d;
}
.error-icon.warning {
  color: #dc3545;
}

/* ===================================================================
   File Detail Page Styles
   =================================================================== */

/* File Detail Container */
.file-detail-container {
  padding: 20px;
}

/* Header Section */
.file-detail-header {
  margin-bottom: 15px;
}

.file-detail-back-link {
  color: #1f6fc8;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.file-detail-back-link:hover,
.file-detail-back-link:focus {
  color: #2f8eef;
  text-decoration: none;
}

.file-detail-back-link .glyphicon {
  font-size: 12px;
  margin-right: 4px;
}

/* Title Row */
.file-detail-title-row {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.file-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #202936;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.file-detail-status-badge {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: capitalize;
}

.file-detail-status-badge.badge-submitted {
  background-color: #e3f2fd;
  color: #1976d2;
}

.file-detail-status-badge.badge-in-progress {
  background-color: #fff3e0;
  color: #f57c00;
}

.file-detail-status-badge.badge-completed {
  background-color: #e8f5e9;
  color: #388e3c;
}

/* Action Buttons */
.file-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.file-detail-action-btn,
.file-detail-download-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.file-detail-action-btn {
  background-color: white;
  border: 2px solid #1f6fc8;
  color: #1f6fc8;
}

.file-detail-action-btn:hover:not(:disabled),
.file-detail-action-btn:focus:not(:disabled) {
  background-color: #f0f7ff;
  border-color: #2f8eef;
  color: #2f8eef;
}

.file-detail-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-detail-download-btn {
  background-color: #1f6fc8;
  border: 2px solid #1f6fc8;
  color: white;
}

.file-detail-download-btn:hover:not(:disabled),
.file-detail-download-btn:focus:not(:disabled) {
  background-color: #2f8eef;
  border-color: #2f8eef;
  color: white;
}

.file-detail-download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-detail-action-btn .glyphicon,
.file-detail-download-btn .glyphicon {
  margin-right: 6px;
}

/* Sub-header */
.file-detail-subheader {
  background-color: #f6f8fb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
}

.file-detail-subheader-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.file-detail-subheader-icon {
  font-size: 24px;
  color: #1f6fc8;
  margin-right: 12px;
}

.file-detail-subheader-content {
  display: flex;
  flex-direction: column;
}

.file-detail-subheader-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.file-detail-subheader-value {
  font-size: 16px;
  color: #202936;
  font-weight: 600;
  margin-top: 2px;
}

/* Progress Stepper */
.file-detail-progress-row {
  margin-bottom: 30px;
}

.file-detail-progress-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 60px;
  max-width: 100%;
}

.progress-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  gap: 12px;
}

.progress-step-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.progress-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background-color: #e0e0e0;
  color: #9e9e9e;
  border: 3px solid #e0e0e0;
}

.progress-step.completed .progress-step-icon {
  background-color: #388e3c;
  color: white;
  border-color: #388e3c;
}

.progress-step.active .progress-step-icon {
  background-color: #1f6fc8;
  color: white;
  border-color: #1f6fc8;
}

.progress-step-label {
  font-size: 14px;
  font-weight: 700;
  color: #202936;
  margin-bottom: 2px;
  text-align: left;
  white-space: nowrap;
}

.progress-step-date {
  font-size: 12px;
  color: #6b7280;
  text-align: left;
  min-height: 16px;
  white-space: nowrap;
}

.progress-step-connector {
  flex: 1;
  height: 4px;
  background-color: #e0e0e0;
  margin: 0 20px;
  min-width: 40px;
}

.progress-step-connector.completed {
  background-color: #388e3c;
}

/* Card Sections */
.file-detail-section-row {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
}

.file-detail-section-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.file-communication-section {
  input,
  textarea {
    max-width: 100%;
  }
}

.file-detail-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-detail-card-body {
  flex: 1;
}

.file-detail-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.file-detail-card-expandable .file-detail-card-header {
  cursor: pointer;
  user-select: none;
}

.file-detail-card-icon {
  font-size: 20px;
  color: #1f6fc8;
  margin-right: 10px;
  flex-shrink: 0;
}

.file-detail-card-icon svg,
svg.file-detail-card-icon {
  width: 20px;
  height: 20px;
  fill: #1f6fc8;
  margin-right: 10px;
  flex-shrink: 0;
}

.file-detail-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #202936;
  margin: 0;
}

.file-detail-card-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-left: 5%;
  font-weight: 600;
}

.file-detail-card-toggle {
  font-size: 16px;
  color: #6b7280;
  margin-left: auto;
  transition: transform 0.3s;
}

.file-detail-card-body {
  padding: 20px;
}

.file-detail-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 7px;
  padding-bottom: 7px;
}

.file-detail-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.file-detail-field-label {
  font-size: 14px;
  color: #333333;
  font-weight: 400;
  flex: 0 0 50%;
}

.file-detail-field-value {
  font-size: 14px;
  color: #000000;
  font-weight: 500;
  text-align: right;
  flex: 0 0 45%;
}

.file-detail-field-full-width {
  flex-direction: column;
  align-items: stretch;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.file-detail-field-full-width .file-detail-field-label {
  flex: none;
  margin-bottom: 8px;
  text-align: left;
}

.file-detail-field-full-width .file-detail-field-value {
  flex: none;
  text-align: left;
}

.file-detail-field-multiline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-detail-field-multiline span {
  display: block;
  line-height: 1.5;
}

/* Vehicle Information Grid */
.vehicle-info-row .file-detail-field-label {
  flex: 0 0 45%;
  margin-bottom: 0;
}

.vehicle-info-row .file-detail-field-value {
  flex: 0 0 50%;
  text-align: right;
  font-weight: 600;
}

/* Boolean Display */
.boolean-yes {
  color: #388e3c;
  font-weight: 600;
}

.boolean-yes .glyphicon {
  margin-right: 4px;
}

.boolean-no {
  color: #d32f2f;
  font-weight: 600;
}

.boolean-no .glyphicon {
  margin-right: 4px;
}

/* Show More Link */
.file-detail-show-more {
  display: block;
  text-align: center;
  color: #1f6fc8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.file-detail-show-more:hover,
.file-detail-show-more:focus {
  color: #2f8eef;
  text-decoration: none;
  outline: 2px solid #2f8eef;
  outline-offset: 2px;
}

.file-detail-show-more .glyphicon {
  font-size: 12px;
  margin-left: 4px;
}

/* Keyboard focus styles for expandable card headers */
.file-detail-card-header[role="button"]:focus {
  outline: 2px solid #2f8eef;
  outline-offset: -2px;
}

.file-detail-card-header[role="button"] {
  cursor: pointer;
}

/* Vehicle Condition Ratings */
.condition-rating {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.condition-rating-label {
  font-size: 14px;
  color: #202936;
  font-weight: 600;
  min-width: 120px;
}

.condition-rating-bar {
  display: flex;
  gap: 4px;
  flex: 1;
  max-width: 300px;
  margin: 0 20px;
}

.condition-bar-segment {
  flex: 1;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.condition-bar-segment.filled {
  background-color: #1f6fc8;
}

.condition-rating-value {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.condition-additional-fields {
  margin-top: 24px;
  padding-top: 24px;
  border-left: 2px solid #e5e7eb;
}

.condition-additional-fields .file-detail-field {
  display: flex;
  justify-content: space-between;
}

/* Split Column Layout with Border */
.file-detail-split-column {
  padding-right: 20px;
}

.file-detail-split-column-right {
  padding-left: 20px;
  padding-right: 15px;
  border-left: 2px solid #e5e7eb;
}

@media (min-width: 768px) {
  .file-detail-split-column {
    padding-right: 20px;
  }
  
  .file-detail-split-column-right {
    padding-left: 20px;
  }
}

@media (max-width: 767px) {
  .file-detail-split-column {
    padding-right: 15px;
    margin-bottom: 20px;
  }
  
  .file-detail-split-column-right {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 20px;
    border-left: none;
    border-top: 2px solid #e5e7eb;
  }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .file-detail-actions {
    justify-content: flex-start;
    margin-top: 15px;
  }
  
  .file-detail-title {
    font-size: 24px;
  }
  
  .file-detail-progress-stepper {
    padding: 30px 30px;
  }
  
  .progress-step {
    gap: 8px;
  }
  
  .progress-step-connector {
    flex: 1;
    min-width: 30px;
    margin: 0 15px;
  }
  
  .progress-step-label {
    font-size: 13px;
  }
  
  .progress-step-date {
    font-size: 11px;
  }
  
  .condition-rating {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .condition-rating-bar {
    margin: 10px 0;
    max-width: 100%;
  }
  
  .condition-rating-value {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .file-detail-container {
    padding: 15px;
  }
  
  .file-detail-title {
    font-size: 20px;
  }
  
  .file-detail-action-btn,
  .file-detail-download-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .file-detail-subheader {
    padding: 15px;
  }
  
  .file-detail-progress-stepper {
    padding: 20px 15px;
    flex-direction: column;
    gap: 15px;
  }
  
  .progress-step {
    width: 100%;
    gap: 8px;
  }
  
  .progress-step-connector {
    display: none;
  }
  
  .progress-step-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .progress-step-label {
    font-size: 12px;
  }
  
  .progress-step-date {
    font-size: 10px;
  }
}
/* ===========================
   Communication Features (Phase 4)
   =========================== */

/* Communication Section Subtitle */
.file-detail-card-subtitle {
  display: block;
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 5px;
}

/* Communication Form */
.communication-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.communication-actions .btn {
  flex: 0 0 auto;
}

.communication-actions .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.communication-actions .btn-danger:hover,
.communication-actions .btn-danger:focus {
  background-color: #c82333;
  border-color: #bd2130;
}

.communication-actions .btn-outline-success {
  color: #28a745;
  border-color: #28a745;
}

.communication-actions .btn-outline-success:hover,
.communication-actions .btn-outline-success:focus {
  background-color: #28a745;
  color: #fff;
}

/* Attachment List */
.attachment-list {
  margin-bottom: 10px;
}

.attachment-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 5px;
  background-color: #f6f8fb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  gap: 10px;
}

.attachment-item .glyphicon {
  color: #6b7280;
}

.attachment-name {
  flex: 1;
  font-size: 14px;
  color: #202936;
}

.attachment-remove {
  color: #dc3545;
  font-size: 20px;
  padding: 0 5px;
  line-height: 1;
}

.attachment-remove:hover,
.attachment-remove:focus {
  color: #c82333;
  text-decoration: none;
}

/* Communication History */
.communication-history-body {
  max-height: 300px;
  overflow-y: auto;
}

.communication-history-item {
  padding: 12px;
  margin-bottom: 10px;
  background-color: #f6f8fb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.communication-history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.communication-avatar {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1f6fc8;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}

.communication-user {
  font-weight: 600;
  color: #202936;
  font-size: 14px;
}

.communication-timestamp {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
}

.communication-history-message {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

/* Responsive adjustments for communication */
@media (max-width: 767px) {
  .communication-actions {
    flex-direction: column;
  }
  
  .communication-actions .btn {
    width: 100%;
  }
  
  .communication-history-body {
    max-height: 300px;
  }
}
