:root{
  --bg:#f3f5f7;
  --panel:#ffffff;
  --line:#d9dee5;
  --text:#1d2430;
  --muted:#6b7280;
  --primary:#2f6fed;
  --primary2:#1e4fd6;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 30%, var(--bg) 100%);
  color:var(--text);
}

/* Top app frame */
.appbar{
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom:1px solid var(--line);
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
  position: sticky;
  top:0;
  z-index:10;
}

.appbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:10px 16px;
}

/* Menu line (Fichier/Configuration/...) */
.menurow{
  display:flex;
  gap:18px;
  font-size:14px;
  color:#2b3340;
  padding:2px 0 8px;
}
.menurow a{
  text-decoration:none;
  color:inherit;
}
.menurow a:hover{color:var(--primary)}

/* Icon modules */
.modules{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:8px 0 4px;
}
.module{
  width:120px;
  background: #fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 10px;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}
.module:hover{
  border-color: #c7d2fe;
  transform: translateY(-1px);
  transition:.15s ease;
}
.module .ico{
  width:44px;height:44px;
  border-radius:12px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary2) 100%);
  display:grid;
  place-items:center;
  color:white;
  font-weight:700;
  font-size:18px;
}
.module .label{
  font-size:13px;
  text-align:center;
  line-height:1.2;
}

/* Main container */
.container{
  max-width:1200px;
  margin:18px auto;
  padding:0 16px 30px;
}

/* Window / panel style */
.window{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  margin-bottom:16px;
}
.window-title{
  padding:12px 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.window-title h2{
  margin:0;
  font-size:16px;
}
.window-body{
  padding:14px;
}

/* Filters row like desktop */
.filters{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:10px;
}
.field label{
  font-size:12px;
  color:var(--muted);
  display:block;
  margin-bottom:4px;
}
.field input, .field select{
  width:100%;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  outline:none;
  background:#fff;
}
.field input:focus, .field select:focus{
  border-color:#bcd0ff;
  box-shadow: 0 0 0 3px rgba(47,111,237,.12);
}

/* Actions row */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.btn{
  border:1px solid var(--line);
  background:#fff;
  padding:9px 12px;
  border-radius:10px;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn.primary{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary2) 100%);
  color:#fff;
  border-color: transparent;
}
.btn:hover{filter:brightness(.98)}
.badge{
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  color:#2b3a67;
}

/* Table */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.table th{
  background:#f6f8fc;
  text-align:left;
  font-weight:600;
}
.table tr:last-child td{border-bottom:none}

/* Status colors */
.st-ok{background:#e8f7ea}
.st-warn{background:#fff7db}
.st-late{background:#fde7ea}
