* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: #f5f8f5; color: #1d1830; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #d7d2e2; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes yg-ring { 0% { box-shadow: 0 0 0 0 rgba(227,160,8,.5); } 70% { box-shadow: 0 0 0 12px rgba(227,160,8,0); } 100% { box-shadow: 0 0 0 0 rgba(227,160,8,0); } }
@keyframes yg-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes yg-bar { from { width: 0; } }

/* Utility */
.yg-hidden { display: none !important; }

/* Nav button hover */
.yg-nav-btn { transition: background .15s; }
.yg-nav-btn:hover { background: rgba(52,168,53,.10) !important; }

/* Form inputs */
.yg-input {
    border: 1px solid #ddeedd;
    border-radius: 10px;
    padding: 11px 13px;
    font: 600 13px/1 'Plus Jakarta Sans', sans-serif;
    color: #1d1830;
    width: 100%;
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.yg-input:focus { border-color: #34a835; box-shadow: 0 0 0 3px rgba(2,120,3,.12); }
.yg-input::placeholder { color: #8ab58a; font-weight: 500; }

select.yg-input {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b9e6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 30px;
    cursor: pointer;
}

/* Badges */
.yg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 11px/1 'Plus Jakarta Sans', sans-serif;
    padding: 6px 10px;
    border-radius: 20px;
}
.yg-badge-approved { background: #e4f5ec; color: #14794a; }
.yg-badge-review   { background: #fdecd4; color: #9a5b00; }
.yg-badge-pending  { background: #eeecf5; color: #6b6580; }

.yg-pay-badge {
    display: inline-flex;
    align-items: center;
    font: 600 12px/1 'Plus Jakarta Sans', sans-serif;
    padding: 6px 11px;
    border-radius: 8px;
}
.yg-pay-cash     { background: #eef5ee; color: #5a5470; }
.yg-pay-transfer { background: #e3f5e3; color: #015f02; }

/* Confidence badges */
.yg-conf-high { display:inline-flex;align-items:center;gap:6px;font:700 12px/1 'JetBrains Mono',monospace;color:#14794a;background:#e4f5ec;padding:6px 10px;border-radius:8px; }
.yg-conf-mid  { display:inline-flex;align-items:center;gap:6px;font:700 12px/1 'JetBrains Mono',monospace;color:#9a5b00;background:#fdf2da;padding:6px 10px;border-radius:8px; }
.yg-conf-low  { display:inline-flex;align-items:center;gap:6px;font:700 12px/1 'JetBrains Mono',monospace;color:#b42318;background:#fce9e8;padding:6px 10px;border-radius:8px; }

/* Buttons */
.yg-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(150deg,#168a17,#015f02);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 11px;
    font: 700 13px/1 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(1,95,2,.32);
    transition: filter .15s;
    text-decoration: none;
}
.yg-btn-primary:hover { filter: brightness(1.07); color: #fff; }

.yg-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e3efe3;
    color: #5a5470;
    padding: 11px 16px;
    border-radius: 11px;
    font: 600 13px/1 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.yg-btn-secondary:hover { background: #f0f8f0; color: #5a5470; }

.yg-btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(150deg,#22a866,#1a8d54);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 11px;
    font: 700 13px/1 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(2,120,3,.32);
    transition: filter .15s;
}
.yg-btn-success:hover { filter: brightness(1.05); }

.yg-btn-warn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.4px solid #f0c14b;
    color: #9a5b00;
    padding: 11px 16px;
    border-radius: 11px;
    font: 700 13px/1 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background .15s;
}
.yg-btn-warn:hover { background: #fdf6e8; }

/* Icon button */
.yg-icon-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid #e3efe3;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.yg-icon-btn:hover { background: #f0f8f0; border-color: #a8cfa8; }
.yg-icon-btn-danger { border-color: #f1dddd; }
.yg-icon-btn-danger:hover { background: #fdeceb; border-color: #f0bcb7; }

/* Card */
.yg-card {
    background: #fff;
    border: 1px solid #e9f2e9;
    border-radius: 18px;
}

/* Alert */
.yg-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font: 500 13px/1.4 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.yg-alert-danger  { background: #fce9e8; color: #b42318; border: 1px solid #f0c4c0; }
.yg-alert-warning { background: #fdf2da; color: #9a5b00; border: 1px solid #f0d890; }
.yg-alert-success { background: #e4f5ec; color: #14794a; border: 1px solid #b0dfc6; }
.yg-alert-close { background: none; border: none; cursor: pointer; opacity: .6; font-size: 18px; line-height: 1; padding: 0; color: inherit; }
.yg-alert-close:hover { opacity: 1; }

/* Range slider */
input[type=range].yg-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 6px; outline: none; cursor: pointer; }
input[type=range].yg-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid #027803; box-shadow: 0 3px 8px rgba(2,120,3,.4); cursor: pointer; }

/* Checkbox */
input[type=checkbox].yg-check { width: 17px; height: 17px; accent-color: #027803; cursor: pointer; }

/* Dropzone */
.yg-dropzone { border: 2.5px dashed #a8d4a8; border-radius: 20px; background: linear-gradient(180deg,#f8fef8,#f2faf2); transition: border-color .2s, background .2s; }
.yg-dropzone.drag-over { border-color: #027803; background: linear-gradient(180deg,#edf8ed,#e3f5e3); }

/* Search highlight */
mark { background: #fef08a; color: inherit; border-radius: 2px; padding: 0 2px; }

/* Filter tab bar */
.yg-tabs { display: flex; gap: 5px; background: #edf4ed; padding: 4px; border-radius: 11px; }
.yg-tab { font: 600 12.5px/1 'Plus Jakarta Sans', sans-serif; color: #5a5470; padding: 8px 14px; border-radius: 8px; cursor: pointer; border: none; background: none; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.yg-tab.active { background: #027803; color: #fff; }
.yg-tab:hover:not(.active) { background: rgba(2,120,3,.1); }
