.app{
  display:grid;
  grid-template-columns:var(--sidebarW) 1fr;
  min-height:100vh;
    background:#f8fafc;
}

.main{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.content{
  padding:18px;
  padding-bottom:18px;
  background: #f8fafc;
}

.grid{
  display:grid;
  grid-template-columns:1.4fr .9fr;
  gap:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  min-width:0;
}

.card h3{
  margin:0 0 10px;
  font-size:15px;
}

.card-full{
  grid-column:1 / -1;
}

.grid .card-full{
  grid-column:1 / -1 !important;
}

.muted{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

@media (max-width:980px){
  .grid{grid-template-columns:1fr}
}

@media (max-width:760px){
  .app{grid-template-columns:1fr}
  .content{padding-bottom:calc(var(--bottomH) + 16px)}
}

/* ── To Top button ── */
.toTop {
  position: fixed;
  bottom: calc(var(--bottomH) + 14px);
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, color .15s, border-color .15s;
  z-index: 90;
}

.toTop.visible {
  opacity: 1;
  pointer-events: auto;
}

.toTop:hover {
  border-color: #e8751a;
  color: #e8751a;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 0;
  font-size: 12px;
  color: #94a3b8;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.footerGrid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer .links {
  display: flex;
  gap: 16px;
}

.footer .links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}

.footer .links a:hover {
  color: #e8751a;
}

.ksk-table-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
  overflow:hidden;
}
.ksk-table thead th{
  font-size:14px;
  font-weight:700;
  border-bottom:1px solid #e5e7eb;
  padding : 10px;
}
@media (max-width: 760px) {
  .footer { padding-bottom: calc(var(--bottomH) + 18px); }
  .footerGrid { flex-direction: column; align-items: flex-start; gap: 8px; }
  .toTop { bottom: calc(var(--bottomH) + 10px); }
}

#kskSaveToast {
  position: fixed;
  bottom: calc(var(--bottomH) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.ksk-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e8751a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Bottom bar : simple point sans chiffre */
.ksk-msg-badge--dot {
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

.ksk-bottom-msg {
    position: relative;
}