html {
   font-size: 14px;
}
@media (min-width: 768px) {
   html {
       font-size: 16px;
   }
}
html {
   position: relative;
   min-height: 100%;
}
body {
   margin: 0;
   background: #eef3f5;
   font-family: Arial, Helvetica, sans-serif;
   color: #1f2d3d;
}

/* ========================================
  MAIN PORTAL
  ======================================== */
.portal-page {
   max-width: 1200px;
   margin: 0 auto;
   background: #eef3f5;
}
.page-shell {
   background: #ffffff;
}

/* ========================================
  OFFICIAL HEADER
  ======================================== */
.top-strip {
   height: 6px;
   background: #8B1E2D;
}
.official-header {
   background: #ffffff;
   padding: 26px 45px;
   display: flex;
   align-items: center;
   gap: 22px;
   border-bottom: 1px solid #d9d9d9;
}
.seal-logo {
   width: 95px;
   height: 95px;
   object-fit: contain;
}
.county-title {
   color: #123f52;
   font-size: 18px;
   font-weight: 700;
}
.board-title {
   color: #0B2D42;
   font-size: 40px;
   font-weight: 800;
   letter-spacing: .5px;
}
.portal-subtitle {
   color: #333333;
   font-size: 15px;
   margin-top: 4px;
}



/* ========================================
  HERO
  ======================================== */
.hero {
   background:
       linear-gradient(
           rgba(11, 45, 66, .88),
           rgba(11, 45, 66, .88)
       );
   background-size: cover;
   background-position: center;
   padding: 58px 40px;
   text-align: center;
   color: white;
   margin-bottom: 30px;
}
.hero h1 {
   color: white;
   font-size: 42px;
   font-weight: 800;
   margin: 0 0 8px;
}
.hero p {
   color: white;
   font-size: 16px;
   margin: 0;
}

/* ========================================
  CONTENT
  ======================================== */
.portal-content {
   padding: 0 32px 50px;
}
.search-help-grid {
   display: grid;
   grid-template-columns: 2fr 1fr;
   gap: 40px;
   align-items: start;
}
.section-title {
   color: #0B2D42;
   font-size: 27px;
   font-weight: 800;
   margin: 0 0 18px;
}

/* ========================================
  SEARCH FORM
  ======================================== */
.search-field {
   margin-bottom: 18px;
}
.search-field label {
   display: block;
   color: #0B2D42;
   font-weight: 700;
   margin-bottom: 7px;
}
.portal-input {
   width: 100%;
   min-height: 42px;
   padding: 9px 12px;
   border: 1px solid #b8c1ca;
   border-radius: 4px;
   background: white;
   color: #202833;
   box-sizing: border-box;
   outline: none;
}
.portal-input:focus {
   border-color: #123f52;
   box-shadow: 0 0 0 2px rgba(18, 63, 82, .12);
}

/* ========================================
  MORE OPTIONS
  ======================================== */
.more-options {
   margin: 8px 0 10px;
}
.more-options summary {
   background: #eef7f1;
   color: #1b5e20;
   border: 1px solid #b7d9c1;
   border-radius: 6px;
   padding: 10px 14px;
   font-weight: 600;
   cursor: pointer;
}
.more-options summary:hover {
   background: #e1f1e6;
}
.more-options-content {
   padding: 18px 4px 0;
}
.search-help-text {
   color: #333333;
   font-size: 13px;
   line-height: 1.5;
   margin: 10px 0 16px;
}

/* ========================================
  SECURITY
  ======================================== */
.security-box {
   margin: 12px 0;
   padding: 16px 18px;
   background: #f7f9fc;
   border-left: 5px solid #8B1E2D;
   border-top: 1px solid #d8dde6;
   border-right: 1px solid #d8dde6;
   border-bottom: 1px solid #d8dde6;
   border-radius: 8px;
}
.security-title {
   color: #140709;
   font-size: 18px;
   font-weight: 700;
   margin-bottom: 6px;
}
.security-text {
   color: #555;
   font-size: 14px;
   line-height: 1.5;
   margin-bottom: 12px;
}
.security-checkbox {
   display: flex;
   gap: 9px;
   align-items: center;
   color: #111827;
   font-size: 15px;
   cursor: pointer;
}
.security-checkbox input {
   width: 17px;
   height: 17px;
}

