/* AYMEERConnect Marketing dashboard. Navy, orange, blue: the website's colours. */
:root { --navy:#0b1736; --orange:#e66020; --blue:#1e6fc4; --ink:#1b2333; --muted:#6b7385;
        --line:#e3e7ef; --bg:#f5f7fb; --good:#1a7f45; --bad:#b42318; --warn:#9a5b00; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--blue); }
code { background:#fff3e8; padding:1px 5px; border-radius:4px; }
.top { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 24px; background:var(--navy); color:#fff; }
.brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:700; }
.brand img { height:30px; background:#fff; border-radius:6px; padding:2px; }
.brand span { color:var(--orange); font-weight:600; }
.top nav { display:flex; align-items:center; gap:18px; }
.top nav a { color:#cfd8e6; text-decoration:none; }
.top nav a.on { color:#fff; font-weight:600; }
.top nav form { margin:0; }
main { max-width:1240px; margin:0 auto; padding:20px 24px 60px; }
.head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:6px 0 14px; }
h1 { font-size:24px; margin:0; color:var(--navy); }
h2 { font-size:15px; margin:22px 0 10px; color:var(--navy); text-transform:uppercase; letter-spacing:.04em; }
h3 { font-size:14px; margin:0 0 10px; color:var(--navy); }
.tabs { display:flex; gap:4px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:4px; }
.tabs a { padding:6px 12px; border-radius:7px; text-decoration:none; color:var(--muted); }
.tabs a.on { background:var(--navy); color:#fff; }
.panel { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:16px; }
.banner { margin:0; padding:10px 24px; }
main .banner { border-radius:10px; margin-bottom:14px; padding:10px 14px; }
.banner.warn { background:#fff4e0; color:var(--warn); }
.banner.bad { background:#fdecea; color:var(--bad); }
.banner.good { background:#e8f6ee; color:var(--good); }
.summary { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.muted { color:var(--muted); } .small { font-size:13px; } .good { color:var(--good); } .bad { color:var(--bad); }
.error { color:var(--bad); }
.row { display:flex; align-items:center; gap:8px; } .wrap { flex-wrap:wrap; }
.days { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px 16px; align-items:start; }
.day { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px 12px; }
.day h2 { margin:2px 0 10px; font-size:13px; }
.cards { display:flex; flex-direction:column; gap:10px; }
.card { display:flex; gap:12px; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:8px; text-decoration:none; color:inherit; transition:box-shadow .15s; }
.card:hover { box-shadow:0 4px 16px rgba(11,23,54,.08); }
.thumb { position:relative; flex:0 0 96px; height:96px; border-radius:8px; overflow:hidden; background:#eef1f6; display:flex; align-items:center; justify-content:center; }
.thumb img, .thumb video { width:100%; height:100%; object-fit:cover; }
.thumb .tag { position:absolute; bottom:4px; left:4px; background:var(--navy); color:#fff; font-size:11px; padding:1px 6px; border-radius:4px; }
.noimg { color:var(--muted); font-size:12px; text-align:center; padding:8px; }
.meta { min-width:0; flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.meta p { margin:4px 0; font-size:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.net { font-size:11px; font-weight:700; padding:1px 6px; border-radius:4px; color:#fff; }
.net.facebook { background:#1877f2; } .net.instagram { background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.pill { font-size:12px; font-weight:600; padding:2px 9px; border-radius:999px; white-space:nowrap; }
.pill.waiting { background:#fff4e0; color:var(--warn); } .pill.approved { background:#e8f0fc; color:var(--blue); }
.pill.held { background:#eceef2; color:#444; } .pill.posted { background:#e8f6ee; color:var(--good); }
.pill.failed { background:#fdecea; color:var(--bad); }
.btn { background:var(--orange); color:#fff; border:0; border-radius:8px; padding:9px 16px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; }
.btn.small { padding:6px 12px; } .btn.ghost { background:#fff; color:var(--navy); border:1px solid var(--line); }
.btn.danger { background:#fff; color:var(--bad); border:1px solid #f3c1bc; }
button.link { background:none; border:0; color:#cfd8e6; font:inherit; cursor:pointer; padding:0; }
.split { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:18px; align-items:start; }
@media (max-width: 900px) { .split { grid-template-columns:1fr; } .top { flex-wrap:wrap; } }
label { display:block; font-weight:600; font-size:13px; margin:10px 0 4px; }
input[type=text], input[type=url], input[type=date], input[type=time], input[type=email], input[type=password], select, textarea {
  display:block; width:100%; margin-top:4px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; font-weight:400; background:#fff; }
textarea { resize:vertical; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
fieldset { border:1px solid var(--line); border-radius:10px; margin:14px 0; padding:10px 14px; }
legend { font-weight:700; color:var(--navy); padding:0 6px; }
legend label { display:inline; margin:0; font-size:14px; }
.media-now img, .media-now video { max-width:220px; border-radius:8px; display:block; margin-bottom:6px; }
.preview img, .preview video { width:100%; display:block; }
.fb-post, .ig-post { border:1px solid var(--line); border-radius:10px; overflow:hidden; margin-bottom:18px; background:#fff; }
.who { display:flex; align-items:center; gap:8px; padding:10px; }
.who img { width:32px; height:32px; border-radius:50%; border:1px solid var(--line); }
.who div { display:flex; flex-direction:column; line-height:1.2; }
.pv-text { white-space:pre-wrap; margin:0; padding:10px; font-size:14px; }
.ig-post .noimg { height:200px; display:flex; align-items:center; justify-content:center; background:#eef1f6; }
.events { list-style:none; padding:0; margin:0; font-size:13px; } .events li { padding:4px 0; border-bottom:1px solid var(--line); }
table.log { width:100%; border-collapse:collapse; font-size:13px; }
table.log th, table.log td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
table.log tr.failed td, table.log tr.email_failed td, table.log tr.missed td { color:var(--bad); }
table.log tr.posted td, table.log tr.keys_ok td { color:var(--good); }
table.log tr.keys_problem td { color:var(--bad); }
body.login { display:flex; min-height:100vh; align-items:center; justify-content:center; background:var(--navy); }
.login-box { width:340px; }
.login-box h1 { font-size:19px; margin:6px 0 10px; }
.login-mark { height:44px; }
.login-box .btn { width:100%; margin-top:14px; }

.meta .row { flex-wrap:wrap; }
.brandname { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
