#quote-popup, #history-popup {
            display:none;
            position:fixed;
            top:0; left:0;
            width:100%; height:100%;
            background:rgba(0,0,0,0.5);
            justify-content:center;
            align-items:center;
            z-index:9999;
            padding:10px;
        }
        .popup-content {
            background:#fff;
            padding:20px;
            border-radius:8px;
            max-width:700px;
            width:100%;
            max-height:85%;
            overflow:auto;
            box-shadow:0 5px 20px rgba(0,0,0,0.2);
            font-family:Arial, sans-serif;
        }
        .popup-content h2 {
            margin-top:0;
            font-size:20px;
            border-bottom:1px solid #ddd;
            padding-bottom:10px;
        }
        textarea, input[type="file"] {
            width:100%;
            margin-bottom:10px;
            padding:8px;
        }
        button {
            padding:8px 14px;
            border:none;
            border-radius:4px;
            cursor:pointer;
        }
        .save-btn { background:#28a745; color:#fff; }
        .cancel-btn { background:#dc3545; color:#fff; }
        .quote-manage-btn { background:#0073aa; color:#fff; }
        .quote-history-btn { background:#6c757d; color:#fff; }
        table.history-table {
            width:100%;
            border-collapse:collapse;
            margin-top:10px;
        }
        table.history-table th, table.history-table td {
            border:1px solid #ccc;
            padding:6px;
            text-align:left;
        }
        table.history-table th {
            background:#f0f0f0;
        }
        .pagination {
            margin-top:10px;
            text-align:center;
        }
        .pagination button {
            margin:0 2px;
            padding:5px 10px;
            background:#0073aa;
            color:#fff;
            border:none;
            border-radius:3px;
        }

.uipf-btn { padding:.5rem .8rem; border:1px solid #ddd; background:#fff; border-radius:8px; cursor:pointer; }
.uipf-btn-primary { background:#0073aa; color:#fff; border-color:#0073aa; }
.uipf-wrap { position:relative; }

.uipf-popup { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:99999; }
.uipf-popup-content {
  max-width:720px; margin:6vh auto; background:#fff; padding:20px; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.2);
}
.uipf-close { float:right; font-size:24px; cursor:pointer; }
.uipf-find { margin:10px 0 16px; }
.uipf-find-row { display:flex; gap:8px; }
.uipf-find-row input { flex:1; }

.uipf-company-box { border:1px solid #e5e5e5; border-radius:8px; padding:10px; margin:10px 0 16px; max-height:260px; overflow:auto; }
.uipf-company-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-weight:600; }
.uipf-company-list { list-style:disc; margin-left:20px; }
.uipf-company-list li { margin:4px 0; }
.uipf-empty { list-style:none; color:#777; margin-left:0; }

.uipf-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.uipf-grid label { display:flex; flex-direction:column; gap:6px; }

.uipf-actions { display:flex; gap:8px; align-items:center; }

 

