/* Isolated calendar profile styles. Existing CRM lists and dialogs unchanged. */
.r04-calendar .card.r04-destination{margin-bottom:16px}.r04-destination .r04-field input{width:100%}
.r04-profile{max-width:1200px;min-width:0;font-size:12px;line-height:1.5;color:#182a46}
.r04-profile>h1{font-size:20px;margin:0 0 12px}.r04-profile>.ax-profile-tabs{margin:0 0 18px;gap:22px;flex-wrap:wrap}
.r04-profile>.ax-profile-tabs button{font-size:12px;padding:9px 0}.r04-profile>.ax-profile-tabs [aria-current=page]{color:#306bea;border-bottom-color:#306bea}
.r04-base-profile .ax-profile>h1,.r04-base-profile .ax-profile>p.muted,.r04-base-profile .ax-profile-tabs{display:none}
.r04-calendar .card{padding:18px;border:1px solid #dce2ed;border-radius:9px;background:#fff;box-shadow:none;margin:0;min-width:0}
.r04-calendar h2{font-size:14px;margin:0}.r04-calendar h3{font-size:14px;margin:0 0 12px}.r04-calendar h4{font-size:11px;color:#73829a;margin:0 0 9px;font-weight:400}
.r04-calendar p{margin:9px 0}.r04-calendar .r04-muted{color:#718198;font-size:11px}.r04-calendar .r04-demo{font-size:11px;color:#5f718a;background:#edf1f7;padding:9px 12px;border-radius:5px;margin:0 0 16px}
.r04-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 16px}.r04-heading h2{font-size:17px}.r04-heading p{margin:5px 0 0}
.r04-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:16px}.r04-column{display:flex;flex-direction:column;gap:16px;min-width:0}
.r04-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.r04-state{font-size:10px;padding:3px 7px;background:#f1f3f7;color:#697992;border-radius:4px}.r04-state.ready{background:#eef6f0;color:#397452}
.r04-meta{display:grid;grid-template-columns:108px minmax(0,1fr);gap:8px;margin:12px 0}.r04-meta dt{font-size:11px;color:#718198}.r04-meta dd{margin:0;overflow-wrap:anywhere}
.r04-field{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:14px 0}.r04-field>span{font-size:11px;color:#718198}
.r04-profile .r04-field :is(input,select){height:36px;min-height:36px;box-sizing:border-box;width:240px;max-width:100%;border:1px solid #d8e0ed;border-radius:5px;background:#fff;padding:7px 10px;font:inherit;color:inherit}
.r04-checkbox{display:flex;align-items:center;gap:9px;margin:13px 0;cursor:pointer}.r04-checkbox input{width:16px;height:16px;accent-color:#306bea;flex:none}
.r04-profile .btn{font-size:12px;min-height:32px;white-space:normal}.r04-profile a{color:#306bea;overflow-wrap:anywhere}.r04-profile :is(a,button,input,select,summary):focus-visible{outline:2px solid #739ce9;outline-offset:3px}
.r04-record-list{display:flex;flex-direction:column;max-height:320px;overflow:auto;scrollbar-width:auto;scrollbar-color:#9b9b9b #fff}
.r04-record{display:grid;gap:3px;flex:none;min-width:0;width:100%;border:0;border-bottom:1px solid #e8edf5;background:#fff;padding:11px 10px;text-align:left;font:inherit;cursor:pointer;color:inherit;border-radius:3px}
.r04-record:hover{background:#f8faff}.r04-record.selected{background:#f0f4fd;box-shadow:inset 2px 0 #4d79cf}.r04-record-name{overflow-wrap:anywhere}
.r04-event{min-height:385px}.r04-event-title{display:flex;gap:10px;align-items:flex-start;margin-top:22px}.r04-event-title i{width:11px;height:11px;background:#7396d4;border-radius:2px;flex:none;margin-top:4px}.r04-event-title h3{font-size:16px;font-weight:600;overflow-wrap:anywhere;margin:0}
.r04-calendar .overdue{color:#cf3636}.r04-calendar .done{color:#78838e}.r04-event-title.overdue i{background:#d85656}.r04-event-title.done i{background:#9ba4ad}.r04-event-date{padding-left:21px}
.r04-description{border-top:1px solid #e4e9f0;margin-top:18px;padding-top:15px;overflow-wrap:anywhere}.r04-url{display:block;margin-bottom:15px;word-break:break-word}.r04-links{display:flex;flex-direction:column;align-items:flex-start;gap:9px;margin:0 0 14px}.r04-footnote{border-top:1px solid #e4e9f0;padding-top:12px}
.r04-empty{padding:40px 0;color:#718198}.r04-lab summary{cursor:pointer;font-size:11px;color:#5f718a}.r04-lab-actions{display:flex;flex-wrap:wrap;gap:7px}.r04-lab-actions .btn{font-size:11px}.r04-result{min-height:20px;color:#397452}.r04-warning{color:#9a632b!important}
.r04-dialog{width:640px;height:520px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #dce2ed;border-radius:10px;background:#fff;color:#182a46;box-sizing:border-box;box-shadow:0 18px 60px #10203b22;font:12px/1.5 Arial,sans-serif;overflow:hidden}
.r04-dialog[open]{display:flex;flex-direction:column}.r04-dialog.compact{width:480px;height:280px}.r04-dialog::backdrop{background:#16253c55}
.r04-dialog>header,.r04-dialog>footer{display:flex;align-items:center;justify-content:space-between;flex:none;padding:14px 18px;gap:10px;border-bottom:1px solid #e4e9f0}.r04-dialog>footer{justify-content:flex-end;border-bottom:0;border-top:1px solid #e4e9f0}.r04-dialog-body{flex:1;min-height:0;overflow:auto;padding:18px}.r04-dialog .r04-close{background:none;border:none;font-size:22px;color:#64758e;width:32px;height:32px;cursor:pointer}.r04-step{color:#718198;font-size:11px}.r04-transfer-list{padding-left:17px}.r04-transfer-list li{padding:6px 0;overflow-wrap:anywhere}
@media(max-width:1000px){.r04-grid{grid-template-columns:1fr}.r04-column{gap:12px}.r04-record-list{max-height:235px}}
@media(max-width:600px){.r04-heading{align-items:flex-start;flex-direction:column}.r04-profile>.ax-profile-tabs{gap:16px}.r04-calendar .card{padding:14px}.r04-meta{grid-template-columns:98px minmax(0,1fr)}.r04-dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.r04-dialog>footer{flex-wrap:wrap}.r04-dialog .btn{min-height:36px}.r04-state{max-width:100%;overflow-wrap:anywhere}}
