/* ProcuraWeb MVP - Frontend & Admin Styles */

.procura-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* — Notices — */
.procura-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
}
.procura-notice--success   { background: #e8f5e9; border-color: #4CAF50; }
.procura-notice--warning   { background: #fff8e1; border-color: #FF9800; }
.procura-notice--error     { background: #fdecea; border-color: #f44336; }
.procura-unread            { font-weight: 600; }

/* — Buttons — */
.procura-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #1a73e8;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
}
.procura-btn:hover             { background: #1557b0; }
.procura-btn--outline          { background: transparent; color: #1a73e8 !important; border: 1px solid #1a73e8; }
.procura-btn--outline:hover    { background: #e8f0fe; }
.procura-btn--danger           { background: #d32f2f; }
.procura-btn--danger:hover     { background: #b71c1c; }
.procura-btn--small            { padding: 5px 10px; font-size: 12px; }

/* — Tables — */
.procura-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.procura-table th, .procura-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}
.procura-table th { background: #f5f5f5; font-weight: 600; }
.procura-table tr:hover td { background: #fafafa; }

/* — Forms — */
.procura-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.procura-fieldset legend {
    font-weight: 600;
    padding: 0 8px;
    color: #333;
}
.procura-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}
.procura-field label { font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #555; }
.procura-field input,
.procura-field select,
.procura-field textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.procura-field-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.procura-form-actions { margin-top: 16px; }
.procura-hint { font-size: 12px; color: #888; margin: 4px 0; }
.req { color: #d32f2f; }

/* — Checkboxes — */
.procura-checkboxes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.procura-check-label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }

/* — Status badges — */
.procura-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.procura-status--open              { background: #e3f2fd; color: #1565C0; }
.procura-status--quoted            { background: #fff3e0; color: #E65100; }
.procura-status--awarded           { background: #e8f5e9; color: #2E7D32; }
.procura-status--fulfilled         { background: #f3e5f5; color: #6A1B9A; }
.procura-status--cancelled         { background: #fafafa; color: #9e9e9e; }
.procura-status--submitted         { background: #e3f2fd; color: #1565C0; }
.procura-status--selected          { background: #e8f5e9; color: #2E7D32; }
.procura-status--rejected          { background: #fdecea; color: #c62828; }
.procura-status--partially_awarded { background: #fff8e1; color: #F57F17; }
.procura-status--completed         { background: #f3e5f5; color: #6A1B9A; }

/* — Quote cards — */
.procura-quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 12px 0;
}
.procura-quote-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}
.procura-quote-card--recommended { border-color: #1a73e8; box-shadow: 0 0 0 2px #c5d9fb; }
.procura-quote-card--selected    { border-color: #4CAF50; box-shadow: 0 0 0 2px #c8e6c9; }
.procura-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.procura-alias    { font-size: 16px; font-weight: 700; color: #333; }
.procura-badge    { font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.procura-badge--rec  { background: #e3f2fd; color: #1565C0; }
.procura-badge--sel  { background: #e8f5e9; color: #2E7D32; }
.procura-quote-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 13px;
    margin: 0;
}
.procura-quote-dl dt { color: #888; font-weight: 500; }
.procura-quote-dl dd { margin: 0; color: #333; }
.procura-price { font-size: 18px; font-weight: 700; color: #1a73e8; }
.procura-supplier-reveal {
    margin-top: 12px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 13px;
}
.procura-supplier-reveal h4 { margin: 0 0 6px; font-size: 13px; }

/* — Compare group — */
.procura-compare-group   { margin-bottom: 32px; border-bottom: 1px solid #eee; padding-bottom: 24px; }
.procura-item-heading    { font-size: 17px; margin-bottom: 4px; }
.procura-item-meta       { font-size: 13px; color: #666; margin-bottom: 12px; }

/* — Supplier dashboard — */
.procura-status-banner {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.procura-status-banner--approved  { background: #e8f5e9; color: #2E7D32; }
.procura-status-banner--pending   { background: #fff8e1; color: #F57F17; }
.procura-status-banner--rejected  { background: #fdecea; color: #c62828; }
.procura-status-banner--suspended { background: #fafafa; color: #9e9e9e; }
.procura-stat-row                 { font-size: 14px; margin-bottom: 12px; }

/* — Admin — */
.procura-admin .procura-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 16px 0 24px;
}
.procura-stat-card {
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}
.procura-stat-number { font-size: 32px; font-weight: 700; color: #1a73e8; }
.procura-stat-label  { font-size: 13px; color: #666; margin-top: 4px; }

/* — Detail grid — */
.procura-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.procura-detail-section h3  { margin-top: 0; font-size: 15px; }
.procura-detail-section dl  { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.procura-detail-section dt  { color: #888; font-weight: 500; }
.procura-detail-section dd  { margin: 0; }
.procura-image-gallery      { display: flex; gap: 8px; flex-wrap: wrap; }
.procura-image-gallery img  { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }

/* — Quote item sections — */
.procura-quote-item-section { margin-bottom: 28px; }
.procura-quote-line         { margin-bottom: 16px; }

/* — Notifications — */
.procura-notifications ul { list-style: none; padding: 0; margin: 0; }
.procura-notifications li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.procura-ts               { color: #aaa; font-size: 11px; margin-left: 8px; }

/* — Rating cards — */
.procura-rating-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; }

/* — Feedback messages — */
.procura-feedback.success { padding: 10px; background: #e8f5e9; color: #2E7D32; border-radius: 4px; }
.procura-feedback.error   { padding: 10px; background: #fdecea; color: #c62828; border-radius: 4px; }

@media (max-width: 600px) {
    .procura-field-row  { flex-direction: column; }
    .procura-detail-grid { grid-template-columns: 1fr; }
    .procura-quotes-grid { grid-template-columns: 1fr; }
}