/* ========================================
  BUTTONS
  ======================================== */
.search-actions {
   margin-top: 16px;
   margin-bottom: 28px;
   display: flex;
   align-items: center;
   gap: 10px;
}
.portal-search-button,
.portal-clear-button {
   border: none;
   border-radius: 4px;
   padding: 9px 20px;
   font-weight: 700;
   text-decoration: none;
   cursor: pointer;
   font-size: 15px;
}
.portal-search-button {
   background: #123f52;
   color: white;
}
.portal-search-button:hover {
   background: #8B1E2D;
}
.portal-clear-button {
   background: #6c757d;
   color: white;
}
.portal-clear-button:hover {
   background: #555e65;
   color: white;
}

/* ========================================
  HELP CARD
  ======================================== */
.help-card {
   background: white;
   padding: 28px;
   border-radius: 6px;
   border-top: 5px solid #123f52;
   box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
   color: #1f2d3d;
}
.help-card h3 {
   color: #0B2D42;
   font-size: 26px;
   margin: 0 0 18px;
}
.help-card p {
   color: #1f2d3d;
   font-size: 15px;
   line-height: 1.5;
}

/* ========================================
  MORE INFORMATION
  ======================================== */
.info-card {
   background: white;
   margin-top: 32px;
   padding: 26px;
   border-left: 6px solid #8B1E2D;
   border-radius: 6px;
   box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
}
.info-card h3 {
   color: #0B2D42;
   font-size: 24px;
   margin: 0 0 10px;
}
.info-card p {
   color: #1f2d3d;
   font-size: 15px;
   margin-bottom: 20px;
}
.info-card a {
   display: inline-block;
   background: #123f52;
   color: white;
   padding: 10px 18px;
   border-radius: 4px;
   text-decoration: none;
   font-weight: 700;
}
.info-card a:hover {
   background: #8B1E2D;
}

/* ========================================
  VALIDATION
  ======================================== */
.portal-error {
   color: #b91c1c;
   background: #fee2e2;
   padding: 10px 12px;
   border-radius: 6px;
   margin-bottom: 18px;
}

/* ========================================
  RESULTS
  ======================================== */
.results-section {
   margin-top: 35px;
   border-top: 1px solid #ccd3da;
   padding-top: 25px;
}
.results-heading {
   color: #111827;
   font-size: 28px;
   font-weight: 800;
   margin-bottom: 12px;
}
.results-information {
   color: #111827;
   background: #f0f2f6;
   padding: 12px;
   border-radius: 6px;
   margin-bottom: 18px;
}
.no-results-message {
   color: #111827;
   background: #fff3cd;
   border: 1px solid #ffe69c;
   padding: 14px;
   border-radius: 6px;
}

/* =========================================
  MULTIPLE PIN RESULTS
  ========================================= */
.multiple-pin-message {
   margin-top: 8px;
   margin-bottom: 20px;
   font-size:13px;
   color: #5f6368;
   line-height: 1.4;
}
.pin-selector {
   margin-bottom: 4px;
}
.pin-selector label {
   display: block;
   margin-bottom: 8px;
   font-weight: 600;
}
.pin-selector select {
   width: 100%;
}
.multi-year-container {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 18px 0 24px;
   overflow: hidden;
}
.multi-year-header {
   background: #8b0015;
   color: white;
   font-size: 20px;
   font-weight: 700;
   padding: 14px 18px;
}
.multi-year-table-wrapper {
   width: 100%;
   overflow-x: hidden;
}
.multi-year-table {
   width: 100%;
   border-collapse: collapse;
   table-layout: fixed;
   font-size: 11px;
}
.multi-year-table th,
.multi-year-table td {
   border: 1px solid #d9e1e8;
   padding: 8px 4px;
   text-align: center;
   vertical-align: middle;
   overflow-wrap: anywhere;
}

