/* Digital Diary v2.1 - Frontend */
.nvmddf-wrap{max-width:1100px;margin:0 auto;padding:10px 0 24px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;}
.nvmddf-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:6px 0 14px;}
.nvmddf-left{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.nvmddf-toggle{display:flex;gap:8px;align-items:center;}
.nvmddf-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid #e6e8eb;background:#fff;color:#0f172a;text-decoration:none;font-weight:800;cursor:pointer;}
.nvmddf-pill.is-active{background:#0f172a;color:#fff;border-color:#0f172a;}
.nvmddf-nav{display:flex;align-items:center;gap:10px;}
.nvmddf-btn{width:38px;height:38px;border-radius:999px;border:1px solid #e6e8eb;background:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#0f172a;font-weight:900;cursor:pointer;}
.nvmddf-btn.nvmddf-print{width:40px}
.nvmddf-label{font-weight:900;font-size:18px;color:#0f172a;min-width:170px;text-align:center;}

.nvmddf-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.nvmddf-search{display:flex;gap:8px;align-items:center;border:1px solid #e6e8eb;border-radius:999px;padding:8px 12px;background:#fff;min-width:220px;}
.nvmddf-ico{opacity:.7}
.nvmddf-search input{border:0;outline:0;width:100%;font-weight:700;}
.nvmddf-jump{display:flex;gap:8px;align-items:center;}
.nvmddf-jump input{border:1px solid #e6e8eb;border-radius:12px;padding:8px 10px;font-weight:800;width:140px;}
.nvmddf-jump button{border:1px solid #e6e8eb;border-radius:12px;padding:8px 10px;background:#fff;font-weight:900;cursor:pointer;}

.nvmddf-card{background:#fff;border:1px solid #e6e8eb;border-radius:18px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04),0 10px 28px rgba(0,0,0,.06);}
.nvmddf-grid{display:grid;grid-template-columns:repeat(7,1fr);}
.nvmddf-head{background:#f8fafc;border-bottom:1px solid #eef0f2;font-weight:900;color:#475569;}
.nvmddf-head div{padding:10px 12px;font-size:12px;text-align:center;}
.nvmddf-day{min-height:118px;border-right:1px solid #eef0f2;border-bottom:1px solid #eef0f2;padding:10px;position:relative;}
.nvmddf-day:nth-child(7n){border-right:none;}
.nvmddf-empty{background:#fbfdff;}
.nvmddf-dnum{font-weight:900;font-size:16px;color:#0f172a;}
.nvmddf-heb{margin-top:6px;color:#64748b;font-weight:700;font-size:12px;line-height:1.25;}
.nvmddf-hebdow{font-weight:800;}
.nvmddf-hebd{opacity:.95;}
.nvmddf-noentry{color:#cbd5e1;font-weight:900;margin-top:18px;text-align:center;}

.nvmddf-open{margin-top:10px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e6e8eb;background:#fff;border-radius:14px;padding:8px 10px;cursor:pointer;font-weight:800;}
.nvmddf-preview{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left;}
.nvmddf-star{font-size:14px}
.nvmddf-caret{opacity:.55;font-size:12px}

.nvmddf-acc{margin-top:10px;border-top:1px solid #eef0f2;padding-top:10px;}
.nvmddf-acc-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px;}
.nvmddf-acc-date{font-weight:700;color:#0f172a;font-size:14px;}
.nvmddf-acc-heb{color:#64748b;font-weight:700;font-size:12px;}
.nvmddf-acc-body{
  font-size:10px;
  line-height:1.6;
  color:#0f172a;
}
.nvmddf-acc-body p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 6px;
}

.nvmddf-acc-body p:last-child{margin-bottom:0;}

/* filters - keep calendar shape, hide entry bits */
.nvmddf-day.is-filtered .nvmddf-open,
.nvmddf-day.is-filtered .nvmddf-acc{display:none !important;}
.nvmddf-day.is-filtered.has-entry .nvmddf-noentry{display:none;}
.nvmddf-day.is-filtered{opacity:.35}

/* Week grid */
.nvmddf-weekgrid{display:block;}
.nvmddf-weekhead{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:12px;color:#475569;font-weight:700;font-size:12px;}
.nvmddf-weekhead div{text-align:center}
.nvmddf-wcard{background:#fff;border:1px solid #e6e8eb;border-radius:18px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 10px 28px rgba(0,0,0,.06);padding:12px;min-height:160px;display:flex;flex-direction:column;gap:10px;}
.nvmddf-wcard.is-star{border-color:#f59e0b;}
.nvmddf-wtop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nvmddf-wgreg{font-weight:700;color:#0f172a;font-size:14px;}
.nvmddf-wheb{color:#64748b;font-weight:700;font-size:12px;line-height:1.25;}
.nvmddf-wopen{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e6e8eb;background:#fff;border-radius:14px;padding:8px 10px;cursor:pointer;font-weight:800;margin-top:auto;}
.nvmddf-wpreview{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left;}
.nvmddf-wacc{border-top:1px solid #eef0f2;padding-top:10px;margin-top:8px;}
.nvmddf-wcontent{font-size:10px;line-height:1.5;color:#0f172a;}
.nvmddf-wcontent p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 6px;
}

.nvmddf-wcontent p:last-child{margin-bottom:0;}
.nvmddf-wempty{color:#94a3b8;font-weight:900;margin-top:auto}

/* week filters */
.nvmddf-wcard.is-filtered{opacity:.35}
.nvmddf-wcard.is-filtered .nvmddf-wopen,
.nvmddf-wcard.is-filtered .nvmddf-wacc{display:none !important;}

/* print */
@media print{
  .nvmddf-top{display:none !important;}
  .nvmddf-wrap{max-width:none;padding:0;}
  body{background:#fff !important;}
  .nvmddf-card,.nvmddf-wcard{box-shadow:none !important;}
}
@media (max-width: 980px){
  .nvmddf-weekbody{grid-template-columns:repeat(2,1fr);}
  .nvmddf-weekhead{display:none;}
}
@media (max-width: 720px){
  .nvmddf-label{min-width:auto;}
  .nvmddf-search{min-width:180px}
  .nvmddf-grid{grid-template-columns:repeat(2,1fr);}
  .nvmddf-head{display:none;}
}

/* ===== FORCE COMPACT TOP BAR ===== */

.nvmddf-search {
  min-width: 140px !important;
  height: 32px !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
}

.nvmddf-search input {
  height: 20px !important;
  font-size: 12px !important;
  padding: 0 !important;
  line-height: 20px !important;
}

.nvmddf-ico {
  font-size: 13px !important;
}

/* show nav + print */

.nvmddf-btn {
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
}

/* Empty pills text */

.nvmddf-preview:empty:before {
  content:"Note";
  color:#94a3b8;
  font-weight:700;
}

/* Tighten pills */

.nvmddf-open {
  padding:5px 8px!important;
  border-radius:10px!important;
}


/* Empty day pill text */

.nvmddf-preview:empty:before {
  content:"Note";
  color:#94a3b8;
  font-weight:700;
  font-size:11px;
}
.nvmddf-open {
  min-height:28px;
}
/* =================================================
   FINAL TOOLBAR POLISH
   ================================================= */

/* Borderless Apple Search */

.nvmddf-search {
  border:0!important;
  background:#f1f5f9!important;
}

.nvmddf-search input {
  background:transparent!important;
}

.nvmddf-search:hover {
  background:#eaeef3!important;
}


/* Calendar preview fallback */

.nvmddf-preview:not(:has(*)):before {
  content:"Note";
  color:#94a3b8;
  font-weight:700;
  font-size:11px;
}


/* Icon jump buttons */

.nvmddf-jump button {
  width:32px;
  height:32px;
  padding:0;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  position:relative;
}

/* calendar icon */

.nvmddf-jump button:first-child::after {
  content:"\f145";
  font-family:dashicons;
  font-size:16px;
  color:#0f172a;
}

/* arrow icon */

.nvmddf-jump button:last-child::after {
  content:"\f344";
  font-family:dashicons;
  font-size:16px;
  color:#0f172a;
}
/* Week view empty preview */

.nvmddf-wpreview:not(:has(*)):before {
  content:"Note";
  color:#94a3b8;
  font-weight:700;
  font-size:11px;
}
/* Force print button visible */

.nvmddf-btn.nvmddf-print {
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
}
/* ===============================
   FORCE PRINT BUTTON + ICON
   =============================== */

.nvmddf-print {
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  width:32px !important;
  height:32px !important;
  border-radius:999px !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:0 !important;
  position:relative;
}

/* printer icon */

.nvmddf-print::after {
  content:"\f469";
  font-family:dashicons;
  font-size:16px;
  color:#0f172a;
  line-height:1;
}

/* ===============================
   CLEAN WEEK VIEW – HARD RESET
   =============================== */

.nvmddf-week-cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:18px;
padding:20px;
}

.nvmddf-week-card{
background:#fff;
border-radius:16px;
padding:16px;
box-shadow:0 8px 20px rgba(0,0,0,.08);
display:flex;
flex-direction:column;
}

.nvmddf-week-head{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
font-weight:600;
}

.nvmddf-week-body{
flex:1;
font-size:14px;
line-height:1.5;
}

.nvmddf-week-card.is-star{
border:2px solid gold;
}

.nvmddf-week-star{
margin-left:6px;
}
