/* Teksi Admin — compatible tous navigateurs */
:root {
  --tt-bg: #E9F1FA;
  --tt-primary: #00ABE4;
  --tt-primary-hover: #0096c7;
  --tt-primary-soft: #d7f1fb;
  --tt-white: #FFFFFF;
  --tt-ink: #0f172a;
  --tt-muted: #64748b;
  --tt-line: #c5d9ea;
  --tt-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --tt-radius: 14px;
  --tt-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #E9F1FA;
  color: #0f172a;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: #00ABE4; text-decoration: none; }
a:hover { color: #0096c7; }

.tt-shell {
  min-height: 100vh;
  background: #E9F1FA;
}

.tt-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  z-index: 100;
  background: #FFFFFF;
  border-right: 1px solid #c5d9ea;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 12px 24px;
  -webkit-transition: left 0.2s ease, width 0.2s ease;
  transition: left 0.2s ease, width 0.2s ease;
}

.tt-sidebar-top {
  overflow: hidden;
  margin-bottom: 12px;
}

.tt-brand {
  display: block;
  float: left;
  max-width: 150px;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  padding: 4px 0;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
}

.tt-brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 8px;
  background: #00ABE4;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.tt-brand-text {
  vertical-align: middle;
}

.tt-sidebar-toggle {
  float: right;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  border: 1px solid #c5d9ea;
  border-radius: 8px;
  background: #f7fbfe;
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  padding: 0;
}

.tt-sidebar-toggle:hover {
  background: #d7f1fb;
  color: #00ABE4;
}

.tt-sidebar-open {
  display: none;
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 110;
  width: 36px;
  height: 36px;
  border: 1px solid #c5d9ea;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0f172a;
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  padding: 0;
}

.tt-sidebar-open:hover {
  background: #d7f1fb;
  color: #00ABE4;
}

.tt-shell.is-collapsed .tt-sidebar {
  left: -230px;
}

.tt-shell.is-collapsed .tt-main {
  margin-left: 0;
  padding-left: 56px;
}

.tt-shell.is-collapsed .tt-sidebar-open {
  display: block;
}

.tt-nav {
  display: block;
  clear: both;
  width: 100%;
}

.tt-nav-label {
  margin: 14px 6px 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
  background: #dbe7f2;
  border: 1px solid #b9cfe0;
  border-radius: 8px;
}

.tt-nav-label:first-child {
  margin-top: 0;
}

.tt-nav a {
  display: block;
  padding: 9px 12px;
  margin: 0 0 4px;
  border-radius: 8px;
  color: #64748b !important;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.tt-nav a:hover {
  background: #d7f1fb;
  color: #00ABE4 !important;
}

.tt-nav a.active {
  background: #00ABE4 !important;
  border-color: #00ABE4;
  color: #FFFFFF !important;
}

.tt-nav-toggle { display: none !important; }
.tt-nav-group, .tt-nav-sep, .tt-topbar, .tt-topbar-inner { display: none !important; }

.tt-main {
  margin-left: 220px;
  max-width: none;
  padding: 24px 28px 48px;
  min-height: 100vh;
  -webkit-transition: margin-left 0.2s ease, padding-left 0.2s ease;
  transition: margin-left 0.2s ease, padding-left 0.2s ease;
}

@media screen and (max-width: 768px) {
  .tt-sidebar {
    position: relative;
    width: auto;
    bottom: auto;
    border-right: none;
    border-bottom: 1px solid #c5d9ea;
    overflow: visible;
  }
  .tt-shell.is-collapsed .tt-sidebar {
    display: none;
    left: auto;
  }
  .tt-nav a {
    display: inline-block;
    margin: 0 4px 6px 0;
  }
  .tt-nav-label {
    display: none;
  }
  .tt-main,
  .tt-shell.is-collapsed .tt-main {
    margin-left: 0;
    padding: 16px;
    padding-left: 16px;
  }
  .tt-shell.is-collapsed .tt-main {
    padding-top: 56px;
  }
}

