@charset "UTF-8";
/* =========================================================================
   PS.Congressional.React.eDocuments — Theme5 SCSS

   Card-on-grey page layout (shadcn-ish), pill-style tab strip, document rows
   as inset white cards with a tinted icon block + chevron, modal PDF viewer.

   All icons are inlined as URL-encoded SVG data URIs in CSS background-image
   so we don't ship an icon library or extra web resources.
   ========================================================================= */
/* ---- Palette ----------------------------------------------------------- */
/* ---- Outer / page wrapper --------------------------------------------- */
.edocuments-container {
  color: #181818;
  background-color: #f5f5f7;
}

.edocuments-page {
  background-color: #f5f5f7;
  min-height: 60vh;
  padding: 16px;
}

.edocuments-page-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

/* ---- Page header (outside the card) ----------------------------------- */
.edocuments-header {
  margin: 8px 0 20px;
}
.edocuments-header h1, .edocuments-header h2, .edocuments-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #181818;
}

.edocuments-page-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: #717182;
  line-height: 1.45;
}

/* ---- Card ------------------------------------------------------------- */
.edocuments-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.edocuments-card-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.edocuments-card-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.edocuments-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #181818;
}

.edocuments-card-description {
  margin: 0;
  font-size: 0.875rem;
  color: #717182;
  line-height: 1.4;
}

.edocuments-card-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  /* Year label */
}
.edocuments-card-header-controls .edocuments-filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #717182;
  margin: 0;
}
.edocuments-card-header-controls {
  /* The year DropDownList renders a native <select> (or wraps one); style
     whatever it emits to match the shadcn Select trigger. The descendant
     selector is intentionally broad — IDS.React's emitted markup varies. */
}
.edocuments-card-header-controls select,
.edocuments-card-header-controls .DropDownList,
.edocuments-card-header-controls .DropDownList select,
.edocuments-card-header-controls .DropDownList input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 0.875rem;
  color: #181818;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  min-width: 110px;
  cursor: pointer;
}
.edocuments-card-header-controls select:focus,
.edocuments-card-header-controls .DropDownList:focus,
.edocuments-card-header-controls .DropDownList select:focus,
.edocuments-card-header-controls .DropDownList input:focus {
  outline: 2px solid rgba(61, 90, 128, 0.4);
  outline-offset: 1px;
}

.edocuments-card-body {
  padding: 20px;
}

/* ---- Tab strip (pill style) ------------------------------------------- */
.edocuments-tab-bar {
  /* Mobile-first: three tabs share the full row width via flex:1 + min-width:0.
     Text size and padding stay small so labels fit on phone widths (iPhone Pro
     Max is ~393px CSS px). The @media (min-width:768px) block below bumps both
     up for tablet/desktop. */
  display: flex;
  width: 100%;
  background-color: #ececf0;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 2px;
}
.edocuments-tab-bar button,
.edocuments-tab-bar button:link,
.edocuments-tab-bar button:visited {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 4px;
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #717182 !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none !important;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.edocuments-tab-bar button:hover:not(.edocuments-tab-active),
.edocuments-tab-bar button:focus:not(.edocuments-tab-active),
.edocuments-tab-bar button:active:not(.edocuments-tab-active) {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: #181818 !important;
  box-shadow: none !important;
  outline: none;
}
.edocuments-tab-bar button.edocuments-tab-active,
.edocuments-tab-bar button.edocuments-tab-active:hover,
.edocuments-tab-bar button.edocuments-tab-active:focus {
  background-color: #ffffff !important;
  color: #181818 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ---- Document list ---------------------------------------------------- */
.edocuments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edocuments-row-key {
  display: none;
}

.edocuments-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.edocuments-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(61, 90, 128, 0.35);
}

/* Tinted square icon block with FileText glyph */
.edocuments-row-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background-color: #e8f1f8;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.edocuments-row-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.edocuments-row-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #181818;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edocuments-row-date {
  font-size: 0.8125rem;
  color: #717182;
}