/* Decision Status column only */
.multi-year-table thead tr:first-child > th:nth-child(3),
.multi-year-table tbody > tr > td:nth-child(3) {
   width: 90px;
}
.multi-year-table tbody > tr > td:nth-child(3) .status-badge {
   white-space: nowrap;
   padding: 4px 6px;
   font-size: 10px;
}
.multi-year-table th {
   background: #f1f5f9;
   font-weight: 700;
   color: #1b2733;
}
.multi-year-table tbody tr:nth-child(even) {
   background: #fafcfe;
}

/* =========================================
  ALL TAX YEARS - PROPERTY SUMMARY
  ========================================= */
.multi-year-summary {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 18px 0;
   overflow: hidden;
}
.multi-year-summary-header {
   background: #063b78;
   color: #ffffff;
   font-size: 20px;
   font-weight: 700;
   padding: 13px 18px;
}
.multi-year-summary-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   padding: 10px;
}
.multi-year-summary-item {
   padding: 12px 10px;
   text-align: center;
   border-right: 1px solid #d9e1e8;
}
.multi-year-summary-item:last-child {
   border-right: none;
}
.multi-year-summary-item span {
   display: block;
   font-size: 13px;
   margin-bottom: 5px;
   color: #334155;
}
.multi-year-summary-item strong {
   font-size: 15px;
   color: #10233f;
}

/* =========================================
  MULTI-YEAR ASSESSMENT HISTORY
  ========================================= */
.multi-year-container {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 18px 0;
   overflow: hidden;
}
.multi-year-header {
   background: #8b0015;
   color: #ffffff;
   font-size: 20px;
   font-weight: 700;
   padding: 13px 18px;
}
.multi-year-table-wrapper {
   width: 100%;
   overflow: hidden;
}
.multi-year-table {
   width: 100%;
   border-collapse: collapse;
   table-layout: fixed;
   font-size: 12px;
}
.multi-year-table th,
.multi-year-table td {
   border: 1px solid #d9e1e8;
   padding: 10px 5px;
   text-align: center;
   vertical-align: middle;
   overflow-wrap: anywhere;
}
.multi-year-table th {
   background: #f1f5f9;
   color: #1b2733;
   font-weight: 700;
}
.multi-year-table .group-header {
   background: #e4edf6;
   font-size: 13px;
   font-weight: 700;
}
.multi-year-table .difference-label {
   font-size: 9px;
   font-weight: 600;
}
.multi-year-table tbody tr:nth-child(even) {
   background: #fafcfe;
}
.multi-year-table .year-cell {
   font-weight: 700;
}
.multi-year-table .total-cell {
   font-weight: 700;
}
.multi-year-table .negative-value {
   color: #b42318;
   font-weight: 700;
}

/* =========================================
  CHANGE REASONS
  ========================================= */
.change-history-container {
   width: 100%;
   background: #ffffff;
   border: 1px solid #cbd8e6;
   border-radius: 8px;
   margin: 18px 0;
   overflow: hidden;
}
.change-history-header {
   background: #dcecf9;
   color: #123b66;
   font-size: 19px;
   font-weight: 700;
   padding: 12px 18px;
}
.change-history-table {
   width: 100%;
   border-collapse: collapse;
}
.change-history-table th,
.change-history-table td {
   border: 1px solid #d9e1e8;
   padding: 9px 14px;
}
.change-history-table th {
   background: #f4f8fc;
   color: #1b2733;
   text-align: left;
   font-weight: 700;
}
.change-history-table th:first-child,
.change-history-table td:first-child {
   width: 14%;
   text-align: center;
}
.change-history-table td:nth-child(2) {
   text-align: left;
   white-space: normal;
   overflow-wrap: anywhere;
}

/* =========================================
  PARTY AND PROPERTY DETAILS
  ========================================= */
.multi-party-container {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 18px 0;
   overflow: hidden;
}
.multi-party-header {
   background: #063b78;
   color: #ffffff;
   font-size: 20px;
   font-weight: 700;
   padding: 13px 18px;
}
.multi-party-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
}
.multi-party-grid > div {
   text-align: center;
   padding: 12px 15px;
   border-right: 1px solid #d9e1e8;
}
.multi-party-grid > div:last-child {
   border-right: none;
}
.multi-party-grid span {
   display: block;
   margin-bottom: 8px;
   font-size: 13px;
   color: #334155;
}
.multi-party-grid strong {
   font-size: 14px;
   color: #10233f;
}
.multi-status-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 4px 6px;

    border-radius: 5px;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

}

