﻿.introduction {
    background-color: #e9f4fc;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px 10px;
}

.search-all {
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px;
    margin-bottom: 20px;
}

.search-browse {
    background-color: #1f4350;
    border-radius: 8px 8px 0 0;
    padding: 20px;
}

.search-results {
    background-color: #f5f5f5;
    border-radius: 0 0 8px 8px;
    padding: 20px;
}

.search-input-container {
    align-items: center;
    display: flex;
    width: 100%;
}

.search-input-group {
    flex-grow: 1;
}

.search-input-filter {
    position: relative;
    width: 145px;
}

.search-input-all {
    background-color: #fff;
    border: 2px solid #c6c6c6;
}

.search-icon {
    border-radius: 8px 0 0 8px;
    border-right: none;
    color: #6c757d;
}

.search-input {
    border-left: none;
    border-right: none;
}

.search-clear {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.search-filter-button {
    background-color: #0090d4 !important;
    border: 2px solid #0090d4 !important;
    border-radius: 8px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    height: 44px;
    margin-left: 25px;
    position: relative;
    width: 115px;
}

    .search-filter-button:active, .search-filter-button:focus, .search-filter-button:hover {
        background-color: #1f4350 !important;
        border-color: #1f4350 !important;
    }

.search-filter-count {
    align-items: center;
    background-color: #fff;
    border: 2px solid #0090d4;
    border-radius: 50%;
    color: #0090d4;
    font-size: 0.75rem;
    font-weight: bold;
    height: 24px;
    justify-content: center;
    position: absolute;
    right: -8px;
    top: -8px;
    width: 24px;
}

.search-filter-button:hover .search-filter-count,
.search-filter-button:active .search-filter-count,
.search-filter-button:focus .search-filter-count,
.search-filter-button:focus-visible .search-filter-count {
    border-color: #1f4350;
    color: #1f4350;
}

.search-filter-button .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}

.search-filter-button .fa-chevron-down.rotated {
    transform: rotate(180deg);
}

.search-filter-info {
    align-items: center;
    background-color: #e6f4ff;
    border: 2px solid #0090d4;
    border-radius: 8px;
    display: flex;
    margin: 12px 0;
    padding: 12px 24px;
}

.search-filter-info-text {
    color: #0090d4;
    font-size: 16px;
    font-weight: 700;
}

.search-action-count {
    display: flex;
    padding-bottom: 15px;
    padding-top: 10px;
    width: 100%;
}

.search-action-count-showing {
    flex-grow: 1;
}

.search-action-count-deselect-disabled {
    background-color: transparent;
    border: none;
    color: #878787;
    cursor: not-allowed;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    font-weight: bold;
    text-decoration: underline;
    text-align: right;
}

.search-action-count-deselect {
    background-color: transparent;
    border: none;
    color: #1f4350;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    font-weight: bold;
    text-decoration: underline;
    text-align: right;
}

.search-action-all {
    max-height: 67vh;
    min-height: 450px;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 2px 5px 2px 5px;
}

