﻿/* Residents Page*/
/* Residents Page MudGrid */
.professional-grid .mud-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.professional-grid .mud-table-head {
    position: sticky;
    top: 0;
    z-index: 2;
}

    .professional-grid .mud-table-head th {
        font-weight: 600;
        letter-spacing: .2px;
        white-space: nowrap;
    }

.professional-grid .mud-table-body td {
    vertical-align: middle;
}

.professional-grid .mud-table-row:hover td {
    background: rgba(0,0,0,0.03);
}

.col-id {
    width: 70px;
    min-width: 80px;
    max-width: 80px;
}

.col-address {
    width: 200px;
    min-width: 200px;
    max-width: 600px;
}

.col-postcode {
    width: 110px;
    min-width: 110px;
    max-width: 110px;

}

.col-district {
    width: 90px;
    min-width: 80px;
    max-width: 80px;
}

.col-pledge {
    width: 40px;
    text-align: center;
    min-width: 40px;
    max-width: 40px;
}

/* Header: show full title */
.col-pledge-header {
    min-width: 40px;
    white-space: nowrap;
}

.col-flag {
    width: 70px;
    text-align: center;
}

/* First column: open icon */
.col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/*.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}*/

/* Cells: stay compact */
.col-pledge {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
}

/* Boolean icon columns */
.col-flag {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
}

.row-clickable .mud-table-row {
    cursor: pointer;
}


/* ResidentDetails Page*/
/* Scroll only the issues list area; keep header + Add Issue visible */
.resident-issues-scroll {
    overflow: auto;
    min-height: 0;
    /* viewport height minus:
       - your fixed app bar
       - your footer
       - and the resident header section height (approx)
       Adjust as needed once visually verified.
    */
    max-height: calc(100vh - 420px);
}



/* Insights Search Page */
.rb-page {
    max-width: 920px;
    margin: 48px auto;
    padding: 0 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.rb-logo {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 8px 0 18px;
}

.rb-input {
    width: 100%; 
    padding: 14px 40px 14px 16px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box; 
}
    .rb-input:focus {
        border-color: #1a73e8;
        box-shadow: 0 1px 6px rgba(32,33,36,.28);
    }

.rb-latest-link {
    margin-top: 1px;
    font-size: 13px;
    padding: 9px;
}
    .rb-latest-link a {
        color: #1a73e8;
        text-decoration: underline;
        cursor: pointer;
    }
        .rb-latest-link a:hover {
            opacity: .85;
        }

.rb-search {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.rb-input {
    padding-right: 40px; /* make room for the clear button */
}

.rb-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0; 
}

.rb-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
}

    .rb-clear:hover {
        color: #202124;
    }

.rb-btn {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #dadce0;
    background: #fff;
    cursor: pointer;
}

    .rb-btn:disabled {
        opacity: 0.6;
        cursor: default;
    }

.rb-empty {
    color: #5f6368;
    margin-top: 12px;
}

.rb-results {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.rb-result {
    padding: 14px 14px;
    border: 1px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    color: #202124;
}

.rb-title {
    font-size: 18px;
    font-weight: 650;
    margin-bottom: 4px;
}

.rb-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 8px;
}

.rb-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #003b44; /* dark teal */
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.rb-snippet {
    color: #202124;
    line-height: 1.35;
}

.rb-topbar {
    margin-bottom: 14px;
}

.rb-link {
    border: none;
    background: transparent;
    color: #1a73e8;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.rb-feedback {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #f8f9fa;
    color: #202124;
    font-size: 14px;
}

.rb-actions {
    display: flex;
    gap: 10px;
    margin: 10px 0 12px;
    flex-wrap: wrap;
}

.rb-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #5f6368;
    user-select: none;
}

.rb-card {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.rb-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Top row: title left, pill right  */
.rb-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    /* Ensure title wraps nicely */
    .rb-card-top .rb-h1 {
        margin: 0;
    }

/* Date on its own line, left aligned */
.rb-card-header .rb-date {
    font-size: 12px;
    opacity: 0.85;
}

.rb-date {
    font-size: 13px;
    color: #5f6368;
    min-width: 92px;
    padding: 1px 1px;
    margin-bottom: 6px;
}

.rb-h1 {
    font-size: 26px;
    margin: 10px 0 14px;
    color: #202124;
}

.rb-h2 {
    font-size: 16px;
    margin: 18px 0 10px;
    color: #5f6368;
}

.rb-desc {
    white-space: pre-wrap;
}

.rb-list {
    display: grid;
    gap: 10px;
}

.rb-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
}

.rb-same {
    color: #5f6368;
    font-style: italic;
}

.rb-mark {
    padding: 0 2px;
    border-radius: 4px;
}

.rb-diff {
    background: #cfe3ff; /* slightly stronger Google-ish blue */
    border: 1px solid #9cc2ff;
    border-radius: 4px;
    padding: 0 2px;
}

.rb-add {
    background: #d7f5dd;
    border: 1px solid #8bd39b;
    border-radius: 4px;
    padding: 0 2px;
}

.rb-unchanged {
    color: #5f6368;
    font-style: italic;
    padding: 4px 0;
}


/* Home Page */
.dw-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

/* Each chart wrapper should be allowed to fill its grid cell */
.dw-card {
    max-width: 100%;
    margin: 0;
}

    .dw-card iframe {
        display: block;
        width: 100%;
    }

/* Stack on small screens */
@media (max-width: 900px) {
    .dw-row {
        grid-template-columns: 1fr;
    }
}