.multi-status-badge.completed {

    background: #dff3e4;

    color: #176b35;

    border: 1px solid #b9dfc4;

}

.multi-status-badge.other {

    background: #edf1f5;

    color: #364152;

    border: 1px solid #d3dae2;

}
 

.multi-year-table .total-cell {

    font-weight: 700;

}

.multi-year-table .negative-value {

    color: #b42318;

    font-weight: 700;

}
 

/* =========================================
  MULTI-YEAR PDF BUTTON
  ========================================= */
.multi-year-pdf-container {
   margin: 18px 0 28px;
}
.pdf-download-btn {

    display: inline-block;

    background: #063b78;

    color: white;

    padding: 11px 18px;

    border-radius: 4px;

    text-decoration: none;

    font-weight: 700;

    border: none;

    cursor: pointer;

}

.pdf-download-btn:hover {

    background: #064887;

    color: white;

    text-decoration: none;

}
 
/* ========================================
  CASE SUMMARY
  ======================================== */
.case-summary-container {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 18px 0 24px;
   overflow: hidden;
   box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
}
.case-summary-header {
   background: #063b78;
   color: #ffffff;
   font-size: 20px;
   font-weight: 700;
   padding: 13px 18px;
}
.case-summary-table {
   display: grid;
   grid-template-columns: 1.2fr 1.2fr 0.8fr 1fr 1fr 1fr;
   width: 100%;
   padding: 14px;
   box-sizing: border-box;
}
.case-summary-cell {
   padding: 14px 10px;
   text-align: center;
   border-right: 1px solid #d9dee5;
   border-bottom: 1px solid #d9dee5;
   overflow-wrap: anywhere;
}
.case-summary-cell:nth-child(6),
.case-summary-cell:nth-child(12) {
   border-right: none;
}
.header-cell {
   background: #f4f6f8;
   color: #1b2733;
   font-size: 14px;
   font-weight: 700;
   border-top: 1px solid #d9dee5;
}
.value-cell {
   background: white;
   color: #202833;
   font-size: 15px;
   font-weight: 600;
}
.status-badge {
   display: inline-block;
   padding: 5px 12px;
   background: #e8f6ed;
   color: #176b37;
   border: 1px solid #91cba4;
   border-radius: 6px;
   font-weight: 700;
}

/* ========================================
  ASSESSMENT COMPARISON
  ======================================== */
.assessment-container {
   width: 100%;
   background: #fff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 22px 0;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.assessment-header {
   background: #8B1E2D;
   color: #fff;
   padding: 14px 18px;
   font-size: 20px;
   font-weight: 700;
}
.assessment-table {
   display: grid;
   grid-template-columns: 1.3fr 1fr 1fr;
   padding: 14px;
}
.assessment-cell {
   padding: 14px;
   border: 1px solid #dde3ea;
   text-align: center;
   background: #fff;
}
.assessment-column-heading {
   background: #f5f7fa;
   color: #1b2733;
   font-weight: 700;
}
.assessment-label {
   font-weight: 600;
   text-align: left;
}
.total-row {
   font-weight: 700;
}
.difference-value {
   color: #a51e2d;
   font-weight: 700;
}

/* ========================================
  CHANGE REASON
  ======================================== */
.change-reason-container {
   width: 100%;
   background: #eef9f1;
   border: 1px solid #78b98a;
   border-radius: 8px;
   padding: 16px 18px;
   margin: 14px 0 22px;
   box-sizing: border-box;
}
.change-reason-title {
   color: #176b37;
   font-size: 17px;
   font-weight: 700;
   margin-bottom: 8px;
}
.change-reason-text {
   color: #24372c;
   font-size: 15px;
   line-height: 1.5;
}

/* ========================================
  PARTY & PROPERTY
  ======================================== */
