.teams-preview-modal .modal-dialog,
.teams-transcript-modal .modal-dialog { width: 980px; max-width: calc(100% - 24px); margin: 30px auto; }
.teams-preview-modal .modal-header,
.teams-transcript-modal .modal-header { padding: 22px 24px 18px; }
.teams-preview-modal .modal-title,
.teams-transcript-modal .modal-title { padding-right: 24px; font-size: 20px; font-weight: 600; overflow-wrap: break-word; }
.teams-preview-modal .modal-body,
.teams-transcript-modal .modal-body { padding: 20px 24px; max-height: 65vh; overflow-y: auto; }
.teams-preview-modal .teams-subtitle,
.teams-transcript-modal .teams-subtitle { margin: 7px 0 0; color: #667487; }
.teams-preview-modal .teams-secondary,
.teams-transcript-modal .teams-secondary { display: block; color: #667487; font-size: 12px; line-height: 1.6; }
.teams-preview-modal .teams-connection { padding: 16px; margin-bottom: 22px; background: #f4f8fc; border: 1px solid #dce6ef; border-radius: 8px; }
.teams-preview-modal .teams-connection-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.teams-preview-modal .teams-account { min-width: 0; overflow-wrap: break-word; }
.teams-preview-modal .teams-account > strong { display: block; margin-top: 5px; }
.teams-preview-modal .teams-connected { color: #287148; font-size: 12px; font-weight: 600; }
.teams-preview-modal .teams-connection-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.teams-preview-modal .teams-date-fields { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.teams-preview-modal .teams-date-fields .form-group { flex: 1; min-width: 0; max-width: 260px; margin-bottom: 0; }
.teams-preview-modal .teams-date-fields label { font-weight: 600; }
.teams-preview-modal .teams-date-form { margin-bottom: 22px; }
.teams-preview-modal .teams-results-count { margin: 0 0 8px; color: #526174; font-weight: 600; }
.teams-preview-modal .teams-meeting-table { margin-bottom: 0; }
.teams-preview-modal .teams-meeting-table th { padding: 12px; background: #f6f8fb; border-bottom: 1px solid #e2e8ef; color: #667487; font-size: 12px; font-weight: 600; }
.teams-preview-modal .teams-meeting-table td { padding: 14px 12px; vertical-align: middle; border-top: 1px solid #e9edf2; }
.teams-preview-modal .teams-meeting-table tr:hover td { background: #fafbfd; }
.teams-preview-modal .teams-meeting-subject { display: block; min-width: 170px; font-weight: 500; overflow-wrap: anywhere; }
.teams-preview-modal .teams-nowrap { white-space: nowrap; }
.teams-preview-modal .teams-row-action { text-align: right; }
.teams-preview-modal .teams-row-action .btn { white-space: nowrap; }
.teams-preview-modal .teams-loading,
.teams-transcript-modal .teams-loading { padding: 14px 0; color: #526174; }
.teams-preview-modal .teams-empty,
.teams-transcript-modal .teams-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 20px; text-align: center; color: #667487; }
.teams-preview-modal .teams-empty > .fa,
.teams-transcript-modal .teams-empty > .fa { font-size: 28px; color: #8a9aaf; }
.teams-preview-modal .teams-empty > strong,
.teams-transcript-modal .teams-empty > strong { font-size: 15px; color: #394b61; }
.teams-preview-modal .teams-footer,
.teams-transcript-modal .teams-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; text-align: left; }
.teams-transcript-modal .teams-eyebrow { margin-bottom: 6px; color: #667487; font-size: 12px; }
.teams-transcript-modal .teams-meeting-details { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #e7ecf2; font-size: 13px; }
.teams-transcript-modal .teams-meeting-details p { margin-bottom: 8px; }
.teams-transcript-modal .teams-meeting-details summary { cursor: pointer; color: #526174; }
.teams-transcript-modal .teams-meeting-details details p { margin-top: 8px; overflow-wrap: anywhere; }
.teams-transcript-modal .teams-transcript-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.teams-transcript-modal .teams-transcript-toolbar > div { flex: 1; max-width: 480px; }
.teams-transcript-modal .teams-transcript-toolbar .btn { flex-shrink: 0; }
.teams-transcript-modal .teams-reader-loading { text-align: center; padding: 50px 0; }
.teams-transcript-modal .teams-transcript-entry { display: flex; gap: 20px; padding: 12px 0; }
.teams-transcript-modal .teams-transcript-time { flex: 0 0 65px; padding-top: 2px; color: #788697; font-size: 12px; font-variant-numeric: tabular-nums; }
.teams-transcript-modal .teams-transcript-entry > div { min-width: 0; }
.teams-transcript-modal .teams-transcript-entry strong { color: #394b61; font-weight: 600; }
.teams-transcript-modal .teams-transcript-entry p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin: 4px 0 0; }
.teams-transcript-modal .teams-transcript-raw { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #f7f9fc; border-color: #e2e8ef; line-height: 1.7; }
@media (max-width: 600px) {
    .teams-preview-modal .modal-header, .teams-transcript-modal .modal-header,
    .teams-preview-modal .modal-body, .teams-transcript-modal .modal-body { padding: 16px; }
    .teams-preview-modal .teams-connection-row { align-items: flex-start; flex-direction: column; }
    .teams-preview-modal .teams-date-fields { flex-wrap: wrap; gap: 12px; }
    .teams-preview-modal .teams-date-fields .form-group { flex-basis: 40%; max-width: none; }
    .teams-preview-modal .teams-date-fields > .btn[type="submit"] { width: 100%; }
    .teams-preview-modal .teams-footer, .teams-transcript-modal .teams-footer { padding: 16px; }
    .teams-transcript-modal .teams-transcript-toolbar { flex-wrap: wrap; }
    .teams-transcript-modal .teams-transcript-entry { gap: 10px; }
}
.teams-time-preview-modal .modal-dialog { width: 1180px; max-width: calc(100% - 24px); margin: 24px auto; }
.teams-time-preview-modal .modal-header { padding: 22px 24px 18px; }
.teams-time-preview-modal .modal-title { padding-right: 24px; font-size: 20px; font-weight: 600; }
.teams-time-preview-modal .modal-body { padding: 20px 24px; max-height: 68vh; overflow-y: auto; }
.teams-time-preview-modal .teams-subtitle { margin: 7px 0 0; color: #667487; }
.teams-time-preview-modal .teams-secondary { display: block; color: #667487; font-size: 12px; line-height: 1.6; }
.teams-time-preview-modal .teams-preview-progress { padding: 12px; margin-bottom: 14px; background: #f4f8fc; border-radius: 6px; font-size: 13px; }
.teams-time-preview-modal .teams-preview-summary { padding: 12px 0; color: #394b61; font-weight: 600; }
.teams-time-preview-modal .teams-time-row { margin-bottom: 14px; padding: 18px; border: 1px solid #dce6ef; border-radius: 8px; }
.teams-time-preview-modal .teams-time-row-excluded { background: #f7f9fb; }
.teams-time-preview-modal .teams-time-row-heading { margin-bottom: 14px; overflow-wrap: anywhere; }
.teams-time-preview-modal .teams-time-row-heading input { margin: 0 6px 0 0; vertical-align: middle; }
.teams-time-preview-modal .teams-time-fields { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.teams-time-preview-modal .teams-time-fields > div { min-width: 0; }
.teams-time-preview-modal .teams-time-fields label,
.teams-time-preview-modal .teams-time-description label { font-size: 12px; font-weight: 600; }
.teams-time-preview-modal .teams-time-project { flex: 2; }
.teams-time-preview-modal .teams-time-type { flex: 1.3; }
.teams-time-preview-modal .teams-time-duration { flex: 0 0 75px; }
.teams-time-preview-modal .teams-time-issues { margin: 10px 0 0; font-size: 12px; color: #a15219; }
.teams-time-preview-modal .teams-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; text-align: left; }
.teams-time-preview-modal .teams-time-row fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.teams-time-preview-modal .teams-time-footer-actions { display: flex; flex-shrink: 0; gap: 8px; }
.teams-preview-modal .teams-future-panel, .teams-time-preview-modal .teams-future-panel { margin-top: 16px; border: 1px solid #dce6ef; border-radius: 8px; overflow: hidden; }
.teams-preview-modal .teams-future-toggle, .teams-time-preview-modal .teams-future-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; border: 0; background: #f4f7fa; color: #394b61; font-weight: 600; text-align: left; }
.teams-time-preview-modal .teams-future-panel .teams-time-row { margin: 12px; }
@media (max-width: 800px) {
    .teams-time-preview-modal .modal-header, .teams-time-preview-modal .modal-body, .teams-time-preview-modal .teams-footer { padding: 16px; }
    .teams-time-preview-modal .teams-time-fields { flex-wrap: wrap; }
    .teams-time-preview-modal .teams-footer { flex-wrap: wrap; }
    .teams-time-preview-modal .teams-time-project, .teams-time-preview-modal .teams-time-type { flex: 1 1 45%; }
    .teams-time-preview-modal .teams-time-fields > div:first-child { flex-basis: 100%; }
}
