.v6-launch{border-left:3px solid #e30613!important}.v6-dialog{border:0;border-radius:16px;width:min(1180px,96vw);max-height:94vh;padding:0;color:#202936;background:#f5f7fa;box-shadow:0 24px 90px #0005}.v6-dialog::backdrop{background:#17212dcc}.v6-dialog header{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #dce1e7;padding:18px 24px;display:flex;justify-content:space-between;align-items:center}.v6-dialog h2,.v6-dialog h3{margin:0 0 8px}.v6-dialog header h2{font-size:21px;margin:0}.v6-dialog button,.v6-sign button{font:inherit;cursor:pointer}.v6-nav{display:flex;gap:7px;flex-wrap:wrap;padding:16px 24px;background:#fff}.v6-nav button{border:1px solid #dce1e7;padding:9px 12px;border-radius:8px;background:#fff;color:#27313e;font-size:14px}.v6-nav button.active{background:#202936;color:#fff;border-color:#202936}.v6-body{padding:22px 24px;min-height:250px}.v6-tools{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.v6-body .btn{font-size:14px}.v6-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:16px 0}.v6-card{background:white;border:1px solid #dce1e7;border-radius:12px;padding:18px;margin-bottom:12px}.v6-card p{line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.v6-card small,.v6-muted{color:#5b6777;font-size:14px}.v6-metric strong{display:block;font-size:26px;margin-top:7px}.v6-timeline{border-left:3px solid #dce1e7;margin:12px 0 12px 7px;padding-left:22px}.v6-timeline>.v6-card{position:relative}.v6-timeline>.v6-card:before{content:'';position:absolute;width:12px;height:12px;left:-31px;top:24px;border-radius:50%;background:#e30613;border:3px solid #f5f7fa}.v6-badge{display:inline-block;font-size:13px;padding:4px 8px;border-radius:5px;background:#edf0f5;color:#303f51;margin:2px 5px 2px 0}.v6-badge.ok{background:#e1f4e9;color:#196540}.v6-badge.warn{background:#fff0ce;color:#805900}.v6-badge.error{background:#ffe7e7;color:#a42128}.v6-form{background:#fff;border:1px solid #dce1e7;border-radius:12px;padding:20px;margin:12px 0}.v6-form label,.v6-sign label{display:block;font-size:14px;font-weight:600;margin-bottom:12px}.v6-form input,.v6-form select,.v6-form textarea,.v6-tools select,.v6-tools input,.v6-sign input,.v6-sign select{display:block;width:100%;font:inherit;border:1px solid #c5ced9;border-radius:7px;padding:10px;background:#fff;color:#202936;margin-top:6px;box-sizing:border-box}.v6-form input[type=checkbox]{width:auto;display:inline;margin-right:8px}.v6-form textarea{min-height:88px;resize:vertical}.v6-row{display:flex;gap:12px;flex-wrap:wrap}.v6-row>label{flex:1;min-width:130px}.v6-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}.v6-table th{background:#edf1f5;text-align:left;font-size:13px}.v6-table th,.v6-table td{padding:12px;border-bottom:1px solid #dce1e7;vertical-align:top}.v6-scroll{overflow-x:auto;border:1px solid #dce1e7;border-radius:10px}.v6-error{color:#a42128;background:#fff0f0;border:1px solid #e9b4b4;border-radius:8px;padding:12px;margin:10px 0;white-space:pre-wrap}.v6-status{font-size:14px;color:#526073;margin:0 0 12px}.v6-sign{margin:16px 0;border:1px solid #dce1e7;padding:16px;border-radius:10px;background:#fff}.v6-sign canvas{display:block;width:100%;height:160px;touch-action:none;background:#fff;border:1px dashed #8a97a7;border-radius:8px}.v6-sign small{display:block;margin:8px 0;color:#526073}.v6-timeline details summary{cursor:pointer;padding:8px 0;font-weight:600}.v6-dialog a{color:#ad1420}.v6-photo-links{display:flex;gap:10px;flex-wrap:wrap}.v6-form fieldset{border:1px solid #dce1e7;border-radius:7px;margin-bottom:12px}.v6-form legend{font-size:14px;font-weight:600;padding:5px}.v6-form .v6-hint{font-size:14px;color:#5b6777;line-height:1.5}.v6-form button:disabled,.v6-dialog button:disabled{opacity:.55;cursor:wait}.v6-chip{font-size:14px;color:#596575}.v6-empty{padding:35px;text-align:center;background:white;border:1px dashed #c5ced9;border-radius:10px;color:#526073}@media(max-width:650px){.v6-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.v6-dialog header,.v6-body,.v6-nav{padding:14px}.v6-dialog header h2{font-size:18px}.v6-nav{flex-wrap:nowrap;overflow:auto}.v6-nav button{white-space:nowrap}.v6-row{display:block}.v6-table th,.v6-table td{padding:9px}.v6-form{padding:14px}}

/* Integración en las vistas y en el expediente existentes. */
.crm-integrated.v6-dialog{display:block;position:static;width:100%;max-width:none;height:auto;max-height:none;overflow:visible;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}
.crm-integrated.v6-dialog header{position:static;padding:16px 0 8px;background:transparent;border:0;z-index:auto}
.crm-integrated .v6-nav{display:none}.crm-integrated .v6-body{padding:8px 0;min-height:0}.crm-integrated #v6Sub:empty{display:none}
.crm-section-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.crm-section-tabs button{padding:10px 14px;border:1px solid #dce1e7;border-radius:8px;background:#fff;color:#25313e;cursor:pointer;font:inherit;font-size:14px}.crm-section-tabs button.active{background:#202936;border-color:#202936;color:white}
[id^="crm-extra-"][hidden],[id^="crm-native-"][hidden]{display:none!important}
@media(max-width:650px){.crm-integrated.v6-dialog{width:100%;height:auto;max-height:none}.crm-integrated .v6-body{padding:8px 0}.crm-section-tabs{gap:6px}.crm-section-tabs button{padding:9px 10px}}
