﻿
@import url('https://fonts.googleapis.com/css2?family=Poppins+Display:wght@600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary: #1a2e4a;
    --primary-light: #2a4a72;
    --accent: #c8a96e;
    --surface: #f8f7f4;
    --border: #ddd8ce;
    --text-main: #1a2e4a;
    --text-muted: #6b7280;
    --white: #ffffff;
    --row-alt: #f3f1ed;
    --row-hover: #eae6de;
    --info-bg: #eef4fb;
    --warn-bg: #fdf8ee;
    --warn-border: #e8d59a;
}

.appraisal-wrapper {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Page Title ── */
.page-title {
    font-family: 'Poppins', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

/* ── Alert ── */
.appraisal-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

    .appraisal-alert.info {
        background: var(--info-bg);
        border: 1px solid #b6d0ef;
        color: var(--primary);
    }

    .appraisal-alert.warning {
        background: var(--warn-bg);
        border: 1px solid var(--warn-border);
        color: #7a5c10;
    }

    .appraisal-alert::before {
        font-size: 1rem;
        line-height: 1.4;
    }

    .appraisal-alert.info::before {
        content: "ℹ";
    }

    .appraisal-alert.warning::before {
        content: "⚠";
    }

/* ── Create link ── */
.create-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    transition: background 0.2s;
}

    .create-link:hover {
        background: var(--primary-light);
        color: var(--white);
    }

    .create-link::before {
        content: "+";
        font-size: 1.1rem;
    }

/* ── Table ── */
.appraisal-table-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.appraisal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

    .appraisal-table thead tr {
        background: var(--primary);
        color: var(--white);
    }

    .appraisal-table thead th {
        padding: 0.85rem 1.1rem;
        font-weight: 600;
        font-size: 0.75rem;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        text-align: left;
        border: none;
        white-space: nowrap;
    }

    .appraisal-table tbody tr {
        border-bottom: 1px solid var(--border);
        transition: background 0.15s;
    }

        .appraisal-table tbody tr:nth-child(even) {
            background: var(--row-alt);
        }

        .appraisal-table tbody tr:last-child {
            border-bottom: none;
        }

        .appraisal-table tbody tr:hover {
            background: var(--row-hover);
        }

    .appraisal-table tbody td {
        padding: 0.85rem 1.1rem;
        color: var(--text-main);
        vertical-align: middle;
        line-height: 1.5;
        border: none;
    }

/* ── Cell helpers ── */
.ref-no {
    font-weight: 600;
    color: var(--primary-light);
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: var(--info-bg);
    color: var(--primary);
    border: 1px solid #b6d0ef;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

    .view-link:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--white);
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .appraisal-table thead th,
    .appraisal-table tbody td {
        padding: 0.7rem 0.75rem;
    }
}


