/*!
 * VM Takvim / Ajanda — ön yüz stilleri
 * Tüm kurallar .vmaj-ui altında kapsüllenir; temayı etkilemez. Ana renk PHP tarafından değişken olarak verilir.
 */
.vmaj-ui {
  --vmaj-primary: #1a2d52;
  --vmaj-primary-dark: #12203b;
  --vmaj-rgb: 26, 45, 82;
  --vmaj-text: #1f2937;
  --vmaj-muted: #6b7280;
  --vmaj-line: #dfe4ee;
  --vmaj-bg: #f4f6fa;
  --vmaj-card: #ffffff;
  --vmaj-radius: 14px;

  /* durum renkleri (vm post it ile aynı: sarı / mavi / yeşil / kırmızı) */
  --s-todo: #f2c200;       --s-todo-line: #d9a900;  --s-todo-bg: rgba(255, 208, 0, .13);   --s-todo-ink: #7a5c00;
  --s-doing: #4299e1;      --s-doing-line: #2b6cb0; --s-doing-bg: rgba(66, 153, 225, .11); --s-doing-ink: #1d5a99;
  --s-done: #48bb78;       --s-done-line: #2f855a;  --s-done-bg: rgba(72, 187, 120, .13);  --s-done-ink: #1f6b43;
  --s-late: #f56565;       --s-late-line: #c53030;  --s-late-bg: rgba(245, 101, 101, .11); --s-late-ink: #a12626;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  color: var(--vmaj-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.vmaj-ui *, .vmaj-ui *::before, .vmaj-ui *::after { box-sizing: border-box; }
.vmaj-ui :where(h3, h4, p) { margin: 0; padding: 0; letter-spacing: 0; text-transform: none; }
.vmaj-ui :where(button) { font: inherit; color: inherit; cursor: pointer; }
.vmaj-ui [hidden] { display: none !important; }
.vmaj-ui :where(a) { color: var(--vmaj-primary); }
.vmaj-noscroll { overflow: hidden !important; }

/* durum renk sınıfları (kart, düğme, nokta, çubuk için ortak değişkenler) */
.vmaj-s-todo  { --c: var(--s-todo);  --c-line: var(--s-todo-line);  --c-bg: var(--s-todo-bg);  --c-ink: var(--s-todo-ink); }
.vmaj-s-doing { --c: var(--s-doing); --c-line: var(--s-doing-line); --c-bg: var(--s-doing-bg); --c-ink: var(--s-doing-ink); }
.vmaj-s-done  { --c: var(--s-done);  --c-line: var(--s-done-line);  --c-bg: var(--s-done-bg);  --c-ink: var(--s-done-ink); }
.vmaj-s-late  { --c: var(--s-late);  --c-line: var(--s-late-line);  --c-bg: var(--s-late-bg);  --c-ink: var(--s-late-ink); }

.vmaj-ic { display: inline-flex; flex: 0 0 auto; line-height: 0; vertical-align: middle; }
.vmaj-ic svg { width: 1.15em; height: 1.15em; }
.vmaj-pre { white-space: pre-line; }
.vmaj-hint { color: var(--vmaj-muted); font-size: 13px; }
.vmaj-center { text-align: center; padding: 8px 0; }
.vmaj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* yükleniyor */
.vmaj-boot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--vmaj-muted); }
.vmaj-spin { width: 20px; height: 20px; border: 3px solid var(--vmaj-line); border-top-color: var(--vmaj-primary); border-radius: 50%; animation: vmaj-rot .8s linear infinite; }
@keyframes vmaj-rot { to { transform: rotate(360deg); } }
.vmaj-skel { height: 120px; border-radius: var(--vmaj-radius); margin-bottom: 12px; background: linear-gradient(90deg, #eef1f6 25%, #f7f8fb 37%, #eef1f6 63%); background-size: 400% 100%; animation: vmaj-sh 1.3s ease infinite; }
@keyframes vmaj-sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.vmaj-content.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ------------------------------------------------------------------ */
/* Üst çubuk + sekmeler                                                */
/* ------------------------------------------------------------------ */
.vmaj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.vmaj-tabs { display: flex; gap: 6px; background: var(--vmaj-bg); border: 1px solid var(--vmaj-line); border-radius: 999px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.vmaj-tabs::-webkit-scrollbar { display: none; }
.vmaj-tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--vmaj-muted); transition: background .15s, color .15s; }
.vmaj-tab:hover { color: var(--vmaj-primary); }
.vmaj-tab.is-active { background: var(--vmaj-primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--vmaj-rgb), .28); }
.vmaj-head-act { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ */
/* Düğme / form elemanları                                             */
/* ------------------------------------------------------------------ */
.vmaj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--vmaj-line); background: #fff; color: var(--vmaj-text); border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.vmaj-btn:hover { border-color: var(--vmaj-primary); color: var(--vmaj-primary); }
.vmaj-btn:focus-visible, .vmaj-iconbtn:focus-visible, .vmaj-tab:focus-visible, .vmaj-q:focus-visible, .vmaj-chip:focus-visible, .vmaj-st:focus-visible { outline: 3px solid rgba(var(--vmaj-rgb), .35); outline-offset: 1px; }
.vmaj-btn.is-primary { background: var(--vmaj-primary); border-color: var(--vmaj-primary); color: #fff; }
.vmaj-btn.is-primary:hover { background: var(--vmaj-primary-dark); border-color: var(--vmaj-primary-dark); color: #fff; }
.vmaj-btn.is-danger { border-color: #e53e3e; color: #c53030; }
.vmaj-btn.is-danger:hover { background: #e53e3e; color: #fff; }
.vmaj-btn.is-ghost { background: transparent; }
.vmaj-btn.is-on { background: rgba(var(--vmaj-rgb), .1); border-color: var(--vmaj-primary); color: var(--vmaj-primary); }
.vmaj-btn.is-sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.vmaj-btn.vmaj-block { width: 100%; }
.vmaj-btn:disabled { opacity: .55; cursor: not-allowed; }
.vmaj-btn.vmaj-s-todo, .vmaj-btn.vmaj-s-doing, .vmaj-btn.vmaj-s-done { border-color: var(--c-line); background: var(--c-bg); color: var(--c-ink); }

.vmaj-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--vmaj-line); background: #fff; border-radius: 10px; color: var(--vmaj-muted); padding: 0; }
.vmaj-iconbtn:hover { border-color: var(--vmaj-primary); color: var(--vmaj-primary); }
.vmaj-iconbtn.is-danger:hover { border-color: #e53e3e; color: #c53030; background: #fff5f5; }
.vmaj-iconbtn.is-sm { width: 28px; height: 28px; border-radius: 8px; }
.vmaj-iconbtn.is-sm .vmaj-ic svg { width: 14px; height: 14px; }
.vmaj-link { border: 0; background: none; padding: 0; color: var(--vmaj-primary); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.vmaj-x { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; color: var(--vmaj-muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vmaj-x:hover { background: var(--vmaj-bg); color: var(--vmaj-text); }

.vmaj-in { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--vmaj-line); background: #fff; color: var(--vmaj-text); border-radius: 10px; font: inherit; font-size: 15px; line-height: 1.35; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.vmaj-in:focus { outline: 0; border-color: var(--vmaj-primary); box-shadow: 0 0 0 3px rgba(var(--vmaj-rgb), .15); }
textarea.vmaj-in { resize: vertical; min-height: 96px; }
.vmaj-in.is-sm { min-height: 34px; padding: 5px 10px; font-size: 13px; width: auto; }
.vmaj-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.vmaj-field > span { font-weight: 700; font-size: 13px; color: var(--vmaj-text); }
.vmaj-field > small { color: var(--vmaj-muted); font-size: 12.5px; }
.vmaj-check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; }
.vmaj-check input { width: 18px; height: 18px; accent-color: var(--vmaj-primary); }
.vmaj-err { background: #fff5f5; border: 1px solid #feb2b2; color: #9b2c2c; border-radius: 10px; padding: 9px 12px; font-size: 14px; }

.vmaj-seg { display: inline-flex; background: var(--vmaj-bg); border: 1px solid var(--vmaj-line); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; }
.vmaj-seg > button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--vmaj-muted); white-space: nowrap; }
.vmaj-seg > button.is-on { background: #fff; color: var(--vmaj-primary); box-shadow: 0 1px 4px rgba(15, 23, 42, .14); }
.vmaj-seg > button:hover { color: var(--vmaj-primary); }

.vmaj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vmaj-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--vmaj-line); background: #fff; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--vmaj-text); }
.vmaj-chip em { font-style: normal; font-size: 11.5px; color: var(--vmaj-muted); }
.vmaj-chip:hover { border-color: var(--vmaj-primary); }
.vmaj-chip.is-on { background: rgba(var(--vmaj-rgb), .1); border-color: var(--vmaj-primary); color: var(--vmaj-primary); }
.vmaj-chip.vmaj-s-todo, .vmaj-chip.vmaj-s-doing, .vmaj-chip.vmaj-s-done { --dotc: var(--c); }
.vmaj-chip.vmaj-s-todo.is-on, .vmaj-chip.vmaj-s-doing.is-on, .vmaj-chip.vmaj-s-done.is-on { background: var(--c-bg); border-color: var(--c-line); color: var(--c-ink); }
.vmaj-chip-x { display: inline-flex; border: 0; background: transparent; padding: 0; color: inherit; opacity: .7; }
.vmaj-chip-x:hover { opacity: 1; }
.vmaj-chip-x .vmaj-ic svg { width: 14px; height: 14px; }
.vmaj-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--vmaj-muted)); border: 2px solid var(--c-line, transparent); flex: 0 0 auto; }
.vmaj-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--vmaj-primary); color: #fff; border-radius: 999px; font-size: 11.5px; }

.vmaj-tagsbox { width: 100%; }
.vmaj-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--vmaj-line); border-radius: 10px; background: #fff; min-height: 44px; }
.vmaj-tags:focus-within { border-color: var(--vmaj-primary); box-shadow: 0 0 0 3px rgba(var(--vmaj-rgb), .15); }
.vmaj-tags-in { flex: 1 1 140px; min-width: 120px; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 14px; padding: 4px 6px !important; }

