.guarantee-app{display:grid;gap:16px}.guarantee-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.guarantee-head h1,.guarantee-head h2,.guarantee-head h3{margin:0}.guarantee-head p{margin:5px 0 0;color:var(--muted,#64748b)}.guarantee-card{background:var(--panel,#fff);border:1px solid var(--line,#e2e8f0);border-radius:16px;padding:16px}.guarantee-toolbar{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(4,minmax(140px,1fr));gap:12px;align-items:end}.guarantee-field{display:grid;gap:6px;font-size:13px}.guarantee-field span{font-weight:700;color:var(--text,#0f172a)}.guarantee-field input,.guarantee-field select,.guarantee-field textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#cbd5e1);border-radius:10px;padding:9px 10px;background:var(--panel,#fff);color:var(--text,#0f172a)}.guarantee-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.guarantee-kpi{background:var(--panel,#fff);border:1px solid var(--line,#e2e8f0);border-radius:15px;padding:14px}.guarantee-kpi small{display:block;color:var(--muted,#64748b);margin-bottom:4px}.guarantee-kpi strong{font-size:22px}.guarantee-table-wrap{overflow:auto}.guarantee-table{width:100%;border-collapse:collapse;min-width:1120px}.guarantee-table th,.guarantee-table td{padding:10px;border-bottom:1px solid var(--line,#e2e8f0);text-align:left;vertical-align:top}.guarantee-table th{font-size:12px;color:var(--muted,#64748b);white-space:nowrap}.guarantee-btn{border:1px solid var(--line,#cbd5e1);border-radius:10px;padding:8px 12px;background:var(--panel,#fff);color:var(--text,#0f172a);cursor:pointer;font-weight:650}.guarantee-btn:hover{filter:brightness(.98)}.guarantee-btn.primary{background:#0f172a;color:#fff;border-color:#0f172a}.guarantee-btn.success{background:#166534;color:#fff;border-color:#166534}.guarantee-btn.danger{background:#991b1b;color:#fff;border-color:#991b1b}.guarantee-btn:disabled{opacity:.45;cursor:not-allowed}.guarantee-actions{display:flex;gap:8px;flex-wrap:wrap}.guarantee-status{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800;background:#e2e8f0}.guarantee-status.ACTIVE{background:#dbeafe;color:#1d4ed8}.guarantee-status.PARTIAL_RECEIVED{background:#fef3c7;color:#92400e}.guarantee-status.COMPLETED{background:#dcfce7;color:#166534}.guarantee-status.CANCELLED,.guarantee-status.VOID{background:#fee2e2;color:#991b1b}.guarantee-notice{border:1px solid #bae6fd;background:#f0f9ff;border-radius:12px;padding:10px 12px}.guarantee-notice.error{border-color:#fecaca;background:#fff1f2;color:#991b1b}.guarantee-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.guarantee-detail-grid>div{border:1px solid var(--line,#e2e8f0);border-radius:12px;padding:12px}.guarantee-detail-grid small{display:block;color:var(--muted,#64748b)}.guarantee-detail-grid strong{display:block;margin-top:4px;font-size:17px}.guarantee-dialog{width:min(1040px,94vw);border:0;border-radius:18px;padding:0;box-shadow:0 24px 80px rgba(15,23,42,.25)}.guarantee-dialog::backdrop{background:rgba(15,23,42,.4)}.guarantee-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line,#e2e8f0)}.guarantee-dialog>header h2{margin:0;font-size:19px}.guarantee-dialog>header button{border:0;background:transparent;font-size:24px;cursor:pointer}.guarantee-dialog-body{padding:18px;max-height:76vh;overflow:auto}.guarantee-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guarantee-form-grid .full{grid-column:1/-1}.guarantee-events{display:grid;gap:6px;margin:8px 0}.guarantee-event{border-left:3px solid #cbd5e1;padding:5px 10px;font-size:13px}.guarantee-source-banner{padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}.guarantee-source-banner strong{font-size:18px}.guarantee-muted{color:var(--muted,#64748b)}
@media(max-width:900px){.guarantee-toolbar{grid-template-columns:1fr 1fr}.guarantee-kpis{grid-template-columns:1fr 1fr}.guarantee-detail-grid{grid-template-columns:1fr}.guarantee-form-grid{grid-template-columns:1fr}.guarantee-form-grid .full{grid-column:auto}}@media(max-width:560px){.guarantee-toolbar,.guarantee-kpis{grid-template-columns:1fr}}

/* v1.3.12 Approval integration */
.guarantee-approval-panel{margin:14px 0;padding:14px;border:1px solid var(--line,#d8dde6);border-radius:12px;background:rgba(245,248,252,.82);display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.guarantee-approval-panel>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:240px;flex:1}
.guarantee-approval-panel strong{font-size:14px}
.guarantee-approval-panel span{font-size:12px;color:var(--muted,#667085);line-height:1.5}
