.fisheries-main {
    background: #f1f6f2;
}

.fish-dashboard {
    padding: 16px 0 30px;
}

.fish-hero {
    position: relative;
    min-height: 176px;
    margin: 0 0 14px;
    padding: 26px 32px;
    overflow: hidden;
    background: linear-gradient(90deg, #f7fbf9 0%, #f7fbf9 35%, rgba(247, 251, 249, .82) 54%, rgba(247, 251, 249, .04) 80%), url("img/fisheries-hero.png") center 53% / cover;
}

.fish-hero-content {
    position: relative;
    z-index: 1;
    max-width: 610px;
}

.fish-hero .fish-hero-content > span {
    color: #b68823;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.fish-hero h1 {
    margin: 8px 0;
    color: #103c3d;
    font-size: clamp(27px, 2.3vw, 36px);
    font-weight: 600;
}

.fish-hero p {
    max-width: 560px;
    color: #405c57;
    font-size: 14px;
    line-height: 1.55;
}

.kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 18px;
}

.kpi-grid article {
    --kpi-color: #176b52;
    --kpi-soft: #edf8f1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 3px 10px;
    min-height: 70px;
    padding: 11px 15px;
    border: 1px solid color-mix(in srgb, var(--kpi-color) 18%, #fff);
    border-radius: 0;
    background: linear-gradient(135deg, var(--kpi-soft), #fff);
    box-shadow: var(--shadow);
}

.kpi-grid article:nth-child(2) {
    --kpi-color: #2f78a8;
    --kpi-soft: #eef7fb;
}

.kpi-grid article:nth-child(3) {
    --kpi-color: #c77a16;
    --kpi-soft: #fff7e9;
}

.kpi-grid article:nth-child(4) {
    --kpi-color: #7b5aa6;
    --kpi-soft: #f7f2fb;
}

.kpi-grid article > span {
    grid-column: 1;
    grid-row: 1;
    color: color-mix(in srgb, var(--kpi-color) 70%, #6f7f79);
    font-size: 11px;
    font-weight: 500;
}

.kpi-grid article strong {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #173d34;
    font-size: 22px;
    font-weight: 500;
}

.kpi-grid article small {
    grid-column: 1;
    grid-row: 2;
    color: #7d8b86;
    font-size: 10px;
}

.primary-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(360px, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.primary-grid .panel {
    border-color: #d9e6dd;
    box-shadow: 0 3px 13px rgba(17, 58, 45, .06);
}

.primary-grid .panel > header {
    min-height: 58px;
}

.primary-grid .panel > header strong {
    color: #123f42;
    font-size: 17px;
    font-weight: 650;
}

.map-filters input,
.map-filters select {
    min-width: 0;
    font-size: 12px;
}

.fish-map {
    height: 385px;
    background: #9dd2e9;
}

.fish-map .fish-port-marker {
    width: 11px !important;
    height: 11px !important;
    margin: -5px 0 0 -5px !important;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #115d67;
    box-shadow: 0 0 0 1px rgba(15, 65, 70, .55), 0 1px 3px rgba(0, 0, 0, .22);
}

.fish-map .fish-port-marker::after {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #e6b638;
    content: "";
}

.fish-map-detail {
    position: absolute;
    z-index: 750;
    top: 12px;
    right: 12px;
    width: min(254px, calc(100% - 24px));
    padding: 11px 12px;
    border: 1px solid #d6e5df;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17, 48, 46, .17);
}

.fish-map-detail[hidden] {
    display: none;
}

.fish-map-detail-close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #536c65;
    font: 20px/1 Arial, sans-serif;
    cursor: pointer;
}

.fish-map-detail-close:hover,
.fish-map-detail-close:focus-visible {
    color: #123f42;
    background: #edf4ef;
}

.fish-map .fish-popup h3 {
    margin: 0 18px 2px 0;
    color: #123f42;
    font-size: 13px;
    line-height: 1.25;
}

.fish-map .fish-popup > span {
    color: #698079;
    font-size: 10px;
}

.fish-map .fish-popup dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
    margin: 8px 0 0;
}

.fish-map .fish-popup dl div {
    min-width: 0;
    padding: 4px 0;
    border-top: 1px solid #e9efeb;
    background: transparent;
}

.fish-map .fish-popup dt {
    color: #61766e;
    font-size: 9px;
    line-height: 1.2;
}

.fish-map .fish-popup dd {
    margin: 2px 0 0;
    color: #123f42;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.department-table-wrap {
    height: 426px;
}

.department-panel th,
.department-panel td {
    padding: 0 9px;
    font-size: 11px;
}

.department-panel th {
    font-size: 10px;
    line-height: 1.2;
}

.fish-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.fish-access-grid > * {
    min-width: 0;
    min-height: 205px;
    margin: 0;
    border: 1px solid #d9e6dd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(17, 58, 45, .06);
}

.fish-access-grid .phase-two-entry {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    background: #fff;
}

.fish-access-grid .phase-two-entry__number {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    font-size: 18px;
}

.fish-access-grid .phase-two-entry span {
    color: #9b771f;
    font-size: 11px;
}

.fish-access-grid .phase-two-entry h2 {
    margin: 4px 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 650;
}

.fish-access-grid .phase-two-entry p,
.fish-access-grid .aquaculture-note p {
    color: #536c65;
    font-size: 12px;
    line-height: 1.45;
}

.fish-access-grid .phase-two-entry > a {
    margin-top: auto;
    font-size: 12px;
}

.fish-access-grid .aquaculture-note {
    padding: 19px;
    background: linear-gradient(140deg, #f5faf7, #e8f3ec);
}

.fish-access-grid .aquaculture-note strong {
    display: block;
    margin-bottom: 16px;
    color: #123f42;
    font-size: 19px;
    font-weight: 650;
}

.fish-secondary-kpis {
    display: flex;
    gap: 12px;
    margin: 0 0 14px;
}

.fish-secondary-kpis article {
    display: flex;
    gap: 9px;
    align-items: baseline;
    padding: 10px 14px;
    border: 1px solid #d9e6dd;
    border-radius: 9px;
    background: #fff;
    color: #526c64;
    font-size: 12px;
}

.fish-secondary-kpis strong {
    color: #123f42;
    font-size: 16px;
}

.fish-secondary-kpis small {
    color: #6b817b;
}

@media (max-width: 1250px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .primary-grid { grid-template-columns: 1fr; }
    .department-table-wrap { height: auto; max-height: 380px; }
}

@media (max-width: 950px) {
    .fish-access-grid { grid-template-columns: 1fr; }
    .fish-access-grid > * { min-height: auto; }
}

@media (max-width: 650px) {
    .fish-hero { min-height: 210px; padding: 18px; background-position: 62% center; }
    .fish-hero::before { position: absolute; inset: 0; content: ""; background: rgba(247, 251, 249, .7); }
    .fish-hero p { font-size: 13px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .kpi-grid article { grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; }
    .kpi-grid article > span, .kpi-grid article small { grid-column: 1; }
    .kpi-grid article strong { grid-column: 2; grid-row: 1 / 3; }
    .fish-secondary-kpis { flex-direction: column; }
    .department-table-wrap { overflow-x: auto; }
    .department-panel table { min-width: 570px; }
}
