* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, sans-serif; background: #f6f3ee; color: #2d2a26;
       display: flex; flex-direction: column; height: 100vh; }
header { display: flex; align-items: center; gap: 16px; padding: 10px 18px;
         background: #fff; border-bottom: 2px solid #e8e2d8; }
header h1 { font-size: 20px; margin-right: auto; }
#money, #quota { font-weight: 600; font-size: 14px; }
button { border: 0; border-radius: 10px; padding: 9px 16px; font-size: 14px;
         cursor: pointer; background: #ece7df; }
#playpause { font-weight: 700; min-width: 120px; }
#playpause.playing { background: #fde2e2; }   /* affiche PAUSE quand ça tourne */
#playpause.paused  { background: #d9f5e0; }   /* affiche PLAY quand c'est en pause */
.badge { background: #ef4444; color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 12px; }
main { flex: 1; min-height: 0; }
#office { width: 100%; height: 100%; }
footer { background: #2d2a26; color: #f6f3ee; padding: 7px 0; overflow: hidden; }
#ticker-text { display: inline-block; white-space: nowrap; padding-left: 100%;
               animation: scroll 25s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }
#panel { position: fixed; top: 0; right: 0; width: 420px; height: 100vh; background: #fff;
         box-shadow: -6px 0 24px rgba(0,0,0,.12); padding: 18px; overflow-y: auto; z-index: 10; }
#panel.hidden, #modal.hidden { display: none; }
#panel-close { float: right; }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20;
         display: flex; align-items: center; justify-content: center; }
#modal-body { background: #fff; border-radius: 14px; padding: 22px; width: 560px;
              max-height: 80vh; overflow-y: auto; }
.journal-item { font-size: 13px; padding: 5px 0; border-bottom: 1px solid #f0ece4; }
.recl { border: 1px solid #e8e2d8; border-radius: 10px; padding: 12px; margin: 10px 0; }
.recl .type { font-weight: 700; font-size: 12px; color: #92400e; }
textarea, input[type=text] { width: 100%; padding: 8px; border: 1px solid #d6cfc2;
                             border-radius: 8px; font: inherit; margin: 8px 0; }
.btn-ok { background: #d9f5e0; } .btn-ko { background: #fde2e2; }
svg text { user-select: none; }
.agent-group { cursor: pointer; }
.rapport { border: 1px solid #e8e2d8; border-radius: 10px; padding: 12px; margin: 10px 0; }
.rapport.non-lu { border-left: 4px solid #f59e0b; background: #fffbf2; }
.rapport .contenu { white-space: pre-wrap; font-size: 13px; margin-top: 6px; }
.rapport .date { font-size: 11px; color: #8a8276; }
.livrable { display: flex; justify-content: space-between; gap: 10px; font-size: 13px;
            padding: 6px 4px; border-bottom: 1px solid #f0ece4; }
.livrable a { color: #1565c0; text-decoration: none; word-break: break-all; }
.badge:empty, .badge.zero { display: none; }
