.osago-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.osago-provider,
.osago-filter,
.osago-list-panel,
.osago-editor {
  border: 1px solid #e7e2ee;
}
.osago-provider {
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  border-left: 4px solid #7569b3;
}
.osago-provider h2,
.osago-list-head h2,
.osago-editor h2 {
  color: #554264;
  font: 700 18px Arial, "Segoe UI", sans-serif;
  margin: 2px 0 5px;
}
.osago-provider p,
.osago-editor-head p {
  color: #746681;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}
.osago-provider-actions,
.osago-form-actions,
.osago-list-head,
.osago-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.osago-manual-badge {
  background: #f0ecf7;
  border: 1px solid #dcd4e8;
  border-radius: 99px;
  color: #67527a;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  text-transform: uppercase;
}
.osago-filter {
  background: #fff;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 13px;
}
.osago-filter label,
.osago-fields label {
  color: #685677;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  min-width: 145px;
}
.osago-filter input,
.osago-filter select,
.osago-fields input,
.osago-fields select,
.osago-fields textarea {
  background: #fff;
  border: 1px solid #ddd6e8;
  border-radius: 4px;
  box-sizing: border-box;
  color: #40354e;
  font: 13px Arial, "Segoe UI", sans-serif;
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}
.osago-fields textarea {
  min-height: 74px;
  resize: vertical;
}
.osago-filter .osago-export {
  align-items: flex-end;
  border-left: 1px solid #e7e2ee;
  display: flex;
  gap: 6px;
  margin-left: auto;
  padding-left: 10px;
}
.osago-filter .osago-export label {
  flex: 0 1 126px;
  min-width: 0;
}
.osago-message {
  background: #f0ecf7;
  border-left: 3px solid #7569b3;
  color: #60506e;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  padding: 9px 12px;
}
.osago-message.is-error,
.osago-form-error {
  background: #fff2ed;
  border-left: 3px solid #b46c45;
  color: #7a422b;
}
.osago-scope {
  color: #7d6f8a;
  font-size: 12px;
  line-height: 1.55;
  margin: -2px 0 0;
}
.osago-list-panel,
.osago-editor {
  background: #fff;
  padding: 15px;
}
.osago-list-head {
  justify-content: space-between;
  margin-bottom: 12px;
}
.osago-list-head > span {
  color: #7c6b89;
  font-size: 12px;
}
.osago-table-scroll { overflow: auto; }
.osago-table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}
.osago-table th {
  border-bottom: 1px solid #e8e0ef;
  color: #8c789d;
  font-size: 10px;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}