.party-property-container {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d7e0ea;
   border-radius: 8px;
   margin: 18px 0 30px;
   overflow: hidden;
   box-shadow: 0 2px 7px rgba(0, 0, 0, .08);
}
.party-property-header {
   background: #063b78;
   color: #ffffff;
   font-size: 20px;
   font-weight: 700;
   padding: 13px 18px;
}
.party-property-table {
   display: grid;
   grid-template-columns: 1fr 1.3fr 1.5fr;
   width: 100%;
   padding: 14px;
   box-sizing: border-box;
}
.party-property-cell {
   padding: 14px 12px;
   text-align: center;
   border: 1px solid #d9dee5;
   overflow-wrap: anywhere;
}
.party-property-heading {
   background: #f4f6f8;
   color: #1b2733;
   font-size: 14px;
   font-weight: 700;
}
.party-property-value {
   background: #ffffff;
   color: #202833;
   font-size: 15px;
   font-weight: 500;
}

/* ========================================
  RESPONSIVE
  ======================================== */
@media (max-width: 900px) {
   .official-header {
       padding: 20px;
   }
   .seal-logo {
       width: 75px;
       height: 75px;
   }
   .board-title {
       font-size: 30px;
   }
   .hero h1 {
       font-size: 32px;
   }
   .search-help-grid {
       grid-template-columns: 1fr;
   }
   .case-summary-table {
       grid-template-columns: 1fr;
   }
   .assessment-table {
       grid-template-columns: 1fr;
   }
   .party-property-table {
       grid-template-columns: 1fr;
   }

}


/* Required field asterisk */

.required-star {

    color: #c62828;

    font-weight: 700;

    margin-left: 2px;

}

/* Additional filters section - Tax Year and Township */

.additional-filter-title {

    font-weight: 600;

    margin-top: 18px;

    margin-bottom: 8px;

}

/* Search instruction note */

.search-instruction {

    background-color: #eef6ff;

    border: 1px solid #cfe2f5;

    border-left: 4px solid #0b5f8a;

    padding: 12px 14px;

    margin-bottom: 18px;

    border-radius: 4px;

    line-height: 1.5;

}
/*search instruction note */
/* Search instruction note */
.search-instruction {
   background-color: #eef6ff;
   border: 1px solid #cfe2f5;
   border-left: 4px solid #0b5f8a;
   padding: 12px 14px;
   margin-bottom: 18px;
   border-radius: 4px;
   line-height: 1.5;
}
/* Optional additional filters container - Tax Year and Township */
.additional-filters-box {
   background-color: #f5f8fa;
   border: 1px solid #d7e0e6;
   border-left: 4px solid #5c7f8f;
   border-radius: 4px;
   padding: 16px;
   margin-top: 18px;
   margin-bottom: 18px;
}
/* Additional filters heading */
.additional-filter-title {
   font-weight: 700;
   margin-bottom: 12px;
}
.additional-filter-title span {
   font-weight: 500;
}
/* Tax Year and Township side-by-side layout */
.additional-filters-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px;
}
/* =========================================

   AUTOCOMPLETE SUGGESTIONS

   ========================================= */

.autocomplete-suggestions {

    display: none;

    width: 100%;

    max-height: 250px;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-top: none;

    border-radius: 0 0 6px 6px;

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);

    position: relative;

    z-index: 1000;

}

.autocomplete-suggestion-item {

    padding: 10px 12px;

    cursor: pointer;

    font-size: 14px;

    border-bottom: 1px solid #e5e7eb;

    color: #1f2937;

    background: #ffffff;

}

.autocomplete-suggestion-item:last-child {

    border-bottom: none;

}

.autocomplete-suggestion-item:hover {

    background: #eef4fb;

    color: #063b78;

}

.autocomplete-no-results {

    padding: 10px 12px;

    font-size: 14px;

    color: #6b7280;

    background: #ffffff;
}

/* Keep long statuses inside the assessment history column */
.multi-year-table .status-badge {
   display: inline-block;
   max-width: 100%;
   box-sizing: border-box;
   white-space: normal;
   overflow-wrap: anywhere;
   line-height: 1.3;
}

 
 