﻿/* GED-WEB-4C1-A — Centre d'exploitation Courriers */

.exploitation-content {
  max-width: 1500px;
  margin: 0 auto;
}

.ops-head,
.ops-workspace {
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
}

.ops-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.ops-head h1 {
  margin: 2px 0 4px;
  font-size: 22px;
}

.ops-head p {
  margin: 0;
  max-width: 760px;
  color: #6b778c;
  font-size: 12px;
}

.ops-head-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.ops-head-actions .btn,
.ops-head-actions .btn-secondary {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}

.ops-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ops-kpis button {
  display: grid;
  gap: 2px;
  min-height: 82px;
  border: 1px solid #e0e7f0;
  border-radius: 11px;
  background: #fff;
  padding: 11px 12px;
  color: #263850;
  text-align: left;
  cursor: pointer;
}

.ops-kpis button:hover {
  border-color: #adc3e2;
  background: #fafcff;
}

.ops-kpis span {
  color: #66758c;
  font-size: 10px;
  font-weight: 700;
}

.ops-kpis strong {
  font-size: 21px;
  line-height: 1;
}

.ops-kpis small {
  color: #8a96a7;
  font-size: 9px;
}

.ops-workspace {
  overflow: hidden;
}

.ops-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ops-tabs button {
  display: grid;
  gap: 1px;
  min-width: 180px;
  border: 0;
  border-right: 1px solid #e3e9f1;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 10px 14px 9px;
  color: #526078;
  text-align: left;
  cursor: pointer;
}

.ops-tabs button span {
  font-size: 12px;
  font-weight: 800;
}

.ops-tabs button small {
  color: #8792a3;
  font-size: 9px;
}

.ops-tabs button.is-active {
  border-bottom-color: #245fbd;
  background: #fff;
  color: #163d78;
}

.ops-filters {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.7fr)
    repeat(6, minmax(110px, .72fr))
    92px
    auto;
  gap: 8px;
  align-items: end;
  padding: 11px 12px;
  border-bottom: 1px solid #e6ebf2;
}

.ops-filters label {
  min-width: 0;
}

.ops-filters label > span {
  display: block;
  margin: 0 0 3px;
  color: #66758c;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.ops-filters input,
.ops-filters select {
  width: 100%;
  height: 34px;
  border: 1px solid #d1dbe8;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  color: #263850;
  font: inherit;
  font-size: 11px;
}

.ops-filter-actions {
  display: flex;
  gap: 5px;
}

.ops-filter-actions .btn,
.ops-filter-actions .btn-secondary {
  height: 34px;
  padding: 6px 10px;
  font-size: 10px;
}

.ops-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid #edf1f5;
}

.ops-status > div {
  display: grid;
  gap: 2px;
}

.ops-status strong {
  font-size: 13px;
}

.ops-status span {
  color: #758298;
  font-size: 10px;
}

.ops-loading {
  height: 2px;
  overflow: hidden;
}

.ops-loading.is-visible::before {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  background: #2467c7;
  animation: ops-load 1s linear infinite alternate;
}

@keyframes ops-load {
  from { transform: translateX(0); }
  to { transform: translateX(190%); }
}

.ops-table-wrap {
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.ops-table th {
  padding: 8px 10px;
  border-bottom: 1px solid #dfe6ef;
  background: #fbfcfe;
  color: #647188;
  font-size: 9px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.ops-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf1f5;
  color: #34445b;
  font-size: 11px;
  vertical-align: middle;
}

.ops-table tbody tr:hover {
  background: #fafcff;
}

.ops-primary,
.ops-secondary,
.ops-treatment {
  display: grid;
  gap: 2px;
}

.ops-primary strong {
  color: #182d49;
  font-size: 12px;
}

.ops-primary span,
.ops-secondary strong {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-primary small,
.ops-secondary small,
.ops-treatment small {
  color: #7a8799;
  font-size: 9px;
}

.ops-secondary small {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 21px;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  padding: 3px 7px;
  color: #4d5d74;
  font-size: 9px;
  font-weight: 800;
}

.ops-badge.is-warning {
  background: #fff4db;
  color: #8b5a00;
}

.ops-badge.is-danger {
  background: #fdeceb;
  color: #a72a22;
}

.ops-badge.is-info {
  background: #e9f1fd;
  color: #245b9f;
}

.ops-badge.is-success {
  background: #e8f6ee;
  color: #1d7144;
}

.ops-due {
  display: inline-block;
  color: #596a82;
  font-size: 10px;
}

.ops-due.is-late {
  color: #b42318;
  font-weight: 800;
}

.ops-due.is-soon {
  color: #9b6500;
  font-weight: 700;
}

.ops-due.is-none,
.ops-muted {
  color: #939dad;
}

.ops-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ops-action {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid #d0dbea;
  border-radius: 7px;
  background: #fff;
  padding: 4px 7px;
  color: #285da5;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ops-action:hover {
  background: #f4f8fe;
}

.ops-action.is-primary {
  border-color: #8fb2e5;
  background: #edf4ff;
  color: #164f9c;
}

.ops-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.ops-pagination span {
  color: #68768a;
  font-size: 10px;
}

.ops-pagination .btn-secondary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}

.ops-empty {
  padding: 25px;
  color: #79869a;
  text-align: center;
}

.ops-mobile {
  display: none;
}

@media (max-width: 1320px) {
  .ops-kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .ops-filters {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .ops-search {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .ops-head {
    display: grid;
  }

  .ops-head-actions {
    justify-content: flex-start;
  }

  .ops-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .ops-tabs {
    overflow-x: auto;
  }

  .ops-tabs button {
    min-width: 150px;
  }

  .ops-filters {
    grid-template-columns: 1fr 1fr;
  }

  .ops-search {
    grid-column: 1 / -1;
  }

  .ops-filter-actions {
    grid-column: 1 / -1;
  }

  .ops-table-wrap {
    display: none;
  }

  .ops-mobile {
    display: grid;
    gap: 8px;
    padding: 10px;
  }

  .ops-mobile-card {
    display: grid;
    gap: 8px;
    border: 1px solid #dfe6ef;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
  }

  .ops-mobile-card header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .ops-mobile-card header > div {
    display: grid;
    gap: 2px;
  }

  .ops-mobile-card header strong {
    font-size: 12px;
  }

  .ops-mobile-card header span,
  .ops-mobile-card p {
    margin: 0;
    color: #68768a;
    font-size: 10px;
  }

  .ops-mobile-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #69788e;
    font-size: 9px;
  }
}

@media (max-width: 520px) {
  .ops-kpis,
  .ops-filters {
    grid-template-columns: 1fr;
  }

  .ops-search,
  .ops-filter-actions {
    grid-column: 1;
  }
}