/* ------------------------------------------------------------------ */
/* Yerleşim: sol filtre çubuğu + içerik (vm post it "Tüm notlarım" gibi) */
/* ------------------------------------------------------------------ */
.vmaj-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.vmaj-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--vmaj-card); border: 1px solid var(--vmaj-line); border-radius: var(--vmaj-radius); padding: 14px; box-shadow: 0 2px 10px rgba(15, 23, 42, .04); scrollbar-width: thin; }
.vmaj-side-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.vmaj-search { position: relative; margin-bottom: 14px; }
.vmaj-search .vmaj-ic { position: absolute; left: 12px; top: 12px; color: var(--vmaj-muted); pointer-events: none; }
.vmaj-search .vmaj-in { padding-left: 38px; }
.vmaj-sec { margin-bottom: 16px; }
.vmaj-sec-t { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vmaj-muted); margin: 0 0 6px; }
.vmaj-sec-row { display: flex; align-items: center; justify-content: space-between; }
.vmaj-sec-act { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.vmaj-sec select.vmaj-in { margin-bottom: 12px; }

.vmaj-q { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--vmaj-text); }
.vmaj-q:hover { background: var(--vmaj-bg); }
.vmaj-q.is-active { background: rgba(var(--vmaj-rgb), .1); color: var(--vmaj-primary); }
.vmaj-q .vmaj-ic { color: var(--vmaj-muted); }
.vmaj-q.is-active .vmaj-ic { color: var(--vmaj-primary); }
.vmaj-q-l { flex: 1; line-height: 1.3; }
.vmaj-q-n { min-width: 24px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--vmaj-bg); font-size: 12px; font-weight: 700; color: var(--vmaj-muted); }
.vmaj-q-n:empty { display: none; }
.vmaj-q.is-active .vmaj-q-n { background: var(--vmaj-primary); color: #fff; }
.vmaj-days { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px 38px; font-size: 12.5px; color: var(--vmaj-muted); }
.vmaj-days-in { width: 64px; min-height: 32px; padding: 3px 8px; text-align: center; font-weight: 700; }
.vmaj-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vmaj-dates label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--vmaj-muted); }
.vmaj-dates .vmaj-in { padding: 7px 8px; font-size: 13px; min-height: 38px; }