.edocuments-row-account {
  font-size: 0.75rem;
  color: #717182;
  opacity: 0.85;
}

.edocuments-row-actions {
  /* Legacy hook from prior layout — actions are now click-anywhere on the
     row. Hidden in the new design but kept for back-compat. */
  display: none;
}

/* Right chevron — lucide ChevronRight, muted */
.edocuments-row-chevron {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ---- Empty state ------------------------------------------------------ */
.edocuments-list-empty {
  text-align: center;
  padding: 48px 16px;
  color: #717182;
}

.edocuments-empty-icon {
  display: inline-block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e8f1f8;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;
  margin: 0 auto 16px;
}

.edocuments-empty-heading {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #181818;
}

/* ---- Inline PDF viewer modal ----------------------------------------- */
.edocuments-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  padding: 12px;
}

.edocuments-modal {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1080px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.edocuments-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.edocuments-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #181818;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 12px;
}

.edocuments-modal-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.edocuments-modal-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent; /* ghost: no visible border at rest */
  border-radius: 6px;
  background-color: transparent; /* ghost: transparent at rest */
  color: #717182; /* muted label to match the design */
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.edocuments-modal-actions button:hover {
  background-color: #ececf0; /* subtle hover fill */
  color: #181818;
}
.edocuments-modal-actions {
  /* Download button: icon + label. <react:Button> renders a plain <button> with NO id
     attribute (the label sits in a child <span>), so id-suffix selectors never match —
     target by position instead. The actions container always renders exactly two buttons
     in source order: Download first, then Close. */
}
.edocuments-modal-actions button:first-child::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.edocuments-modal-actions {
  /* Close button: icon only, square (last of the two buttons). font-size:0 hides the
     inherited label text in the child <span>; the X glyph is drawn via ::before. */
}
.edocuments-modal-actions button:last-child {
  padding: 0;
  width: 34px;
  justify-content: center;
  font-size: 0;
}
.edocuments-modal-actions button:last-child::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.edocuments-modal-body {
  flex: 1;
  background-color: #ececf0;
  padding: 12px;
  overflow: auto;
}

.edocuments-pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: 0;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ---- Progress / loading ---------------------------------------------- */
.edocuments-progress-line {
  height: 3px;
  position: relative;
  overflow: hidden;
  background-color: #e5e7eb;
  margin: 4px 0 16px;
  border-radius: 20px;
}
.edocuments-progress-line::before {
  content: "";
  position: absolute;
  left: -50%;
  height: 3px;
  width: 40%;
  background-color: #3d5a80;
  animation: edocLineAnim 1s linear infinite;
  border-radius: 20px;
}

@keyframes edocLineAnim {
  0% {
    left: -40%;
  }
  50% {
    left: 20%;
    width: 80%;
  }
  100% {
    left: 100%;
    width: 100%;
  }
}
.edocuments-loading-dim {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Tablet ---------------------------------------------------------- */
@media (min-width: 768px) {
  .edocuments-page {
    padding: 24px 28px;
  }
  .edocuments-header {
    margin: 8px 0 24px;
  }
  .edocuments-header h1, .edocuments-header h2, .edocuments-header h3 {
    font-size: 1.625rem;
  }
  .edocuments-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
  }
  .edocuments-card-body {
    padding: 24px;
  }
  .edocuments-tab-bar {
    width: auto;
  }
  .edocuments-tab-bar button {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-size: 0.875rem;
    /* Desktop has room — let labels render at full width with no truncation. */
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }
  .edocuments-modal-title {
    font-size: 1.0625rem;
  }
}
/* ---- Desktop --------------------------------------------------------- */
@media (min-width: 990px) {
  .edocuments-page {
    padding: 32px 40px;
  }
  .edocuments-row {
    padding: 16px 18px;
  }
}