.search-action-list {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.search-action-item {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    min-height: 132px;
    padding: 20px 5px;
}

    .search-action-item:hover, .search-action-item:focus-within {
        border: 2px solid #0090d4;
        box-shadow: rgba(0, 0, 0, 0.15) 0 4px 12px;
        transition: 0.2s ease-in-out;
        transform: translateY(-2px);
    }

.search-action-item-selected {
    background-color: #e8f5e9;
    border: 2px solid #6da32f;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    min-height: 132px;
    padding: 20px 5px;
}

    .search-action-item-selected:hover, .search-action-item-selected:focus-within {
        border: 2px solid #6da32f;
        box-shadow: rgba(0, 0, 0, 0.15) 0 4px 12px;
        transition: 0.2s ease-in-out;
        transform: translateY(-2px);
    }

.search-action-item-description {
    flex-grow: 1;
}

.search-action-supplementary-wrapper {
    display: block;
}

.search-action-supplementary-title {
    margin-right: 10px;
}

.search-action-supplementary {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    margin: 1px 2px;
    padding: 1px;
    text-align: center;
    width: 70px;
}

.search-action-supplementary-selected {
    background-color: #6da32f;
    border: 1px solid #fff;
    color: #fff;
}

.search-action-supplementary-inactive {
    background-color: #ccc;
    border: 1px solid #ccc;
    color: #fff;
    cursor: not-allowed
}

.search-action-item-check {
    align-items: center;
    display: flex;
    height: 100%;
    margin-top: 0;
}

.search-action-item-buttons {
    display: block;
}

.search-action-item-button {
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    margin-right: 5px;
    padding: 0 8px;
}

.search-action-item-code {
    background-color: #7b3010;
}

.search-action-item-value {
    background-color: #025328;
}

.search-action-item-value-text {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.search-action-item-capped {
    background-color: #c8d400;
    color: #1f4350;
}

.capped-hyperlink:hover { 
    text-decoration: underline;
}

.defra-hyperlink {
    color: #0090d4;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
    text-decoration: underline;
    transition: color 0.2s;
}

.cost-hyperlink {
    color: #0090d4;
    font-size: 12pt;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.filter-all {
    background-color: #fff;
    border: 2px solid #c6c6c6;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.15) 0 4px 12px;
    max-height: 500px;
    min-height: 100px;
    min-width: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 15px;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 250px;
    z-index: 1000;
}

.filter-all-flex {
    display: flex;
}

.filter-all-input {
    width: 25px;
}

.filter-all-label {
    flex-grow: 1;
}

.filter-all-50 {
    width: 50%;
}

.filter-type-areaofinterest, .filter-type-landtype, .filter-type-paymentrange {
    cursor: pointer;
}

.filter-clear-all {
    background-color: #fff;
    border: none;
    color: #e42313;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

    .filter-clear-all:active, .filter-clear-all:focus, .filter-clear-all:hover {
        color: #c41e0a;
    }

.proceed-all {
    background-color: #fff;
    border-top: 2px solid #c6c6c6;
    bottom: 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0 -4px 6px;
    display: flex;
    height: 60px;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 1000;
}

.proceed-selected {
    padding-left: 60px;
    padding-top: 10px;
    text-align: left;
    width: 50%;
}

.proceed-button {
    padding-right: 60px;
    padding-top: 10px;
    text-align: right;
    width: 50%;
}

@media (max-width: 768px) {
    .proceed-selected {
        padding-left: 20px;
    }

    .proceed-button {
        padding-right: 20px;
    }
}

.proceed-selected-icon {
    font-size: 20px;
}

.adjustCookieButton {
    bottom: 65px !important;
}

.selected-area {
    background-color: white;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px;
    margin-bottom: 20px;
    padding: 1rem;
}

.selected-all {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin: 10px;
    padding: 20px;
}

.selected-action-item {
    display: flex;
    width: 100%;
}

.selected-action-item-description {
    flex-grow: 1;
}

.selected-action-item-delete {
    width: 110px;
}

.selected-action-item-delete-text {
    color: #e42313;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    padding-top: 14px;
}

    .selected-action-item-delete-text:hover .selected-action-item-delete-icon {
        transform: scale(1.2);
    }

.selected-action-item-delete-icon {
    font-size: 18px;
    padding-top: 2px;
    transition: font-size 0.2s ease-in-out;
}

.selected-action-costs-calculated-container {
    display: flex;
    width: 100%;
}

.selected-action-costs-calculated-blank {
    flex-grow: 1;
}

.selected-action-costs-calculated-button {
    width: 190px;
}

.selected-action-costs-calculated {
    background-color: transparent;
    border: none;
    color: #0090d4;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    font-weight: bold;
    text-decoration: underline;
    width: 190px;
}

.selected-action-inputs {
    background-color: #eeeeee;
    border-radius: 4px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 10px;
}

.selected-action-input-label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    padding-left: 10px;
}

.selected-action-payment {
    background-color: #dfd5b4;
    border: 1px solid #d0c6a5;
    border-radius: 4px;
    margin-top: 8px;
    padding: 10px;
}

.summary-title {
    padding-bottom: 10px;
}

.exceeded-limit-wrapper {
    background-color: #fff3cd;
    border: 2px solid #ffd800;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 10px 15px 10px;
    width: 100%;
}

.exceeded-limit-area {
    align-items: center;
    display: flex;
    width: 100%;
}

.exceeded-limit-warning {
    min-width: 50px;
    position: relative;
    text-align: center;
    width: 70px;
}

.exceeded-limit-warning-text {
    color: #ffd800;
    font-size: 24px;
}

.exceeded-limit-message {
    flex-grow: 1;
}

.summary-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

    .summary-wrapper > .summary-block {
        width: calc((100% - 20px) / 3);
    }

@media (max-width: 991px) {
    .summary-wrapper > .summary-block {
        width: 100%;
    }
}

.summary-block {
    border-radius: 8px;
    padding: 15px 10px 25px 10px;
    position: relative;
}

.summary-payment {
    background-color: #0090d4;
}

.summary-payment-exceeded {
    background-color: #ffd800;
}

.summary-costs {
    background-color: #1f4350;
}

.summary-benefit-positive {
    background-color: #6da32f;
}

.summary-benefit-negative {
    background-color: #e42313;
}

.summary-item-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 5px;
}

.summary-item-title-exceeded {
    color: #1f4350;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 5px;
}

.summary-item-value {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.summary-item-value-exceeded {
    color: #1f4350;
    font-size: 28px;
    font-weight: bold;
}

.summary-item-value-exceeded-note {
    color: #1f4350;
    font-size: 14px;
    font-weight: bold;
    padding-top: 10px;
}

.summary-item-value-exceeded-exclamation {
    color: #1f4350;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
}

.summary-breakdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-breakdown-item {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin: 10px;
    padding: 15px 10px 15px 10px;
}

.summary-breakdown-item-positive {
    border-color: #6da32f;
}

.summary-breakdown-item-negative {
    border-color: #e42313;
}

.summary-breakdown-item-title {
    font-size: 12px;
    font-weight: 600;
}

.summary-breakdown-item-value {
    color: #1f4350;
    font-size: 20px;
    font-weight: bold;
}

.summary-breakdown-item-value-positive {
    color: #6da32f;
    font-size: 20px;
    font-weight: bold;
}

.summary-breakdown-item-value-negative {
    color: #e42313;
    font-size: 20px;
    font-weight: bold;
}

.summary-buttons {
    display: flex;
    gap: 10px;
    justify-content: right;
}

.summary-action-name {
    padding-bottom: 10px;
}

.summary-action-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

    .summary-action-wrapper > .summary-action-block {
        width: calc((100% - 20px) / 3);
    }

@media (max-width: 767px) {
    .summary-action-wrapper > .summary-action-block {
         width: 100%;
    }
}

.summary-action-block {
    position: relative;
}

.summary-action-block-value {
    text-align: left;
}

@media (max-width: 767px) {
    .summary-action-block-value {
        text-align: right;
    }
}

.previous-item-list {
    max-height: 250px;
    overflow-y: auto;
}

.previous-item {
    background-color: #eee;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 10px;
}

    .previous-item:hover {
        background-color: #ccc;
    }

@media (min-width: 768px) {
    .previous-item {
        background-color: #fff;
        border: none;
        border-radius: 0;
        padding: 8px;
    }

        .previous-item:hover {
            background-color: #eee;
        }
}

.previous-item-button {
    margin: 8px 0;
}

.toggle-container {
    align-items: center;
    display: flex;
    width: 100%;
}

.toggle-group-buttons {
    flex-grow: 1;
    margin-left: 10px;
}

.toggle-button {
    background-color: #fff;
    border: 1px solid #575756;
    border-radius: 6px;
    color: #575756;
    font-size: 13px;
    font-weight: bold;
    margin-right: 5px;
    padding: 3px 11px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    transition: 0.2s;
    transform: translateY(0);
}

    .toggle-button:hover {
        background-color: #eee;
        transition: 0.2s;
        transform: translateY(-1px);
    }

    .toggle-button:active {
        background-color: #eee;
        transform: translateY(0);
    }

.toggle-button-selected {
    background-color: #fff;
    border: 2px solid #6da32f;
    color: #6da32f;
    padding: 2px 10px;
}

.toggle-level-up {
    background-color: #fff;
    border: 1px solid #575756;
    border-radius: 4px;
    color: #575756;
    font-size: 13px;
    font-weight: bold;
    margin-right: 10px;
    padding: 2px 10px;
}

    .toggle-level-up:hover {
        background-color: #eee;
        transform: translateY(-1px);
    }

.toggle-level-text {
    margin-right: 4px;
}

@media print {
    body {
        -webkit-print-color-adjust: exact; /* For Chrome, Safari, and Edge */
        color-adjust: exact; /* Legacy Firefox / Old Spec */
    }
}