.dosser-view {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--tt-text, #343434);
  direction: rtl;
}

.dosser-page-head {
  min-height: 82px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.dosser-breadcrumb {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tt-text-soft, #b4b4b4);
  font-size: 10px;
}

.dosser-breadcrumb a { color: var(--tt-info, #2f6fed); text-decoration: none; }
.dosser-breadcrumb strong { color: var(--tt-text-muted, #858585); font-weight: 500; }
.dosser-page-head h1 { margin: 0 0 7px; color: #1a2438; font-size: 18px; font-weight: 800; }
.dosser-page-head p { margin: 0; color: #7f889b; font-size: 11px; }

.dosser-primary-action {
  min-height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--tt-primary, #111);
  border-radius: var(--tt-radius-md, 7px);
  color: #fff !important;
  background: var(--tt-primary, #111);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: filter var(--tt-transition, 180ms ease), transform var(--tt-transition, 180ms ease);
}
.dosser-primary-action:hover,
.dosser-primary-action:focus { color: #fff !important; background: #000; filter: brightness(.93); text-decoration: none; }
.dosser-primary-action:active { transform: translateY(1px); }

.dosser-panel {
  overflow: hidden;
  border: 1px solid var(--tt-border, #e5e5e5);
  border-radius: var(--tt-radius-lg, 9px);
  background: var(--tt-surface, #fff);
}

.dosser-panel-head {
  min-height: 92px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #edf0f3;
}

.dosser-panel-title { min-width: 240px; display: flex; align-items: center; gap: 11px; }
.tt-panel-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #2f6fed;
  background: #eaf1ff;
  font-size: 21px;
}
.tt-panel-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dosser-panel-title h2 { margin: 0 0 5px; color: #263247; font-size: 13px; font-weight: 800; }
.dosser-panel-title p { margin: 0; color: #929bad; font-size: 10px; }
.tableLoader {
  width: 16px;
  height: 16px;
  margin-right: 2px;
  flex: 0 0 auto;
  border: 2px solid #dce5f4;
  border-top-color: var(--tt-info, #2f6fed);
  border-radius: 50%;
  animation: dosser-spin .7s linear infinite;
}

.dosser-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.dosser-search {
  height: 39px;
  width: min(390px, 32vw);
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid #dde2e9;
  border-radius: 7px;
  background: #fafbfc;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.dosser-search:focus-within { border-color: #99b5ef; background: #fff; box-shadow: 0 0 0 3px rgba(47,111,237,.08); }
.dosser-search > span { margin-right: 11px; color: #919aaa; font-size: 17px; }
.dosser-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  color: #344054;
  background: transparent;
  font: inherit;
  font-size: 11px;
}
.dosser-search input::placeholder { color: #a6adba; }
.dosser-search button {
  align-self: stretch;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid #e4e7ec;
  color: #4b5b73;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.dosser-search button:hover { color: #1f5dc9; background: #f3f7ff; }

.dosser-filter-btn,
.dosser-mobile-filter {
  min-height: 39px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dde2e9;
  border-radius: 7px;
  color: #536078;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.dosser-filter-btn:hover { border-color: #b9c7dd; color: #235ab8; background: #f8faff; }
.dosser-mobile-filter { display: none; width: 39px; padding: 0; }

.dosser-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd2dc transparent;
}
.dosser-table {
  width: 100% !important;
  min-width: 980px;
  margin: 0 !important;
  border-collapse: collapse !important;
  table-layout: auto;
}
.dosser-table thead th {
  position: relative;
  height: 48px;
  padding: 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e8ebf0 !important;
  color: #6f7889;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 700;
  text-align: right !important;
  vertical-align: middle !important;
  white-space: nowrap;
}
.is-column-resizable {
  table-layout: fixed !important;
}
.table-column-resizer {
  position: absolute;
  z-index: 3;
  top: 8px;
  bottom: 8px;
  left: -5px;
  width: 10px;
  cursor: col-resize;
  touch-action: none;
}
.table-column-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 140ms ease, width 140ms ease;
}
.table-column-resizer:hover::after,
.table-column-resizer.is-active::after {
  width: 2px;
  background: #2f6fed;
}
.is-resizing-table-column,
.is-resizing-table-column * {
  cursor: col-resize !important;
  user-select: none !important;
}
.dosser-table thead th[data-order="true"] { cursor: pointer; user-select: none; }
.dosser-table thead th[data-order="true"]::after {
  content: "↕";
  margin-right: 6px;
  color: #bac0ca;
  font-size: 10px;
}
.dosser-table thead th.sorting_asc::after { content: "↑"; color: #2f6fed; }
.dosser-table thead th.sorting_desc::after { content: "↓"; color: #2f6fed; }
.dosser-table tbody td {
  height: 61px;
  padding: 9px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #eef0f3 !important;
  color: #4a5568;
  background: #fff;
  font-size: 12px;
  text-align: right !important;
  vertical-align: middle !important;
  /*white-space: nowrap;*/
}
.dosser-table tbody tr:last-child td { border-bottom: 0 !important; }
.dosser-table tbody tr:hover td { background: #fbfcff; }
.dosser-table tbody tr.rowinLoad td { opacity: .58; pointer-events: none; }
.dosser-table td:first-child { color: #9aa2b1; font-size: 11.5px; }
.dosser-table td:nth-child(3) { color: #263247; font-weight: 700; }
@media (max-width: 767px) {
  .table-column-resizer { display: none; }
}
.dosser-panel .dataTables_length,
.dosser-panel .dataTables_filter { display: none !important; }
.dosser-panel .dataTables_wrapper {
  width: 100% !important;
  max-width: 100%;
}
.dosser-panel .dataTables_wrapper > .row {
  width: 100%;
  margin: 0;
}
.dosser-panel .dataTables_wrapper > .row:first-child {
  display: none;
}
.dosser-panel .dataTables_wrapper > .row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding: 0;
  float: none;
}
.dosser-panel .dataTables_wrapper table.dataTable {
  width: 100% !important;
  margin: 0 !important;
}
.dosser-panel .dataTables_wrapper > .row:last-child {
  min-height: 62px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0f3;
}
.dosser-panel .dataTables_wrapper > .row:last-child > .col-sm-6 {
  width: auto;
  max-width: 50%;
}
.dosser-panel .dataTables_info {
  padding: 0 !important;
  color: #8a93a3;
  font-size: 11px;
}
.dosser-panel .dataTables_paginate {
  margin: 0;
  padding: 0 !important;
  text-align: left;
}
.dosser-panel .dataTables_paginate .pagination {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dosser-panel .dataTables_paginate .paginate_button {
  margin: 0;
  padding: 0;
  border: 0;
}
.dosser-panel .dataTables_paginate .paginate_button > a {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  color: #687387;
  background: #fff;
  font-size: 11px;
  text-decoration: none;
}
.dosser-panel .dataTables_paginate .paginate_button:not(.disabled):not(.active) > a:hover {
  border-color: #aebfe0;
  color: #2f6fed;
  background: #f6f9ff;
}
.dosser-panel .dataTables_paginate .paginate_button.active > a {
  border-color: #2f6fed;
  color: #fff;
  background: #2f6fed;
}
.dosser-panel .dataTables_paginate .paginate_button.disabled > a {
  opacity: .42;
  cursor: default;
}

.dosser-status {
  min-height: 26px;
  max-width: 150px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
  font-size: 9.5px;
  text-overflow: ellipsis;
}
.dosser-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; }
.dosser-status.is-success { color: #147247; background: #eaf7f1; }
.dosser-status.is-success::before { background: #22a06b; }
.dosser-status.is-warning { color: #8a6419; background: #fff6df; }
.dosser-status.is-warning::before { background: #d99a1b; }
.dosser-status.is-danger { color: #a23e45; background: #fff0f1; }
.dosser-status.is-danger::before { background: #e24b52; }
.dosser-status.is-muted { color: #70798a; background: #f1f3f6; }
.dosser-status.is-muted::before { background: #9aa2b1; }

/*
 * Active-state control
 * The list still renders the legacy Font Awesome <i> element.  Draw the
 * checkbox here so it remains correct even when the old icon font is absent.
 */
.dosser-table .activeChange {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #c8ced8;
  border-radius: 4px;
  color: transparent;
  background: #fff;
  font-size: 0;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.dosser-table .activeChange::before {
  content: "";
  width: 8px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.dosser-table .activeChange.fa-check-square-o {
  border-color: var(--tt-success, #168a55);
  background: var(--tt-success, #168a55);
}

.dosser-table .activeChange.fa-check-square-o::before {
  opacity: 1;
}

.dosser-table .activeChange:hover {
  border-color: var(--tt-success, #168a55);
  box-shadow: 0 0 0 3px rgba(22, 138, 85, .10);
}

.dosser-table .activeChange:focus-visible {
  outline: 2px solid rgba(47, 111, 237, .35);
  outline-offset: 2px;
}

.dosser-row-actions { display: flex; align-items: center; gap: 4px; }
.dosser-action-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #70798a;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.dosser-action-btn:hover { border-color: #dce4f1; color: #2f6fed; background: #f3f7ff; }
.dosser-action-btn.is-danger:hover { border-color: #f1d3d5; color: #d7444c; background: #fff5f5; }
.dosser-action-btn:disabled { opacity: .45; cursor: not-allowed; }
.dosser-action-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.dosser-action-btn.is-loading svg {
  animation: dosser-action-spin .8s linear infinite;
}
@keyframes dosser-action-spin {
  to { transform: rotate(360deg); }
}

.dosser-table-state {
  min-height: 260px;
  padding: 40px;
  place-items: center;
  align-content: center;
  color: #8e97a8;
  text-align: center;
}
.dosser-table-state:not([hidden]) { display: grid; }
.dosser-table-state > span { width: 52px; height: 52px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%; color: #9aa7ba; background: #f3f6fa; font-size: 23px; }
.dosser-table-state strong { margin-bottom: 5px; color: #596579; font-size: 12px; }
.dosser-table-state small { font-size: 10px; }

.dosser-pagination {
  min-height: 62px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #edf0f3;
  color: #8a93a3;
  font-size: 10px;
}
.dosser-page-size { display: flex; align-items: center; gap: 8px; }
.dosser-page-size label { margin: 0; }
.dosser-page-size select {
  height: 32px;
  min-width: 62px;
  padding: 0 9px;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  color: #4e596b;
  background: #fff;
  font: inherit;
  outline: none;
}
.dosser-page-buttons,
.dosser-page-buttons > span { display: flex; align-items: center; gap: 4px; }
.dosser-page-buttons button {
  min-width: 31px;
  height: 31px;
  padding: 0 7px;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  color: #687387;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.dosser-page-buttons button:hover:not(:disabled) { border-color: #aebfe0; color: #2f6fed; background: #f6f9ff; }
.dosser-page-buttons button.active { border-color: #2f6fed; color: #fff; background: #2f6fed; }
.dosser-page-buttons button:disabled { opacity: .42; cursor: default; }

@keyframes dosser-spin { to { transform: rotate(360deg); } }

/* Case logo uploader */
.case-logo-uploader {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, .9fr);
  gap: 24px;
  padding: 4px;
  color: var(--tt-text, #253047);
}
.case-logo-preview {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  background: #f8f9fb;
}
.case-logo-preview img {
  display: block;
  max-width: calc(100% - 48px);
  max-height: 270px;
  object-fit: contain;
}
.case-logo-empty {
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}
.case-logo-empty[hidden] { display: none; }
.case-logo-empty-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #768297;
  background: #eef1f5;
  font-size: 24px;
}
.case-logo-empty strong { margin-bottom: 6px; font-size: 13px; }
.case-logo-empty small,
.case-logo-controls p { color: #858fa1; font-size: 11px; line-height: 1.8; }
.case-logo-loading {
  position: absolute;
  inset: auto 12px 12px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #fff;
  background: rgba(17,17,17,.78);
  text-align: center;
  font-size: 10px;
}
.case-logo-controls { display: flex; flex-direction: column; gap: 16px; }
.case-logo-controls h3 { margin: 2px 0 6px; font-size: 15px; font-weight: 800; }
.case-logo-controls p { margin: 0; }
.case-logo-dropzone {
  min-height: 158px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1.5px dashed #cbd3df;
  border-radius: 12px;
  color: #263247;
  background: #fbfcfd;
  cursor: pointer;
  transition: 180ms ease;
}
.case-logo-dropzone:hover,
.case-logo-dropzone.is-dragging {
  border-color: #2f6fed;
  background: #f5f8ff;
}
.case-logo-upload-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #2f6fed;
  background: #eaf1ff;
  font-size: 21px;
}
.case-logo-dropzone strong { font-size: 12px; }
.case-logo-dropzone small { color: #9099a9; font-size: 10px; }
.case-logo-file {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5e9f0;
  border-radius: 9px;
  background: #fafbfc;
  font-size: 11px;
}
.case-logo-file small { color: #8a93a3; white-space: nowrap; }
.case-logo-actions { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; }
.case-logo-actions button {
  min-width: 106px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.case-logo-select { border: 1px solid #111; color: #fff; background: #111; }
.case-logo-delete { border: 1px solid #e4bfc2; color: #bd4148; background: #fff; }
.case-logo-delete:disabled { opacity: .42; cursor: not-allowed; }

@media (max-width: 900px) {
  .dosser-page-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .dosser-primary-action { align-self: flex-start; }
  .dosser-panel-head { align-items: flex-start; }
  .dosser-mobile-filter { display: inline-flex; }
  .dosser-toolbar .filterSwitcherElement { display: none; }
  .dosser-panel-head.show-mobile-tools { flex-wrap: wrap; }
  .dosser-panel-head.show-mobile-tools .dosser-toolbar { width: 100%; flex-wrap: wrap; }
  .dosser-panel-head.show-mobile-tools .filterSwitcherElement { display: flex; }
  .dosser-panel-head.show-mobile-tools .dosser-search { width: min(100%, 520px); flex: 1 1 300px; }
}

@media (max-width: 620px) {
  .dosser-page-head h1 { font-size: 16px; }
  .dosser-panel-head { padding: 15px; }
  .dosser-panel-title p { display: none; }
  .dosser-pagination { align-items: stretch; flex-direction: column; }
  .dosser-page-buttons { justify-content: center; }
  .dosser-page-size { justify-content: center; }
  #casePageSummary { text-align: center; }
  .dosser-panel .dataTables_wrapper > .row:last-child {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }
  .dosser-panel .dataTables_wrapper > .row:last-child > .col-sm-6 {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .dosser-panel .dataTables_paginate { text-align: center; }
  .dosser-panel .dataTables_paginate .pagination { justify-content: center; }
  .case-logo-uploader { grid-template-columns: 1fr; }
  .case-logo-preview { min-height: 240px; }
}
