/* Basic admin styles for HarvestFlow */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f6fbf8;
    color: #153626;
}
.admin-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.admin-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.admin-brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.brand-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}
.admin-brand small {
    display: block;
    color: #4f695b;
}
.admin-header h1 { margin: 0; font-size: 1.75rem; }
.subtitle { color: #3f7d64; margin-top: 6px; }
.admin-header nav { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 24px; padding: 24px; }
.card { background: #fff; padding: 22px; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,0.06); }
.card h2 { margin-top: 0; margin-bottom: 16px; font-size: 1.2rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.thumbs img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; background: #1f704c; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; }
.button.secondary { background: #4f695b; }
.admin-footer { padding: 24px; color: #6b846f; border-top: 1px solid rgba(0,0,0,0.06); text-align: center; }
ul { list-style: none; padding: 0; margin: 0; }
li { margin-bottom: 12px; }
a { color: #1f704c; text-decoration: none; }
a:hover { text-decoration: underline; }
form { display: grid; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: #254838; }
input, textarea { padding: 10px 12px; border: 1px solid #d8e8de; border-radius: 8px; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: #e9f8ee; color: #1f704c; }
.report-shell { padding: 24px; display: grid; gap: 20px; }
.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #1f704c 0%, #2f8f5f 100%); color: #fff; }
.report-hero h1 { margin: 0 0 8px; font-size: 1.6rem; color: #fff; }
.report-hero .hero-copy { margin: 0; color: rgba(255,255,255,0.9); }
.eyebrow { display: inline-block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.hero-badge { background: rgba(255,255,255,0.18); padding: 10px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi-card { background: #fff; padding: 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.06); display: grid; gap: 6px; }
.kpi-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #4f695b; }
.kpi-card strong { font-size: 1.35rem; color: #153626; }
.kpi-card small { color: #6b846f; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 320px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5efe8; }
th { font-size: 0.85rem; color: #4f695b; text-transform: uppercase; letter-spacing: 0.05em; }
.report-filter-card { padding: 16px 18px; }
.report-filter-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.report-filter-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: #254838; }
.report-filter-form input { min-width: 180px; }
.quick-range-links { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.print-btn { border: 0; cursor: pointer; font: inherit; }
.payment-mix { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-chart { position: relative; width: 140px; height: 140px; border-radius: 50%; background: #f0f7f2; display: grid; place-items: center; }
.donut-chart::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #fff; }
.donut-segment { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--segment-color) calc(var(--start-angle) * 1deg), var(--segment-color) calc(var(--end-angle) * 1deg), transparent calc(var(--end-angle) * 1deg)); clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%); }
.payment-list { display: grid; gap: 8px; min-width: 180px; }
.payment-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.payment-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart-shell { display: flex; align-items: flex-end; gap: 12px; min-height: 220px; padding-top: 10px; }
.chart-bar { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; }
.chart-fill { width: 100%; max-width: 42px; background: linear-gradient(180deg, #2f8f5f 0%, #1f704c 100%); border-radius: 8px 8px 0 0; min-height: 8px; }
.chart-bar span { font-size: 0.8rem; color: #4f695b; text-align: center; }
.empty-state { color: #6b846f; font-size: 0.95rem; }
@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .admin-header { flex-direction: column; align-items: stretch; }
    .admin-header nav { justify-content: stretch; }
    .button { width: 100%; }
    .report-shell { padding: 16px; }
    .report-hero { flex-direction: column; align-items: flex-start; }
    .kpi-grid { grid-template-columns: 1fr; }
    .report-actions { flex-direction: column; align-items: stretch; }
    .report-actions .button { width: 100%; }
    .report-filter-form { align-items: stretch; }
    .report-filter-form input { min-width: 100%; }
    .quick-range-links { flex-direction: column; }
    .filter-actions { flex-direction: column; }
}
@media (max-width: 640px) {
    .admin-header { flex-direction: column; align-items: stretch; }
    .admin-header nav { justify-content: stretch; }
    .button { width: 100%; }
}