:root {
    --primary: #1f4f7a;
    --primary-dark: #173a59;
    --secondary: #f5f7fa;
    --accent: #dbe7f2;
    --text: #1c2430;
    --muted: #6b7280;
    --border: #d8dee8;
    --success: #198754;
    --danger: #c0392b;
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef2f6;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 24px 0;
    box-shadow: var(--shadow);
}

.site-title {
    margin: 0;
    font-size: 1.9rem;
}

.site-tagline {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 600;
    color: var(--text);
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.main-content {
    flex: 1;
    padding: 32px 0 48px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-box {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.feature-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.form-wrap {
    max-width: 460px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
}

button,
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background: #fdecea;
    color: var(--danger);
    border: 1px solid #f5c2c0;
}

.alert-success {
    background: #eaf7ef;
    color: var(--success);
    border: 1px solid #bfe3ca;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 22px 0;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
}

.muted {
    color: var(--muted);
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px 0;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        padding: 22px;
    }
}
textarea,
select,
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.table-responsive {
    margin-top: 24px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--secondary);
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-open,
.status-new {
    background: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-resolved,
.status-answered {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #e5e7eb;
    color: #374151;
}

.page-actions {
    margin-top: 20px;
}

.small-text {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
.feature-box form {
    margin-top: 16px;
}
}
.timeline {
    margin-top: 14px;
    padding-left: 18px;
    border-left: 3px solid var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
    padding-left: 14px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.timeline-notes {
    margin: 0;
}
.filter-bar .page-actions {
    margin-top: 8px;
}

.row-denied td {
    background: #fff1f2;
}

.payment-ok {
    color: #166534;
    font-weight: 700;
}

.payment-fail {
    color: #b91c1c;
    font-weight: 700;
}
.jobs-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.job-card-denied {
    border-color: #f5c2c7;
    background: #fff5f5;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}

.job-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.job-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.job-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.job-status {
    flex-shrink: 0;
}

.job-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.job-meta-block {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.job-meta-block h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.job-meta-line {
    margin: 0 0 8px;
    line-height: 1.4;
}

.job-meta-line:last-child {
    margin-bottom: 0;
}

.vote-progress {
    font-size: 1rem;
    font-weight: 700;
}

.vote-subtext {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 6px;
}

.payment-ok {
    color: #166534;
    font-weight: 700;
}

.payment-fail {
    color: #b91c1c;
    font-weight: 700;
}

.job-card-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .job-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .job-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card-grid {
        grid-template-columns: 1fr;
    }

    .job-status {
        white-space: normal;
    }
}
.status-pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.status-draft {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.status-quote-pending-approval,
.status-invoice-pending-approval {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.status-quote-approved,
.status-invoice-approved {
    background: #ecfdf5;
    color: #166534;
    border-color: #86efac;
}

.status-work-in-progress {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.status-quote-denied,
.status-invoice-denied {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.status-paid,
.status-closed {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.status-request-pending {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
}

.status-request-approved {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
}

.status-request-denied {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
}
.badge-vote-approved {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.badge-vote-denied {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.badge-vote-pending {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.inline-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