.osago-table td {
  border-bottom: 1px solid #eee8f2;
  color: #625071;
  font-size: 12px;
  padding: 10px;
  vertical-align: top;
}
.osago-table td:nth-child(1) { width: 96px; }
.osago-table td:nth-child(2) { min-width: 150px; }
.osago-table td:nth-child(4) { min-width: 260px; }
.osago-photo {
  align-items: center;
  background: #eee8f2;
  border-radius: 3px;
  color: #8c7d99;
  display: flex;
  font-size: 10px;
  justify-content: center;
  min-height: 50px;
  overflow: hidden;
  text-align: center;
  width: 84px;
}
.osago-photo img {
  height: 54px;
  object-fit: cover;
  width: 90px;
}
.osago-plate {
  color: #4e3c5e;
  display: block;
  font: 700 16px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.osago-table td:nth-child(2) > span {
  color: #887896;
  display: block;
  margin-bottom: 7px;
}
.osago-copy,
.osago-history-button {
  background: transparent;
  border: 0;
  color: #6251a0;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  text-decoration: underline;
}
.osago-history-button { display: block; margin-top: 7px; }
.osago-status {
  border-radius: 99px;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 5px;
  padding: 5px 8px;
  text-transform: uppercase;
}
.osago-status-insured { background: #e3f3e9; color: #216744; }
/* Red is reserved exclusively for explicit, manually attested uninsured results. */
.osago-status-uninsured { background: #fbe4e4; color: #a32e35; }
.osago-status-expired { background: #fff0d7; color: #9a5b11; }
.osago-status-not_found { background: #fff8ce; color: #806200; }
.osago-status-not_checked,
.osago-status-unknown,
.osago-status-error { background: #ece9ed; color: #625b67; }
.osago-table td small {
  color: #7c7186;
  display: block;
  line-height: 1.4;
  max-width: 390px;
}
.osago-review { font-size: 11px; white-space: nowrap; }
.osago-empty {
  color: #8d7e99;
  font-size: 13px;
  padding: 28px;
  text-align: center;
}
.osago-pagination {
  border-top: 1px solid #eee8f2;
  color: #8b7a97;
  font-size: 11px;
  margin-top: 12px;
  padding-top: 12px;
}
.osago-pagination > span { margin-right: auto; }
.osago-editor { scroll-margin-top: 16px; }
.osago-editor-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.osago-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.osago-fields label { flex-basis: 30%; }
.osago-fields label.osago-wide { flex-basis: 100%; }
.osago-fields small {
  color: #91819f;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}
.osago-policy {
  border: 1px solid #e4ddea;
  border-radius: 5px;
  margin: 14px 0;
  padding: 12px;
}
.osago-policy legend {
  color: #665077;
  font-size: 12px;
  font-weight: 700;
  padding: 0 5px;
}
.osago-attestation {
  align-items: flex-start;
  color: #743d44;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.45;
  margin: 12px 0;
}
.osago-attestation input { margin: 2px 0 0; }
.osago-form-error {
  font-size: 12px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 8px 10px;
}
.osago-form-actions { margin-top: 14px; }
.osago-history {
  border-top: 1px solid #e8e0ef;
  list-style: none;
  margin: 16px 0 0;
  padding: 10px 0 0;
}
.osago-history + * { color: #766783; }
.osago-history li {
  border-bottom: 1px solid #eee8f2;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(150px, .8fr) minmax(200px, 1fr);
  padding: 9px 0;
}
.osago-history li strong { color: #5b476b; font-size: 12px; }
.osago-history li span,
.osago-history li small { color: #80728d; font-size: 11px; }
.osago-history li small { grid-column: 1 / -1; }
@media (max-width: 850px) {
  .osago-provider { align-items: flex-start; flex-direction: column; }
  .osago-filter .osago-export { border-left: 0; margin-left: 0; padding-left: 0; width: 100%; }
  .osago-fields label { flex-basis: 42%; }
}
@media (max-width: 560px) {
  .osago-filter { align-items: stretch; flex-direction: column; }
  .osago-filter label { min-width: 0; }
  .osago-filter .osago-export { flex-wrap: wrap; }
  .osago-filter .osago-export label { flex: 1; }
  .osago-provider-actions { flex-wrap: wrap; }
  .osago-editor-head { flex-direction: column; }
  .osago-fields label { flex-basis: 100%; }
  .osago-history li { display: flex; flex-direction: column; }
}
.osago-queue-info {
  color: #5d4b6b !important;
  font-size: 12px !important;
  margin-top: 7px !important;
}
.osago-nsis-cell { min-width: 220px; }
.osago-nsis-status {
  border-radius: 99px;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 5px;
  padding: 5px 8px;
  text-transform: uppercase;
}
.osago-nsis-status-insured { background: #e3f3e9; color: #216744; }
.osago-nsis-status-expired { background: #fff0d7; color: #9a5b11; }
.osago-nsis-status-not_found { background: #fff8ce; color: #806200; }
.osago-nsis-status-queued,
.osago-nsis-status-running { background: #e6eef8; color: #305d8d; }
.osago-nsis-status-failed { background: #fff2ed; color: #7a422b; }
.osago-nsis-status-unknown { background: #ece9ed; color: #625b67; }
.osago-enqueue {
  background: transparent;
  border: 0;
  color: #6251a0;
  cursor: pointer;
  display: block;
  font-size: 11px;
  margin-top: 7px;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}
.osago-enqueue:disabled { color: #9d92a7; cursor: wait; }
.osago-photo {
  border: 0;
  cursor: pointer;
  padding: 0;
}
.osago-photo:focus-visible {
  outline: 3px solid #7569b3;
  outline-offset: 2px;
}
.osago-table { min-width: 1060px; }
.osago-table td:nth-child(4) { min-width: 220px; }
.osago-table td:nth-child(5) { min-width: 260px; }
.osago-modal-backdrop {
  align-items: center;
  background: rgba(37, 27, 44, .56);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 50;
}
.osago-modal-backdrop[hidden] { display: none; }
.osago-detail-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(46, 31, 57, .3);
  max-height: calc(100vh - 56px);
  max-width: 1180px;
  overflow: auto;
  width: min(1180px, 100%);
}
.osago-detail-head {
  align-items: flex-start;
  border-bottom: 1px solid #e9e2ee;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}
.osago-detail-head h2 {
  color: #4e3c5e;
  font: 700 22px "SFMono-Regular", Consolas, monospace;
  letter-spacing: .03em;
  margin: 2px 0 6px;
}
.osago-detail-head p:not(.section-kicker) {
  color: #746681;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.osago-detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  padding: 20px;
}
.osago-detail-photo {
  align-items: center;
  background: #eee8f2;
  border-radius: 5px;
  color: #8c7d99;
  display: flex;
  justify-content: center;
  min-height: 245px;
  overflow: hidden;
}
.osago-detail-photo img {
  display: block;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  width: 100%;
}
.osago-detail-data {
  display: grid;
  gap: 17px;
}
.osago-detail-data section {
  border: 1px solid #e7e2ee;
  border-radius: 6px;
  padding: 14px;
}
.osago-detail-data h3 {
  color: #554264;
  font: 700 16px Arial, "Segoe UI", sans-serif;
  margin: 0 0 8px;
}
.osago-check-date,
.osago-result-summary {
  color: #746681;
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 11px;
}
.osago-policy-result,
.osago-provider-raw {
  border-top: 1px solid #eee8f2;
  margin-top: 10px;
  padding-top: 10px;
}
.osago-policy-result summary,
.osago-provider-raw summary {
  color: #5b476b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.osago-policy-fields {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0 0;
}
.osago-policy-fields > div {
  border-top: 1px solid #f0ebf3;
  padding: 7px 9px 7px 0;
}
.osago-policy-fields dt {
  color: #8c789d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.osago-policy-fields dd {
  color: #4e3c5e;
  font-size: 12px;
  line-height: 1.4;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.osago-provider-raw pre {
  color: #625071;
  font: 11px/1.45 "SFMono-Regular", Consolas, monospace;
  overflow: auto;
  white-space: pre-wrap;
}
.osago-manual-details { background: #fcfbfd; }
@media (max-width: 760px) {
  .osago-modal-backdrop { align-items: flex-start; padding: 14px; }
  .osago-detail-modal { max-height: calc(100vh - 28px); }
  .osago-detail-head { flex-direction: column; }
  .osago-detail-grid { grid-template-columns: 1fr; padding: 14px; }
}
@media (max-width: 430px) {
  .osago-policy-fields { grid-template-columns: 1fr; }
}
.osago-manual-dialog {
  border: 1px solid #e7e2ee;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(46, 31, 57, .3);
  box-sizing: border-box;
  margin: auto;
  max-height: 92vh;
  max-width: 920px;
  overflow: auto;
  width: min(920px, calc(100vw - 28px));
}
.osago-manual-dialog::backdrop { background: rgba(37, 27, 44, .56); }
.osago-manual-dialog .osago-form-actions {
  background: #fff;
  border-top: 1px solid #eee8f2;
  bottom: 0;
  margin: 16px -15px -15px;
  padding: 12px 15px;
  position: sticky;
  z-index: 1;
}
.osago-manual-dialog [data-osago-history-result] { padding-bottom: 4px; }
@media (max-width: 560px) {
  .osago-manual-dialog { max-height: 92vh; width: calc(100vw - 20px); }
  .osago-manual-dialog .osago-form-actions { align-items: stretch; flex-direction: column; }
}

/* Side-by-side review and explicitly confirmed uninsured records. */
.osago-columns { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.osago-columns > .osago-list-panel { flex: 1 1 0; min-width: 0; }
.osago-uninsured-panel { flex: 0 0 340px; box-sizing: border-box; min-width: 0; padding: 15px; background: #fff; border: 1px solid #edd6da; border-top: 3px solid #b73f51; }
.osago-uninsured-panel h2 { color: #a62e43; font: 700 18px Arial, "Segoe UI", sans-serif; margin: 2px 0 5px; }
.osago-uninsured-panel .section-kicker { color: #a45c6a; }
.osago-uninsured-count { background: #b73f51; color: #fff !important; font-size: 12px; font-weight: 700; min-width: 30px; text-align: center; padding: 7px 9px; border-radius: 4px; }
.osago-uninsured-caption { color: #8e6871; font-size: 11px; line-height: 1.5; margin: -3px 0 14px; }
.osago-uninsured-cards { display: flex; flex-direction: column; gap: 12px; }
.osago-uninsured-card { border: 1px solid #edd6da; border-left: 3px solid #b73f51; background: #fffafb; border-radius: 5px; padding: 12px; min-width: 0; }
.osago-uninsured-card-top { display: flex; gap: 12px; align-items: flex-start; }
.osago-uninsured-card-top > div { min-width: 0; flex: 1; }
.osago-uninsured-card .osago-plate { color: #b02e45; font-size: 17px; overflow-wrap: anywhere; }
.osago-uninsured-photo { flex: 0 0 98px; width: 98px; min-height: 68px; background: #eedde1; }
.osago-uninsured-photo img { width: 98px; height: 68px; object-fit: cover; }
.osago-uninsured-badge { display: inline-block; color: #a22c40; background: #f9e3e7; padding: 4px 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; border-radius: 3px; }
.osago-uninsured-card-top p { color: #80626c; font-size: 11px; line-height: 1.4; margin: 6px 0 0; overflow-wrap: anywhere; }
.osago-uninsured-info { margin: 10px 0 0; }
.osago-uninsured-info > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-top: 1px solid #f0dfe3; padding: 6px 0; }
.osago-uninsured-info dt { color: #966d77; font-size: 10px; flex-shrink: 0; }
.osago-uninsured-info dd { color: #634550; font-size: 10px; line-height: 1.4; margin: 0; text-align: right; overflow-wrap: anywhere; }
.osago-uninsured-note { color: #866771; font-size: 10px; line-height: 1.5; margin: 4px 0 10px; overflow-wrap: anywhere; }
.osago-uninsured-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.osago-uninsured-actions .button { font-size: 10px; padding: 6px 8px; }
.osago-uninsured-actions .osago-history-button { margin: 0; color: #a24658; }
.osago-uninsured-empty { padding: 22px 8px; font-size: 12px; line-height: 1.6; text-align: center; color: #9a7780; border: 1px dashed #e6cbd1; border-radius: 5px; background: #fffafb; }
.osago-uninsured-empty[hidden] { display: none; }
.osago-row-uninsured > td { background: #fff0f3; }
.osago-row-uninsured > td:first-child { border-left: 3px solid #b73f51; }
.osago-row-uninsured .osago-plate { color: #b02e45; }
.osago-columns .osago-table { min-width: 740px; }
.osago-columns .osago-table td:nth-child(2) { min-width: 125px; }
.osago-columns .osago-table td:nth-child(4), .osago-columns .osago-table td:nth-child(5) { min-width: 145px; }
@media (min-width: 1750px) { .osago-uninsured-panel { flex-basis: 390px; } }
@media (max-width: 1050px) { .osago-columns { flex-direction: column; } .osago-columns > .osago-list-panel, .osago-uninsured-panel { width: 100%; flex: auto; } .osago-uninsured-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .osago-uninsured-cards { display: flex; } .osago-uninsured-panel { padding: 12px; } }

.osago-manual-dialog .osago-attestation { justify-content: flex-start; }
.osago-manual-dialog .osago-attestation input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; flex: 0 0 16px; margin: 1px 0 0; padding: 0; }
.osago-shell .warnax-calendar > input { padding-right: 38px; }
.osago-shell .warnax-calendar-time label { min-width: 0; flex: 0 0 auto; flex-direction: row; }
.osago-shell .warnax-calendar-time input { width: 47px; min-height: 30px; padding: 4px; }
.osago-manual-dialog .warnax-calendar-panel {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: min(318px, 100%);
  box-sizing: border-box;
  margin-top: 6px;
}
@media (max-width: 560px) {
  .osago-export .warnax-calendar-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
  }
}
