/* ============================================================
   penugasan.css — SIPDAM Data Penugasan
   Theme: Light Green
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
    --pug-green:    #1a7a4a;
    --pug-green-m:  #2d9e63;
    --pug-green-l:  #e8f7ee;
    --pug-green-l2: #d0eedd;
    --pug-teal:     #0d9488;
    --pug-cyan:     #0891b2;
    --pug-cyan-l:   #ecfeff;
    --pug-amber:    #d97706;
    --pug-amber-l:  #fffbeb;
    --pug-rose:     #dc2626;
    --pug-rose-l:   #fff1f2;
    --pug-violet:   #7c3aed;
    --pug-violet-l: #f5f3ff;
    --pug-border:   #d1e8da;
    --pug-t1:       #0f172a;
    --pug-t2:       #334155;
    --pug-t3:       #64748b;
    --pug-t4:       #94a3b8;
    --pug-bg:       #f0f7f3;
    --pug-white:    #ffffff;
    --pug-font:     'Figtree', 'Segoe UI', sans-serif;
}

/* ── Header ── */
.pug-icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--pug-green), var(--pug-green-m));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    box-shadow: 0 4px 14px rgba(26,122,74,0.25);
}
.pug-page-title {
    font-family: var(--pug-font); font-size: 20px;
    font-weight: 700; color: var(--pug-t1); line-height: 1;
}
.pug-page-sub { font-size: 12px; color: var(--pug-t3); margin-top: 3px; }

.pug-btn-primary {
    font-family: var(--pug-font);
    background: linear-gradient(135deg, var(--pug-green), var(--pug-green-m));
    color: #fff; font-weight: 700; font-size: 13px;
    padding: 10px 20px; border-radius: 10px; border: none;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 4px 14px rgba(26,122,74,0.25);
}
.pug-btn-primary:hover { transform: translateY(-2px); opacity: .9; }

