@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
/* KPX layout overrides for local Postiz.
   Injected by nginx sub_filter (see nginx.conf mount in docker-compose.yml).
   Pure CSS: delete this file's <link> injection to get stock Postiz back. */

/* ---- Week / day calendar: compact rows so a working day fits on screen ---- */
.min-h-\[70px\] { min-height: 34px !important; }
[class*="grid-template-columns:136px_repeat(7"] {
  grid-template-columns: 52px repeat(7, minmax(0, 1fr)) !important;
  gap: 2px !important;
}
[class*="grid-template-columns:136px_repeat(7"] > .h-\[62px\] { height: 44px !important; }
.text-newTableText.pe-4 { padding: 0 6px 0 0 !important; font-size: 11px !important; justify-content: flex-end !important; align-items: flex-start !important; }
.repeated-strip, .rounded-\[8px\].min-h-\[70px\] { border-radius: 4px !important; }

/* ---- Channels panel: narrower, tighter list ---- */
.w-\[260px\] { width: 230px !important; }
.bg-newBgColorInner.p-\[20px\].gap-\[15px\] { padding: 14px !important; gap: 8px !important; }

/* ---- Project picker: the channel rows of the chosen project are lit (kpx-overrides.js) ---- */
.group\/profile.kpx-pick { background: rgba(255,45,120,.14) !important; box-shadow: inset 3px 0 0 #FF2D78; border-radius: 8px; }

/* ---- Mike look: Inter, neutral greys, ink buttons instead of Postiz purple ---- */
body, body * { font-family: Inter, -apple-system, "Helvetica Neue", sans-serif !important; }
body { font-size: 13px; letter-spacing: -0.005em; }
:root .light {
  --new-bgColor: #fafafa; --new-bgColorInner: #fff; --new-border: #ececec; --new-bgLineColor: #ececec; --new-sep: #e5e5e5;
  --new-textItemFocused: #171717; --new-textItemBlur: #737373; --new-boxFocused: #f0f0f0; --new-btn-simple: #f5f5f5;
  --new-btn-primary: #171717; --new-box-hover: #f7f7f7; --new-table-border: #ececec; --new-table-header: #fafafa;
  --new-table-text: #737373; --new-col-color: #f5f5f5; --new-settings: #f5f5f5;
}
:root .dark {
  --new-bgColor: #0a0a0a; --new-bgColorInner: #141414; --new-border: #222; --new-bgLineColor: #1e1e1e; --new-sep: #2a2a2a;
  --new-textItemBlur: #8a8a8a; --new-btn-simple: #1f1f1f; --new-btn-primary: #2a2a2a; --new-box-hover: #1a1a1a;
  --new-table-border: #222; --new-table-header: #141414; --new-table-text: #8a8a8a; --new-col-color: #1c1c1c; --new-settings: #1c1c1c;
}

/* ---- Channels column = one row per project: no network badge, smaller type ---- */
.sidebar .group\/profile img.absolute.z-10, .w-\[260px\] .group\/profile img.absolute.z-10 { display: none !important; }
.sidebar .group\/profile, .w-\[260px\] .group\/profile { gap: 10px !important; padding: 6px 8px !important; border-radius: 8px; }
.sidebar .group\/profile img.min-w-\[36px\], .w-\[260px\] .group\/profile img.min-w-\[36px\] { width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; border-radius: 6px !important; }
.sidebar .gap-\[12px\].flex.flex-col.relative:has(> .group\/profile), .w-\[260px\] .gap-\[12px\].flex.flex-col.relative:has(> .group\/profile) { gap: 2px !important; }
.sidebar .group\/profile .flex-1, .w-\[260px\] .group\/profile .flex-1 { font-size: 13px !important; font-weight: 500 !important; }
.w-\[260px\] .text-\[20px\], .w-\[260px\] .text-\[18px\] { font-size: 14px !important; }

/* ---- Left icon rail folded into the "Settings ▾" menu top right (kpx-overrides.js) ---- */
.w-\[80px\]:has(a[href="/agents"]) { display: none !important; }
#kpx-menu { position: relative; display: flex; align-items: center; }
#kpx-menu > button { font: 500 13px Inter, sans-serif; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--new-border); background: var(--new-bgColorInner); color: inherit; cursor: pointer; }
#kpx-menu .kpx-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; min-width: 170px; padding: 6px; border-radius: 10px; border: 1px solid var(--new-border); background: var(--new-bgColorInner); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; }
#kpx-menu .kpx-pop[hidden] { display: none; }
#kpx-menu .kpx-pop a { padding: 7px 10px; border-radius: 6px; font-size: 13px; color: inherit; text-decoration: none; }
#kpx-menu .kpx-pop a:hover, #kpx-menu .kpx-pop a.on { background: rgba(128,128,128,.16); }
.group\/profile.kpx-focus { outline: 2px solid #FF2D78 !important; outline-offset: -2px; border-radius: 8px; }

/* ---- Collapsed Projects column (sidebar w-[100px]): same one-row-per-project look, no network badges ---- */
.sidebar.w-\[100px\] .group\/profile { justify-content: center; }
/* ---- Focus button (kpx-overrides.js): beside Settings, lit while only one project is showing ---- */
#kpx-focus { font: 500 13px Inter, sans-serif; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--new-border); background: var(--new-bgColorInner); color: inherit; cursor: pointer; }
#kpx-focus[hidden] { display: none; }
#kpx-focus.on { background: #FF2D78; border-color: #FF2D78; color: #fff; }
/* ---- ⋮ menu: Create Post chat and Stats panel (kpx-overrides.js); sidebar Create Post / Add Channel hidden ---- */
.kpx-gone { display: none !important; }
.kpx-panel { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: min(460px, calc(100vw - 32px)); max-height: 80vh; display: flex; flex-direction: column; background: var(--new-bgColorInner, #fff); color: rgb(var(--new-textColor, 20 22 26)); border: 1px solid var(--new-border, #ddd); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); font: 14px/1.45 Inter, sans-serif; }
#kpx-stats { width: min(1000px, calc(100vw - 32px)); }
.kpx-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--new-border, #ddd); }
.kpx-panel header button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; }
.kpx-body { padding: 12px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.kpx-log { display: flex; flex-direction: column; gap: 8px; overflow: auto; max-height: 52vh; }
.kpx-msg { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--new-border, #ddd); }
.kpx-msg.me { align-self: flex-end; background: rgba(127,127,127,.12); }
.kpx-text { margin: 6px 0 10px; white-space: normal; }
.kpx-meta, .kpx-hint { font-size: 12px; opacity: .7; margin: 0; }
.kpx-panel form { display: flex; gap: 8px; align-items: flex-end; }
.kpx-panel textarea { flex: 1; resize: vertical; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--new-border, #ddd); background: transparent; color: inherit; }
.kpx-panel button[type=submit], .kpx-go { font: 600 13px Inter, sans-serif; padding: 8px 12px; border-radius: 8px; border: 0; cursor: pointer; color: var(--new-bgColorInner, #fff); background: rgb(var(--new-textColor, 20 22 26)); }
.kpx-panel button:disabled { opacity: .5; cursor: default; }
.kpx-count { display: flex; flex-wrap: wrap; gap: 8px; }
.kpx-count span { border: 1px solid var(--new-border, #ddd); border-radius: 999px; padding: 4px 12px; }
.kpx-panel table { border-collapse: collapse; width: 100%; font-size: 13px; }
.kpx-panel th, .kpx-panel td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--new-border, #ddd); white-space: nowrap; }
.kpx-panel th:first-child, .kpx-panel td:first-child { text-align: left; white-space: normal; }
.kpx-panel tr.mine td { background: rgba(127,127,127,.08); }
.kpx-panel a { color: inherit; }
.kpx-flag { color: #e5484d; font-weight: 600; }
/* Projects with no channel connected yet (kpx-overrides.js NOT_CONNECTED) */
.group\/profile.kpx-nc { opacity: .8; cursor: pointer; }
.kpx-nc-tag { margin-inline-start: 8px; padding: 1px 6px; border-radius: 999px; font-size: 10px; line-height: 16px; white-space: nowrap;
  color: #FFB4C8; background: rgba(255,45,120,.12); border: 1px solid rgba(255,45,120,.35); }