.vmaj-f { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.vmaj-f.is-active { background: rgba(var(--vmaj-rgb), .1); }
.vmaj-f-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.vmaj-f-b:hover { background: var(--vmaj-bg); }
.vmaj-f.is-active .vmaj-f-b { color: var(--vmaj-primary); }
.vmaj-f-b .vmaj-ic { color: var(--vmaj-muted); }
.vmaj-f-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmaj-f-b em { font-style: normal; font-size: 12px; color: var(--vmaj-muted); }
.vmaj-tagwrap { display: inline-flex; align-items: center; gap: 3px; }
.vmaj-side-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--vmaj-line); }
.vmaj-only-mobile { display: none; }
.vmaj-scrim { display: none; }

/* ------------------------------------------------------------------ */
/* Araç çubuğu                                                         */
/* ------------------------------------------------------------------ */
.vmaj-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.vmaj-bar-t { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.vmaj-ui .vmaj-bar-t h3 { font-size: 20px; font-weight: 800; color: var(--vmaj-primary); line-height: 1.25; }
.vmaj-count { font-size: 13px; color: var(--vmaj-muted); white-space: nowrap; }
.vmaj-bar-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vmaj-sort { width: auto; max-width: 230px; min-height: 40px; }
.vmaj-filterbtn { display: none; }
.vmaj-fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vmaj-fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(var(--vmaj-rgb), .35); background: rgba(var(--vmaj-rgb), .07); color: var(--vmaj-primary); padding: 4px 6px 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.vmaj-fchip .vmaj-ic svg { width: 14px; height: 14px; }
.vmaj-fchip:hover { background: rgba(var(--vmaj-rgb), .14); }

.vmaj-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 12px; background: rgba(var(--vmaj-rgb), .07); border: 1px solid rgba(var(--vmaj-rgb), .3); border-radius: 12px; }
.vmaj-bulk-n { font-weight: 800; color: var(--vmaj-primary); margin-right: 4px; }