.tt-page-head { margin-bottom: 18px; }
.tt-page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}
.tt-page-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.tt-section-label {
  margin: 10px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.tt-card {
  background: #FFFFFF;
  border: 1px solid #c5d9ea;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.tt-card-pad { padding: 18px; }

/* Flex wrap = plus fiable que CSS Grid sur vieux navigateurs */
.tt-kpi-grid {
  display: block;
  margin: 0 -7px 18px;
  overflow: hidden;
}
.tt-kpi-grid:after {
  content: "";
  display: table;
  clear: both;
}

.tt-kpi {
  float: left;
  width: calc(25% - 14px);
  margin: 0 7px 14px;
  background: #FFFFFF;
  border: 1px solid #c5d9ea;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  padding: 16px;
  min-height: 110px;
}

@media screen and (max-width: 1100px) {
  .tt-kpi { width: calc(50% - 14px); }
}
@media screen and (max-width: 640px) {
  .tt-kpi { width: calc(100% - 14px); float: none; }
}

.tt-kpi-top {
  overflow: hidden;
  margin-bottom: 8px;
}
.tt-kpi-label {
  float: left;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.tt-kpi-icon {
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d7f1fb;
  color: #00ABE4;
  text-align: center;
  line-height: 34px;
  font-size: 14px;
  font-weight: 700;
}

.tt-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0;
}
.tt-kpi-value small {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.tt-kpi-meta {
  font-size: 12px;
  color: #64748b;
}

.tt-panel-grid {
  overflow: hidden;
  margin: 0 -7px 24px;
}
.tt-panel-grid > .tt-card {
  float: left;
  width: calc(50% - 14px);
  margin: 0 7px 14px;
}
@media screen and (max-width: 900px) {
  .tt-panel-grid > .tt-card {
    width: calc(100% - 14px);
    float: none;
  }
}

.tt-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #c5d9ea;
}
.tt-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.tt-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.tt-list li {
  overflow: hidden;
  padding: 11px 16px;
  border-bottom: 1px solid #eef4f9;
}
.tt-list .name { float: left; font-weight: 600; }
.tt-list .qty {
  float: right;
  font-size: 12px;
  font-weight: 600;
  color: #00ABE4;
  background: #d7f1fb;
  padding: 4px 10px;
  border-radius: 999px;
}

.tt-toolbar { margin-bottom: 14px; }
.tt-select, .tt-input {
  border: 1px solid #c5d9ea;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #0f172a;
}

.tt-btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tt-btn-primary { background: #00ABE4; color: #fff; }
.tt-btn-primary:hover { background: #0096c7; color: #fff; }
.tt-btn-ghost {
  background: #fff;
  color: #0f172a;
  border: 1px solid #c5d9ea;
}

.tt-table-wrap {
  overflow-x: auto;
  border: 1px solid #c5d9ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.tt-table {
  width: 100%;
  border-collapse: collapse;
}
.tt-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f7fbfe;
  padding: 12px 14px;
  border-bottom: 1px solid #c5d9ea;
  font-weight: 700;
}
.tt-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef4f9;
}
.tt-table .num {
  text-align: right;
  font-weight: 600;
}
.tt-table a.day-link {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}
.tt-table a.day-link:hover { color: #00ABE4; }

.tt-section-title {
  margin: 24px 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.tt-split-2 { overflow: hidden; margin: 0 -7px 8px; }
.tt-split-2 > div {
  float: left;
  width: calc(50% - 14px);
  margin: 0 7px 14px;
}
@media screen and (max-width: 900px) {
  .tt-split-2 > div {
    width: calc(100% - 14px);
    float: none;
  }
}

.navbar { display: none !important; }

/* Icônes texte simples — pas de mask CSS (compatible partout) */
.tt-ico {
  display: none !important;
}
.tt-kpi-icon .tt-ico { display: none !important; }
