757 lines
18 KiB
Plaintext
757 lines
18 KiB
Plaintext
<style>
|
|
:root {
|
|
--teal-dark: #0d5c63;
|
|
--teal-mid: #0e7c86;
|
|
--teal-light: #18a8b5;
|
|
--teal-pale: #e6f7f8;
|
|
--text-dark: #1a2e35;
|
|
--text-muted: #6b8890;
|
|
--border: #d6eaec;
|
|
--card-bg: #ffffff;
|
|
--bg-page: #f0f6f7;
|
|
--radius-lg: 14px;
|
|
--radius-sm: 8px;
|
|
--shadow-card: 0 2px 12px rgba(13,92,99,.10), 0 1px 3px rgba(0,0,0,.06);
|
|
--shadow-hover: 0 6px 24px rgba(13,92,99,.18);
|
|
--shadow-drop: 0 8px 28px rgba(13,92,99,.20);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ── WRAPPER ─────────────────────────────── */
|
|
.canvass-wrapper {
|
|
font-family: 'DM Sans', sans-serif;
|
|
background: var(--bg-page);
|
|
color: var(--text-dark);
|
|
width: 100%;
|
|
padding: 20px 24px 48px;
|
|
}
|
|
|
|
@@media (max-width: 768px) {
|
|
.canvass-wrapper {
|
|
padding: 12px 12px 36px;
|
|
}
|
|
}
|
|
|
|
/* ── HEADER ── */
|
|
.cv-header {
|
|
background: linear-gradient( 270deg, #004d40, #00695c, #00897b, #00acc1, #00897b, #00695c, #004d40 );
|
|
background-size: 300% 100%;
|
|
animation: gradientShimmer 6s ease infinite;
|
|
padding: 26px 30px 22px;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: 0 6px 20px rgba(0, 150, 136, 0.35);
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin-bottom: 18px;
|
|
margin-top:-60px;
|
|
}
|
|
|
|
.cv-header::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
}
|
|
|
|
.cv-header-inner {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
}
|
|
|
|
.cv-header-icon {
|
|
font-size: 2rem;
|
|
color: rgba(255,255,255,.85);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.cv-header h1 {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 1.7rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.cv-header p {
|
|
font-size: .875rem;
|
|
color: rgba(255,255,255,.72);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
@@media (max-width: 768px) {
|
|
.cv-header h1 {
|
|
font-size: 1.35rem;
|
|
}
|
|
}
|
|
|
|
/* ── TAB NAV ─── */
|
|
.cv-tabs {
|
|
display: flex;
|
|
gap: 6px;
|
|
background: #fff;
|
|
border-radius: var(--radius-lg);
|
|
padding: 6px;
|
|
box-shadow: var(--shadow-card);
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.cv-tab-btn {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 11px 18px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .875rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all .2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cv-tab-btn i {
|
|
font-size: .88rem;
|
|
}
|
|
|
|
.cv-tab-btn:hover {
|
|
background: var(--teal-pale);
|
|
color: var(--teal-dark);
|
|
}
|
|
|
|
.cv-tab-btn.active {
|
|
background: var(--teal-mid);
|
|
color: #fff;
|
|
box-shadow: 0 2px 8px rgba(14,124,134,.35);
|
|
}
|
|
|
|
.cv-tab-btn.loading {
|
|
opacity: .6;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ── TAB CONTENT AREA ──── */
|
|
#cv-tab-content {
|
|
min-height: 300px;
|
|
}
|
|
|
|
.cv-tab-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 80px 20px;
|
|
color: var(--text-muted);
|
|
font-size: .9rem;
|
|
}
|
|
|
|
/* ── SHARED FILTER BAR ─── */
|
|
.cv-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: stretch;
|
|
background: #fff;
|
|
border-radius: var(--radius-lg);
|
|
padding: 14px 16px;
|
|
box-shadow: var(--shadow-card);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.cv-search-box {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
border: 1.5px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 0 12px;
|
|
flex: 1;
|
|
min-width: 140px;
|
|
background: #fff;
|
|
transition: border-color .2s;
|
|
}
|
|
|
|
.cv-search-box:focus-within {
|
|
border-color: var(--teal-mid);
|
|
}
|
|
|
|
.cv-search-box i {
|
|
color: var(--text-muted);
|
|
font-size: .8rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cv-search-box input {
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
padding: 9px 0;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .875rem;
|
|
color: var(--text-dark);
|
|
width: 100%;
|
|
}
|
|
|
|
.cv-search-box input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── SUPPLIER DROPDOWN ── */
|
|
.cv-supplier-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 210px;
|
|
max-width: 280px;
|
|
}
|
|
|
|
@@media (max-width: 768px) {
|
|
.cv-supplier-wrap {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.cv-sup-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
height: 100%;
|
|
min-height: 40px;
|
|
border: 1.5px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 8px 12px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .875rem;
|
|
transition: border-color .2s;
|
|
}
|
|
|
|
.cv-sup-trigger:hover, .cv-sup-trigger.open {
|
|
border-color: var(--teal-mid);
|
|
}
|
|
|
|
.cv-sup-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
overflow: hidden;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.cv-sup-left i {
|
|
color: var(--text-muted);
|
|
font-size: .8rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cv-sup-lbl {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cv-sup-caret {
|
|
color: var(--text-muted);
|
|
font-size: .72rem;
|
|
flex-shrink: 0;
|
|
transition: transform .2s;
|
|
}
|
|
|
|
.cv-sup-trigger.open .cv-sup-caret {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.cv-sup-dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: calc(100% + 5px);
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000;
|
|
background: #fff;
|
|
border: 1.5px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--shadow-drop);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cv-sup-dropdown.open {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cv-sup-searchbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.cv-sup-searchbox i {
|
|
color: var(--text-muted);
|
|
font-size: .8rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cv-sup-searchbox input {
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .85rem;
|
|
color: var(--text-dark);
|
|
width: 100%;
|
|
}
|
|
|
|
.cv-sup-searchbox input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cv-sup-list {
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.cv-sup-list::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.cv-sup-list::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.cv-sup-opt {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 9px 12px;
|
|
cursor: pointer;
|
|
font-size: .85rem;
|
|
color: var(--text-dark);
|
|
transition: background .15s;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.cv-sup-opt i {
|
|
color: var(--text-muted);
|
|
font-size: .78rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cv-sup-opt:hover {
|
|
background: var(--teal-pale);
|
|
}
|
|
|
|
.cv-sup-opt.active {
|
|
background: var(--teal-pale);
|
|
color: var(--teal-dark);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cv-sup-opt.active i {
|
|
color: var(--teal-mid);
|
|
}
|
|
|
|
.cv-sup-empty {
|
|
padding: 14px 12px;
|
|
font-size: .85rem;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
/* ── FILTER RIGHT ────────────────────────── */
|
|
.cv-filter-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-left: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@@media (max-width: 768px) {
|
|
.cv-filter-right {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.cv-pgsz-lbl {
|
|
font-size: .8rem;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.cv-pgsz-sel {
|
|
border: 1.5px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 8px 10px;
|
|
background: #fff;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .875rem;
|
|
color: var(--text-dark);
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition: border-color .2s;
|
|
}
|
|
|
|
.cv-pgsz-sel:focus {
|
|
border-color: var(--teal-mid);
|
|
}
|
|
|
|
.cv-result-count {
|
|
font-size: .8rem;
|
|
font-weight: 600;
|
|
background: var(--teal-pale);
|
|
color: var(--teal-dark);
|
|
padding: 6px 14px;
|
|
border-radius: 50px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ── CARD GRID ───────────────────────────── */
|
|
.cv-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
|
gap: 18px;
|
|
min-height: 220px;
|
|
}
|
|
|
|
@@media (max-width: 768px) {
|
|
.cv-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@@media (min-width: 769px) and (max-width: 1100px) {
|
|
.cv-grid {
|
|
grid-template-columns: repeat(2,1fr);
|
|
}
|
|
}
|
|
|
|
/* ── CARD ────────────────────────────────── */
|
|
.cv-card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-card);
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: box-shadow .25s, transform .25s;
|
|
}
|
|
|
|
.cv-card:hover {
|
|
box-shadow: var(--shadow-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.cv-card-hd {
|
|
background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
|
|
padding: 14px 16px 12px;
|
|
}
|
|
|
|
.cv-card-code {
|
|
font-size: .7rem;
|
|
color: rgba(255,255,255,.62);
|
|
font-weight: 600;
|
|
letter-spacing: .06em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.cv-card-name {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
line-height: 1.25;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.cv-card-email {
|
|
font-size: .77rem;
|
|
color: rgba(255,255,255,.68);
|
|
margin-top: 5px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 5px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.cv-card-email i {
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cv-card-body {
|
|
padding: 14px 16px;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.cv-agg-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.cv-agg-badge {
|
|
flex: 1;
|
|
background: var(--teal-pale);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 9px 11px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.cv-agg-lbl {
|
|
font-size: .67rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
color: var(--text-muted);
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.cv-agg-val {
|
|
font-size: .83rem;
|
|
color: var(--teal-dark);
|
|
font-weight: 600;
|
|
line-height: 1.45;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.cv-item-lbl {
|
|
font-size: .67rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: .06em;
|
|
color: var(--text-muted);
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.cv-item-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.cv-item-tag {
|
|
display: inline-block;
|
|
padding: 3px 9px;
|
|
background: #f3f8f9;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
font-size: .78rem;
|
|
color: var(--text-dark);
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cv-item-more {
|
|
display: inline-block;
|
|
padding: 3px 9px;
|
|
background: var(--teal-pale);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
font-size: .78rem;
|
|
color: var(--teal-dark);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cv-card-ft {
|
|
padding: 10px 16px 14px;
|
|
display: flex;
|
|
gap: 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.cv-btn {
|
|
flex: 1;
|
|
padding: 9px 14px;
|
|
border-radius: var(--radius-sm);
|
|
border: none;
|
|
cursor: pointer;
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .82rem;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
transition: all .2s;
|
|
}
|
|
|
|
.cv-btn-primary {
|
|
background: var(--teal-mid);
|
|
color: #fff;
|
|
}
|
|
|
|
.cv-btn-primary:hover {
|
|
background: var(--teal-dark);
|
|
}
|
|
|
|
.cv-btn-outline {
|
|
background: transparent;
|
|
color: var(--teal-dark);
|
|
border: 1.5px solid var(--teal-mid);
|
|
}
|
|
|
|
.cv-btn-outline:hover {
|
|
background: var(--teal-pale);
|
|
}
|
|
|
|
/* ── STATE / SPINNER ─────────────────────── */
|
|
.cv-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 64px 20px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.cv-state i {
|
|
font-size: 2.4rem;
|
|
color: var(--border);
|
|
}
|
|
|
|
.cv-state p {
|
|
color: var(--text-muted);
|
|
font-size: .9rem;
|
|
}
|
|
|
|
.cv-spinner {
|
|
width: 34px;
|
|
height: 34px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--teal-mid);
|
|
border-radius: 50%;
|
|
animation: cvspin .7s linear infinite;
|
|
}
|
|
|
|
@@keyframes cvspin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* ── PAGINATION ──────────────────────────── */
|
|
.cv-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-top: 20px;
|
|
padding: 14px 18px;
|
|
background: #fff;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.cv-pg-info {
|
|
font-size: .82rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cv-pg-btns {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cv-pg-btn {
|
|
min-width: 36px;
|
|
height: 36px;
|
|
padding: 0 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
border: 1.5px solid var(--border);
|
|
background: #fff;
|
|
color: var(--text-dark);
|
|
font-family: 'DM Sans', sans-serif;
|
|
font-size: .85rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all .18s;
|
|
}
|
|
|
|
.cv-pg-btn:hover:not(:disabled) {
|
|
border-color: var(--teal-mid);
|
|
color: var(--teal-mid);
|
|
background: var(--teal-pale);
|
|
}
|
|
|
|
.cv-pg-btn.active {
|
|
background: var(--teal-mid);
|
|
border-color: var(--teal-mid);
|
|
color: #fff;
|
|
}
|
|
|
|
.cv-pg-btn:disabled {
|
|
opacity: .35;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── PLACEHOLDER PANEL ───────────────────── */
|
|
.cv-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80px 20px;
|
|
gap: 14px;
|
|
background: #fff;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
|
|
.cv-placeholder i {
|
|
font-size: 2.8rem;
|
|
color: var(--border);
|
|
}
|
|
|
|
.cv-placeholder h3 {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
font-size: 1.1rem;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.cv-placeholder p {
|
|
font-size: .875rem;
|
|
color: var(--text-muted);
|
|
}
|
|
</style>
|