/* ------------------------------------------------------------------ */
/* Kart (not çevresi duruma göre renkli)                               */
/* ------------------------------------------------------------------ */
.vmaj-group { margin-bottom: 8px; }
.vmaj-ui .vmaj-group-t { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vmaj-muted); margin: 14px 2px 8px; }
.vmaj-card { position: relative; background-color: #fff; background-image: linear-gradient(var(--c-bg), var(--c-bg)); border: 2px solid var(--c); border-radius: var(--vmaj-radius); padding: 13px 16px 12px 20px; margin-bottom: 12px; box-shadow: inset 6px 0 0 var(--c), 0 2px 8px rgba(15, 23, 42, .05); transition: box-shadow .15s, transform .15s; }
.vmaj-card:hover { box-shadow: inset 6px 0 0 var(--c), 0 6px 18px rgba(15, 23, 42, .09); }
.vmaj-card.is-sel { outline: 3px solid rgba(var(--vmaj-rgb), .4); outline-offset: 1px; }
.vmaj-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 4px; }
.vmaj-date { display: inline-flex; align-items: center; gap: 7px; color: var(--c-ink); font-size: 14px; }
.vmaj-date strong { font-weight: 800; letter-spacing: .01em; }
.vmaj-tag { background: var(--c); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; }
.vmaj-s-todo .vmaj-tag { color: #4d3b00; }
.vmaj-rem { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(15, 23, 42, .06); color: var(--vmaj-muted); white-space: nowrap; }
.vmaj-rem.is-info { background: rgba(var(--vmaj-rgb), .09); color: var(--vmaj-primary); }
.vmaj-rem.is-warn { background: #fff1d6; color: #9a5b00; }
.vmaj-rem.is-late { background: #fde2e2; color: #a12626; }
.vmaj-rem.is-ok { background: #dcf5e6; color: #1f6b43; }
.vmaj-cb { width: 20px; height: 20px; accent-color: var(--vmaj-primary); }
.vmaj-ui .vmaj-card-title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--vmaj-text); margin: 2px 0 4px; word-break: break-word; }
.vmaj-ui .vmaj-s-done .vmaj-card-title { text-decoration: line-through; text-decoration-color: rgba(31, 107, 67, .55); color: #4b5563; }
.vmaj-text { font-size: 14.5px; color: #374151; white-space: pre-wrap; word-break: break-word; }
.vmaj-text.is-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vmaj-text a { word-break: break-all; }
.vmaj-textwrap .vmaj-link { margin-top: 2px; }
.vmaj-mynote { margin-top: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .75); border-left: 3px solid var(--c-line); border-radius: 0 8px 8px 0; font-size: 14px; }
.vmaj-mynote b { display: block; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 2px; }
.vmaj-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.vmaj-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .85); border: 1px solid var(--vmaj-line); color: #4b5563; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.vmaj-pill .vmaj-ic svg { width: 13px; height: 13px; }
.vmaj-pill.is-pub { color: var(--vmaj-primary); border-color: rgba(var(--vmaj-rgb), .3); }
.vmaj-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(15, 23, 42, .14); }
.vmaj-acts { display: inline-flex; align-items: center; gap: 6px; }

.vmaj-statusseg { background: rgba(255, 255, 255, .8); }
.vmaj-st { color: var(--vmaj-muted); }
.vmaj-st .vmaj-ic svg { width: 14px; height: 14px; }
.vmaj-statusseg > .vmaj-st.is-on { background: var(--c); color: #fff; box-shadow: none; }
.vmaj-statusseg > .vmaj-st.vmaj-s-todo.is-on { color: #4d3b00; }
.vmaj-statusseg > .vmaj-st:not(.is-on):hover { background: var(--c-bg); color: var(--c-ink); }

.vmaj-more { text-align: center; margin: 8px 0 4px; }
.vmaj-empty { text-align: center; color: var(--vmaj-muted); padding: 44px 16px; border: 2px dashed var(--vmaj-line); border-radius: var(--vmaj-radius); background: #fff; }
.vmaj-empty p { margin: 8px 0 14px; }
.vmaj-bigic { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(var(--vmaj-rgb), .09); color: var(--vmaj-primary); margin-bottom: 6px; }
.vmaj-bigic svg { width: 30px; height: 30px; }
.vmaj-lock { text-align: center; max-width: 520px; margin: 24px auto; padding: 32px 22px; background: #fff; border: 1px solid var(--vmaj-line); border-radius: 18px; box-shadow: 0 8px 28px rgba(15, 23, 42, .07); }
.vmaj-ui .vmaj-lock h3 { font-size: 20px; font-weight: 800; color: var(--vmaj-primary); margin: 6px 0 8px; }
.vmaj-ui .vmaj-lock p { color: #4b5563; margin-bottom: 18px; }
.vmaj-lock-act { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ */
/* Takvim görünümü                                                     */
/* ------------------------------------------------------------------ */
.vmaj-calnav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vmaj-calt { flex: 1; text-align: center; font-size: 18px; font-weight: 800; color: var(--vmaj-primary); }
.vmaj-calwrap { background: #fff; border: 1px solid var(--vmaj-line); border-radius: var(--vmaj-radius); overflow: hidden; }
.vmaj-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vmaj-dow { text-align: center; padding: 8px 0; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vmaj-muted); background: var(--vmaj-bg); border-bottom: 1px solid var(--vmaj-line); }
.vmaj-day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 104px; padding: 6px 5px 6px; border: 0; border-right: 1px solid #eef0f5; border-bottom: 1px solid #eef0f5; background: #fff; text-align: left; font: inherit; overflow: hidden; }
.vmaj-day:nth-child(7n) { border-right: 0; }
.vmaj-day.is-blank { background: #fafbfd; cursor: default; }
button.vmaj-day:hover { background: #f6f8fc; }
.vmaj-day.is-sel { background: rgba(var(--vmaj-rgb), .07); box-shadow: inset 0 0 0 2px var(--vmaj-primary); }
.vmaj-dn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #374151; }
.vmaj-day.is-today .vmaj-dn { background: var(--vmaj-primary); color: #fff; }
.vmaj-pills { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vmaj-pill-c { display: block; padding: 2px 6px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmaj-pill-c.vmaj-s-todo { color: #4d3b00; }
.vmaj-pill-c.is-start { background: var(--c-bg); color: var(--c-ink); border: 1px solid var(--c-line); }
.vmaj-more-c { font-size: 11px; font-weight: 800; color: var(--vmaj-muted); padding-left: 4px; }
.vmaj-bands { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.vmaj-band { display: block; height: 4px; border-radius: 2px; background: var(--c); opacity: .85; }
.vmaj-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 2px 0; font-size: 12.5px; color: var(--vmaj-muted); }
.vmaj-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.vmaj-legend-n { flex-basis: 100%; font-size: 12px; }
.vmaj-daypanel { margin-top: 18px; }
.vmaj-daypanel-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.vmaj-ui .vmaj-daypanel-h h4 { font-size: 17px; font-weight: 800; color: var(--vmaj-primary); }

/* ------------------------------------------------------------------ */
/* Abonelik kutusu                                                     */
/* ------------------------------------------------------------------ */
.vmaj-sub { margin-top: 22px; padding: 18px; border-radius: var(--vmaj-radius); background: linear-gradient(135deg, var(--vmaj-primary-dark), var(--vmaj-primary)); color: #fff; box-shadow: 0 8px 22px rgba(var(--vmaj-rgb), .25); }
.vmaj-sub-t { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.vmaj-sub-t .vmaj-ic svg { width: 26px; height: 26px; }
.vmaj-sub-t strong { display: block; font-size: 17px; }
.vmaj-sub-t small { display: block; opacity: .85; font-size: 13px; }
.vmaj-subform { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; }
.vmaj-subform .vmaj-btn.is-primary { background: #fff; color: var(--vmaj-primary); border-color: #fff; }
.vmaj-subform .vmaj-btn.is-primary:hover { background: #eef1f8; }
.vmaj-submsg { margin-top: 8px; font-size: 13.5px; }
.vmaj-submsg.is-ok { font-weight: 700; padding: 4px 0; }
.vmaj-submsg.is-err { background: rgba(255, 255, 255, .95); color: #9b2c2c; border-radius: 8px; padding: 6px 10px; }

/* ------------------------------------------------------------------ */
/* Modal / bildirim                                                    */
/* ------------------------------------------------------------------ */
.vmaj-overlay { position: static; width: 0; height: 0; }
.vmaj-modal-back { position: fixed; inset: 0; z-index: 999990; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); animation: vmaj-fade .15s ease; }
@keyframes vmaj-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmaj-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.vmaj-modal { width: min(480px, 100%); max-height: min(92vh, 860px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35); animation: vmaj-up .2s ease; overflow: hidden; }
.vmaj-modal.is-wide { width: min(620px, 100%); }
.vmaj-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--vmaj-line); }
.vmaj-ui .vmaj-modal-head h3 { font-size: 18px; font-weight: 800; color: var(--vmaj-primary); }
.vmaj-modal-body { padding: 18px 20px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vmaj-modal-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--vmaj-line); background: #fafbfd; }
.vmaj-modal-foot .vmaj-left { margin-right: auto; }
.vmaj-authmsg { text-align: center; padding-bottom: 12px; }
.vmaj-authmsg p { color: #374151; }
.vmaj-pubinfo { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; margin-bottom: 14px; background: var(--vmaj-bg); border-left: 4px solid var(--vmaj-primary); border-radius: 0 10px 10px 0; font-size: 14px; }
.vmaj-pubinfo small { color: var(--vmaj-muted); }
.vmaj-datebox { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.vmaj-radios { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.vmaj-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--vmaj-line); border-radius: 12px; cursor: pointer; }
.vmaj-radio:hover { border-color: var(--vmaj-primary); }
.vmaj-radio input { margin-top: 4px; accent-color: var(--vmaj-primary); }
.vmaj-radio small { display: block; color: var(--vmaj-muted); font-size: 12.5px; }
.vmaj-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 999999; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: #1f2937; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: vmaj-up .2s ease; }
.vmaj-toast.is-err { background: #c53030; }
.vmaj-fab { display: none; }

/* ------------------------------------------------------------------ */
/* Mobil / tablet                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .vmaj-layout { grid-template-columns: minmax(0, 1fr); }
  .vmaj-filterbtn { display: inline-flex; }
  .vmaj-side { position: fixed; z-index: 999980; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-102%); transition: transform .22s ease; padding: 14px 14px 20px; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); }
  .vmaj-side.is-open { transform: none; }
  .vmaj-side-head { display: flex; }
  .vmaj-scrim { position: fixed; inset: 0; z-index: 999970; background: rgba(15, 23, 42, .5); opacity: 0; pointer-events: none; transition: opacity .2s; display: block; }
  .vmaj-scrim.is-open { opacity: 1; pointer-events: auto; }
  .vmaj-only-mobile { display: inline-flex; }
  .vmaj-bar-tools { width: 100%; }
}

@media (max-width: 640px) {
  .vmaj-ui { font-size: 15px; }
  .vmaj-head { margin-bottom: 12px; }
  .vmaj-tabs { width: 100%; }
  .vmaj-tab { flex: 1; justify-content: center; padding: 10px 12px; }
  .vmaj-head-act .vmaj-newbtn { display: none; }
  .vmaj-ui .vmaj-bar-t h3 { font-size: 18px; }
  .vmaj-bar-tools { gap: 6px; }
  .vmaj-sort { flex: 1 1 100%; max-width: none; order: 5; }
  .vmaj-viewseg { margin-left: auto; }
  .vmaj-viewseg > button span:not(.vmaj-ic) { display: none; }
  .vmaj-viewseg > button { padding: 8px 12px; }
  .vmaj-card { padding: 12px 12px 10px 16px; }
  .vmaj-ui .vmaj-card-title { font-size: 16px; }
  .vmaj-rem { margin-left: 0; }
  .vmaj-card-foot { flex-direction: column; align-items: stretch; }
  .vmaj-statusseg { display: flex; width: 100%; }
  .vmaj-statusseg > button { flex: 1; justify-content: center; padding: 9px 4px; font-size: 13px; }
  .vmaj-acts { justify-content: flex-end; }
  .vmaj-fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 999960; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--vmaj-primary); color: #fff; box-shadow: 0 8px 22px rgba(var(--vmaj-rgb), .45); }
  .vmaj-fab .vmaj-ic svg { width: 26px; height: 26px; }
  /* takvim: kutular küçülür, kayıtlar noktaya dönüşür */
  .vmaj-day { min-height: 56px; padding: 4px 2px; align-items: center; gap: 2px; }
  .vmaj-dn { width: 24px; height: 24px; font-size: 12.5px; }
  .vmaj-pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .vmaj-pill-c { width: 8px; height: 8px; padding: 0; border-radius: 50%; font-size: 0; border-width: 0; background: var(--c); }
  .vmaj-pill-c.is-start { background: transparent; border: 2px solid var(--c-line); width: 8px; height: 8px; }
  .vmaj-more-c { display: none; }
  .vmaj-bands { width: 80%; }
  .vmaj-subform { grid-template-columns: minmax(0, 1fr); }
  .vmaj-modal-back { align-items: flex-end; padding: 0; }
  .vmaj-modal, .vmaj-modal.is-wide { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .vmaj-modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .vmaj-modal-foot .vmaj-btn { flex: 1 1 auto; }
  .vmaj-modal-foot .vmaj-left { flex-basis: 100%; margin-right: 0; order: 9; }
  .vmaj-in, textarea.vmaj-in { font-size: 16px; } /* iOS yakınlaşmasını önler */
}

@media (prefers-reduced-motion: reduce) {
  .vmaj-ui *, .vmaj-ui *::before, .vmaj-ui *::after, .vmaj-modal, .vmaj-toast { animation: none !important; transition: none !important; }
}
@media print {
  .vmaj-side, .vmaj-bar-tools, .vmaj-card-foot, .vmaj-sub, .vmaj-fab, .vmaj-head-act { display: none !important; }
  .vmaj-layout { display: block; }
  .vmaj-card { break-inside: avoid; box-shadow: none; }
}