/* ── Layout ── */
.pug-wrap { padding: 28px 0; background: var(--pug-bg); min-height: 100vh; }
.pug-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Alert ── */
.pug-alert {
    padding: 14px 18px; border-radius: 12px;
    display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
    font-size: 14px; font-family: var(--pug-font);
}
.pug-alert-ok  { background: var(--pug-green-l); border: 1px solid var(--pug-green-l2); color: var(--pug-green); }
.pug-alert-err { background: var(--pug-rose-l);  border: 1px solid #fca5a5; color: var(--pug-rose); }

/* ── Stats ── */
.pug-stats {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 16px; margin-bottom: 28px;
}
@media(max-width:1100px) { .pug-stats { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:640px)  { .pug-stats { grid-template-columns: 1fr 1fr; } }

.pug-stat {
    background: var(--pug-white); border-radius: 16px; padding: 20px;
    position: relative; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--pug-border);
}
.pug-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,122,74,0.12); }
.pug-stat::before { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; border-radius:0 0 16px 16px; }
.pug-stat-total::before   { background: linear-gradient(90deg, var(--pug-cyan),   #06b6d4); }
.pug-stat-belum::before   { background: linear-gradient(90deg, var(--pug-amber),  #fbbf24); }
.pug-stat-proses::before  { background: linear-gradient(90deg, var(--pug-violet), #a78bfa); }
.pug-stat-selesai::before { background: linear-gradient(90deg, var(--pug-green),  var(--pug-green-m)); }
.pug-stat-batal::before   { background: linear-gradient(90deg, #64748b, #94a3b8); }
.pug-stat-garansi::before { background: linear-gradient(90deg, var(--pug-rose),   #f87171); }

.pug-stat-label {
    font-family: var(--pug-font); font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--pug-t3); margin-bottom: 12px;
}
.pug-stat-val {
    font-family: var(--pug-font); font-size: 36px; font-weight: 800;
    color: var(--pug-t1); line-height: 1; margin-bottom: 8px;
}
.pug-stat-icon {
    position: absolute; right: 16px; top: 16px;
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pug-stat-total .pug-stat-icon   { background: var(--pug-cyan-l);   color: var(--pug-cyan); }
.pug-stat-belum .pug-stat-icon   { background: var(--pug-amber-l);  color: var(--pug-amber); }
.pug-stat-proses .pug-stat-icon  { background: var(--pug-violet-l); color: var(--pug-violet); }
.pug-stat-selesai .pug-stat-icon { background: var(--pug-green-l);  color: var(--pug-green); }
.pug-stat-batal .pug-stat-icon   { background: #f1f5f9; color: #64748b; }
.pug-stat-garansi .pug-stat-icon { background: var(--pug-rose-l);   color: var(--pug-rose); }

/* ── Content layout ── */
.pug-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Toolbar filter ── */
.pug-toolbar {
    background: var(--pug-white); border: 1px solid var(--pug-border);
    border-radius: 16px; padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pug-toolbar-form {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px;
}

.pug-toolbar-item { flex: 1; min-width: 200px; }
.pug-toolbar-item.item-chips { flex: 2; min-width: 350px; }
.pug-toolbar-item.item-btn { flex: 0 0 auto; min-width: auto; }

.pug-field-label {
    font-size: 11px; color: var(--pug-t3); font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 8px; display: block;
}
.pug-input {
    width: 100%; background: var(--pug-bg);
    border: 1px solid var(--pug-border); color: var(--pug-t1);
    border-radius: 10px; padding: 11px 14px;
    font-family: var(--pug-font); font-size: 13px;
    outline: none; transition: all .2s;
}
.pug-input::placeholder { color: var(--pug-t4); }
.pug-input:focus { border-color: var(--pug-green); box-shadow: 0 0 0 3px rgba(26,122,74,0.1); }
.pug-input-icon { position: relative; }
.pug-input-icon .pug-input { padding-left: 38px; }
.pug-input-icon i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: var(--pug-t4); font-size: 12px;
}

.pug-reset-btn {
    height: 42px; padding: 0 18px; border-radius: 10px;
    background: transparent; border: 1px solid var(--pug-border);
    color: var(--pug-t3); font-size: 12px; font-family: var(--pug-font);
    font-weight: 600; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pug-reset-btn:hover { border-color: var(--pug-rose); color: var(--pug-rose); background: var(--pug-rose-l); }

.pug-chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pug-chip {
    padding: 8px 14px; border-radius: 10px; font-size: 11px; font-weight: 700;
    border: 1px solid var(--pug-border); color: var(--pug-t2);
    background: var(--pug-bg); cursor: pointer; transition: all .2s; font-family: var(--pug-font);
}
.pug-chip:hover,
.pug-chip.active          { border-color: var(--pug-green);  color: var(--pug-green);  background: var(--pug-green-l); }
.pug-chip.amber:hover,
.pug-chip.amber.active    { border-color: var(--pug-amber);  color: var(--pug-amber);  background: var(--pug-amber-l); }
.pug-chip.violet:hover,
.pug-chip.violet.active   { border-color: var(--pug-violet); color: var(--pug-violet); background: var(--pug-violet-l); }
.pug-chip.rose:hover,
.pug-chip.rose.active     { border-color: var(--pug-rose);   color: var(--pug-rose);   background: var(--pug-rose-l); }


/* ── Table panel ── */
.pug-panel {
    background: var(--pug-white); border: 1px solid var(--pug-border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pug-panel-head {
    padding: 18px 24px; border-bottom: 1px solid var(--pug-border);
    display: flex; align-items: center; justify-content: space-between;
    background: #f8fdf9;
}
.pug-panel-head-left {
    font-family: var(--pug-font); font-size: 13px;
    font-weight: 700; color: var(--pug-t1);
    display: flex; align-items: center; gap: 8px;
}
.pug-panel-head-right { font-size: 11px; color: var(--pug-t3); }

.pug-table { width: 100%; border-collapse: collapse; }
.pug-table thead tr { background: #f8fdf9; }
.pug-table th {
    padding: 13px 20px; text-align: left;
    font-family: var(--pug-font); font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--pug-t3);
    border-bottom: 1px solid var(--pug-border);
}
.pug-table th:last-child { text-align: center; }
.pug-table td {
    padding: 14px 20px; border-bottom: 1px solid #f0f7f3;
    vertical-align: middle; font-family: var(--pug-font);
}
.pug-table tr:last-child td { border-bottom: none; }
.pug-table tbody tr { transition: background .15s; }
.pug-table tbody tr:hover { background: #f8fdf9; }

.pug-rownum { font-size: 11px; color: var(--pug-t3); font-weight: 500; }

.pug-av {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--pug-green), var(--pug-green-m));
    color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
}

/* ── Searchable Tag Multi-Select ── */
.pug-tag-select {
    position: relative; width: 100%;
}
.pug-tag-input-wrapper {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    padding: 8px 12px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
    min-height: 48px; transition: all .2s;
    cursor: text;
}
.pug-tag-input-wrapper:focus-within {
    border-color: var(--pug-green);
    box-shadow: 0 0 0 3px rgba(26,122,74,0.08);
}
.pug-tags-container {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.pug-tag {
    background: var(--pug-green-l); color: var(--pug-green);
    font-size: 12px; font-weight: 700; padding: 4px 10px;
    border-radius: 6px; display: flex; align-items: center; gap: 6px;
    border: 1px solid rgba(26,122,74,0.1);
}
.pug-tag i { cursor: pointer; opacity: 0.7; }
.pug-tag i:hover { opacity: 1; }

.pug-tag-input {
    border: none; outline: none; background: transparent;
    font-size: 13.5px; color: var(--t1); flex: 1;
    min-width: 120px; padding: 4px 0;
}

.pug-tag-dropdown {
    position: absolute; top: calc(100% + 5px); left: 0; right: 0;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100; max-height: 220px; overflow-y: auto;
    display: none;
}
.pug-tag-dropdown.show { display: block; }

.pug-tag-option {
    padding: 10px 15px; cursor: pointer; transition: background .2s;
    border-bottom: 1px solid #f8fafc;
}
.pug-tag-option:last-child { border-bottom: none; }
.pug-tag-option:hover { background: #f0fdf4; }
.pug-tag-option strong { display: block; font-size: 13px; color: var(--t1); }
.pug-tag-option span { font-size: 11px; color: var(--t3); }

.pug-tag-no-results {
    padding: 20px; text-align: center; color: var(--t3); font-size: 12px;
    display: none;
}

/* Custom Scrollbar for dropdown */
.pug-tag-dropdown::-webkit-scrollbar { width: 6px; }
.pug-tag-dropdown::-webkit-scrollbar-track { background: transparent; }
.pug-tag-dropdown::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; }

/* ── Technician Badge in Table ── */
.pug-tech-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f8fafc; border: 1px solid var(--line);
    padding: 3px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 600; color: var(--t1);
    white-space: nowrap; transition: all .2s;
}
.pug-tech-badge i { font-size: 9px; color: var(--t3); }
.pug-tech-badge:hover { background: #fff; border-color: var(--pug-green); }



.pug-av-name { font-size: 13px; font-weight: 600; color: var(--pug-t1); font-family: var(--pug-font); }
.pug-av-sub  { font-size: 11px; color: var(--pug-t3); margin-top: 2px; }

.pug-thumb {
    width: 52px; height: 52px; border-radius: 9px;
    object-fit: cover; cursor: pointer;
    border: 1px solid var(--pug-border); transition: all .2s;
}
.pug-thumb:hover { border-color: var(--pug-green); transform: scale(1.08); }

.pug-date { font-size: 12px; color: var(--pug-t1); font-weight: 500; }
.pug-note { font-size: 11px; color: var(--pug-t2); margin-top: 4px; display: flex; align-items: center; gap: 5px; }

.pug-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
    font-family: var(--pug-font); border: 1px solid; white-space: nowrap;
}
.pug-badge-green  { background: var(--pug-green-l);  color: var(--pug-green);  border-color: var(--pug-green-l2); }
.pug-badge-amber  { background: var(--pug-amber-l);  color: var(--pug-amber);  border-color: #fde68a; }
.pug-badge-violet { background: var(--pug-violet-l); color: var(--pug-violet); border-color: #ddd6fe; }
.pug-badge-rose   { background: var(--pug-rose-l);   color: var(--pug-rose);   border-color: #fca5a5; }
.pug-badge-muted  { background: #f8fafc; color: var(--pug-t3); border-color: var(--pug-border); }
.pug-badge-cyan   { background: var(--pug-cyan-l);   color: var(--pug-cyan);   border-color: #a5f3fc; }

.pug-money       { font-size: 13px; font-weight: 700; color: var(--pug-green); }
.pug-money-empty { color: var(--pug-t4); font-size: 13px; }

.pug-actions { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pug-action-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--pug-border); background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; font-size: 12px;
}
.pug-action-view:hover  { background: var(--pug-cyan-l);   border-color: var(--pug-cyan);   color: var(--pug-cyan); }
.pug-action-view        { color: var(--pug-cyan); }
.pug-action-edit        { color: var(--pug-green); }
.pug-action-edit:hover  { background: var(--pug-green-l);  border-color: var(--pug-green);  color: var(--pug-green); }
.pug-action-del         { color: var(--pug-rose); }
.pug-action-del:hover   { background: var(--pug-rose-l);   border-color: var(--pug-rose);   color: var(--pug-rose); }

.pug-empty { padding: 80px 20px; text-align: center; }
.pug-empty-icon {
    width: 72px; height: 72px; border-radius: 18px;
    background: var(--pug-green-l); border: 1px solid var(--pug-green-l2);
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--pug-green);
}
.pug-empty-title { font-family: var(--pug-font); font-size: 15px; font-weight: 700; color: var(--pug-t2); margin-bottom: 6px; }
.pug-empty-sub   { font-size: 12px; color: var(--pug-t3); }

.pug-pag { padding: 16px 24px; border-top: 1px solid var(--pug-border); background: #f8fdf9; }

/* ── Modals ── */
.pug-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 50; overflow-y: auto;
}
.pug-overlay.show { display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }

.pug-modal {
    background: var(--pug-white); border: 1px solid var(--pug-border);
    border-radius: 20px; width: 100%; padding: 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
    animation: pugModalIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pugModalIn {
    from { opacity:0; transform: scale(.94) translateY(12px); }
    to   { opacity:1; transform: none; }
}
.pug-modal-sm { max-width: 680px; }
.pug-modal-lg { max-width: 860px; }

.pug-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--pug-border);
}
.pug-modal-title {
    font-family: var(--pug-font); font-size: 18px; font-weight: 700;
    color: var(--pug-t1); display: flex; align-items: center; gap: 10px;
}
.pug-modal-title i { color: var(--pug-green); }
.pug-close-btn {
    width: 34px; height: 34px; border-radius: 9px;
    border: 1px solid var(--pug-border); color: var(--pug-t3);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all .2s;
}
.pug-close-btn:hover { border-color: var(--pug-rose); color: var(--pug-rose); }

.pug-info-box {
    background: var(--pug-cyan-l); border: 1px solid #a5f3fc;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 24px;
    display: flex; gap: 12px; align-items: flex-start;
}
.pug-info-box i { color: var(--pug-cyan); margin-top: 2px; flex-shrink: 0; }
.pug-info-box p { font-size: 13px; color: var(--pug-t2); line-height: 1.6; font-family: var(--pug-font); }
.pug-info-box strong { color: var(--pug-t1); }

.pug-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width:600px) { .pug-form-grid { grid-template-columns: 1fr; } }
.pug-form-full { grid-column: 1/-1; }

.pug-form-field { display: flex; flex-direction: column; gap: 7px; }
.pug-form-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--pug-t2);
    display: flex; align-items: center; gap: 6px;
}
.pug-form-label i   { color: var(--pug-green); font-size: 10px; }
.pug-form-label .req { color: var(--pug-rose); }
.pug-form-label .opt { color: var(--pug-t4); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 10px; }

.pug-select, .pug-text-input, .pug-textarea {
    background: var(--pug-bg); border: 1px solid var(--pug-border);
    color: var(--pug-t1); border-radius: 10px; padding: 11px 14px;
    font-family: var(--pug-font); font-size: 13px;
    outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.pug-select:focus, .pug-text-input:focus, .pug-textarea:focus {
    border-color: var(--pug-green);
    box-shadow: 0 0 0 3px rgba(26,122,74,0.08);
}
.pug-text-input::placeholder, .pug-textarea::placeholder { color: var(--pug-t4); }
.pug-textarea { resize: none; }

.pug-upload-zone {
    border: 1.5px dashed var(--pug-border); border-radius: 12px;
    padding: 36px 20px; text-align: center; cursor: pointer;
    background: var(--pug-bg); transition: all .2s;
}
.pug-upload-zone:hover { border-color: var(--pug-green); background: var(--pug-green-l); }
.pug-upload-zone i { font-size: 32px; color: var(--pug-t4); display: block; margin-bottom: 10px; }
.pug-upload-zone p { font-size: 13px; color: var(--pug-t2); font-weight: 500; margin-bottom: 4px; }
.pug-upload-zone span { font-size: 11px; color: var(--pug-t4); }

.pug-preview-wrap { position: relative; }
.pug-preview-img {
    width: 100%; max-height: 240px; object-fit: contain;
    border-radius: 10px; border: 1px solid var(--pug-green-l2);
}
.pug-preview-remove {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--pug-rose); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; cursor: pointer;
}
.pug-fname { font-size: 11px; color: var(--pug-t3); text-align: center; margin-top: 6px; }

.pug-old-img-label { font-size: 11px; color: var(--pug-t3); margin-bottom: 6px; }
.pug-old-img { width: 80px; height: 80px; object-fit: cover; border-radius: 9px; border: 1px solid var(--pug-border); }

.pug-modal-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--pug-border);
}
.pug-btn-cancel {
    padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
    font-family: var(--pug-font); background: transparent;
    border: 1px solid var(--pug-border); color: var(--pug-t2); cursor: pointer;
    display: flex; align-items: center; gap: 7px; transition: all .2s;
}
.pug-btn-cancel:hover { border-color: var(--pug-rose); color: var(--pug-rose); }
.pug-btn-submit {
    padding: 10px 24px; border-radius: 10px; font-size: 13px; font-weight: 700;
    font-family: var(--pug-font);
    background: linear-gradient(135deg, var(--pug-green), var(--pug-green-m));
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 7px; transition: all .2s;
    box-shadow: 0 4px 14px rgba(26,122,74,0.25);
}
.pug-btn-submit:hover { opacity: .9; transform: translateY(-1px); }

/* Detail modal */
.pug-detail-section {
    background: var(--pug-bg); border: 1px solid var(--pug-border);
    border-radius: 12px; padding: 18px; margin-bottom: 14px;
}
.pug-detail-section-title {
    font-family: var(--pug-font); font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--pug-t3);
    margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.pug-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pug-detail-item-label { font-size: 10px; color: var(--pug-t3); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .06em; }
.pug-detail-item-val   { font-size: 13px; color: var(--pug-t1); font-weight: 600; }
.pug-detail-money      { font-size: 18px; color: var(--pug-green); font-weight: 700; font-family: var(--pug-font); }

.pug-garansi-box {
    background: var(--pug-violet-l); border: 1px solid #ddd6fe;
    border-radius: 12px; padding: 14px 16px;
    display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.pug-garansi-box i { color: var(--pug-violet); font-size: 22px; }

.pug-waiting-box {
    background: var(--pug-amber-l); border: 1px solid #fde68a;
    border-radius: 12px; padding: 14px 16px;
    display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.pug-waiting-box i { color: var(--pug-amber); font-size: 22px; }

.pug-photo-container { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--pug-border); }
.pug-photo-label { font-size: 10px; font-weight: 700; color: var(--pug-t2); text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.pug-photo-item { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform .2s; border: 1px solid #f0f7f3; }
.pug-photo-item:hover { transform: scale(1.02); }
.pug-photo-empty { height: 180px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border: 1px dashed var(--pug-border); border-radius: 12px; color: var(--pug-t3); font-size: 11px; }

.pug-preview-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92); backdrop-filter: blur(10px);
    z-index: 60; align-items: center; justify-content: center;
}
.pug-preview-overlay.show { display: flex; }
.pug-preview-overlay img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
}
.pug-preview-x {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--pug-rose); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer;
}