/* Envy Mobile Fitting Diary v1.9 compact calendar */
.envy-mfd{width:calc(100vw - 24px);max-width:none;margin:16px 0 16px 50%;transform:translateX(-50%);padding:0 4px;color:#21334c;font-family:inherit}.envy-mfd *{box-sizing:border-box}.envy-mfd-header{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#142f52;border-radius:12px;padding:15px 20px;color:#fff;flex-wrap:wrap}.envy-mfd-header small{font-size:11px;letter-spacing:.15em;color:#b9d5f6}.envy-mfd-header h2{font-size:22px;line-height:1.2;margin:4px 0;color:#fff}.envy-mfd-header label{font-size:13px;color:#fff}.envy-mfd-team{display:block;min-width:175px;background:#fff;color:#173454;border:1px solid #cbd8e8;border-radius:7px;padding:8px;margin-top:4px}.envy-mfd-view-switch{display:flex;gap:6px;margin:12px 0 0}.envy-mfd-view-switch button,.envy-mfd-toolbar button{background:#fff;border:1px solid #cad8e9;border-radius:7px;color:#163b62;padding:7px 13px;cursor:pointer}.envy-mfd-view-switch button.is-active{background:#143a69;color:#fff}.envy-mfd-toolbar{display:flex;justify-content:center;align-items:center;gap:16px;padding:9px 0}.envy-mfd-range{min-width:190px;text-align:center;font-size:16px}.envy-mfd-status{font-size:12px;color:#64748b;margin:2px 0 9px}.envy-mfd-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #dbe3ee;border-left:1px solid #dbe3ee;background:#fff}.envy-mfd-weekday{padding:7px 4px;text-align:center;font-weight:650;font-size:12px;border-right:1px solid #dbe3ee;border-bottom:1px solid #dbe3ee;background:#f6f8fc}.envy-mfd-cell{min-width:0;min-height:90px;padding:3px 4px 5px;border-right:1px solid #dbe3ee;border-bottom:1px solid #dbe3ee}.envy-mfd-cell.is-outside{background:#f8f9fc}.envy-mfd-date{font-size:12px;font-weight:600;color:#415571;padding:1px 5px 4px}.envy-mfd-date.is-today{display:inline-block;background:#2262cd;color:#fff;border-radius:50%;width:25px;height:25px;text-align:center;line-height:20px}.envy-mfd-chip{display:block;width:100%;min-width:0;margin:2px 0;padding:4px 5px;text-align:left;border:0;border-left:3px solid transparent;border-radius:4px;font:600 11px/1.25 inherit;cursor:pointer;color:#15324d;background:#e4ecff;overflow:hidden}.envy-mfd-chip-title{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.envy-mfd-chip:hover{filter:brightness(.94)}.envy-team-pete{background:#dce5ff;border-left-color:#627ed4}.envy-team-chun{background:#d8f2e5;border-left-color:#2e9b63}.envy-team-adam{background:#ffe6d7;border-left-color:#e18a3b}.envy-team-les{background:#efdcfa;border-left-color:#9552b8}.envy-team-internals{background:#e4e9ef;border-left-color:#6b7d8d}.envy-team-other{background:#e4edfc;border-left-color:#3c74b6}.envy-mfd-year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.envy-mfd-year-panel{padding:10px;border:1px solid #dce4ed;border-radius:8px;min-width:0}.envy-mfd-year-heading{border:0;background:transparent;color:#153d70;font-weight:700;padding:2px 0 9px;cursor:pointer}.envy-mfd-mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.envy-mfd-mini-weekday{text-align:center;font-size:10px;color:#64748b}.envy-mfd-mini-day{border:0;border-radius:4px;background:transparent;padding:4px 0;font-size:10px;cursor:pointer;color:#253a52}.envy-mfd-mini-day.has-fittings{background:#dce7fa;font-weight:800}.envy-mfd-mini-day.is-outside{opacity:.25}.envy-mfd-overlay{position:fixed;inset:0;z-index:999999;background:rgba(15,27,44,.57);display:flex;justify-content:center;align-items:flex-start;padding:6vh 12px;overflow:auto}.envy-mfd-dialog{width:min(640px,100%);background:#fff;border-radius:12px;padding:16px;box-shadow:0 15px 50px #10223a55;color:#172e47}.envy-mfd-dialog-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e0e7ef;padding-bottom:10px;margin-bottom:12px}.envy-mfd-close{border:0;background:#edf2f8;border-radius:6px;padding:6px 11px;cursor:pointer}.envy-mfd-card{padding:4px 0}.envy-mfd-badge{display:inline-block;background:#e9f1ff;color:#16467b;border-radius:20px;padding:4px 9px;font-size:12px;font-weight:700}.envy-mfd-title{font-size:19px;color:#123456;margin:12px 0}.envy-mfd-fields{display:grid;gap:5px}.envy-mfd-field{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;padding:6px 0;border-bottom:1px solid #e8eef4;font-size:13px}.envy-mfd-field-label{font-weight:700;color:#214a75}.envy-mfd-field-value{overflow-wrap:anywhere;white-space:pre-wrap}.envy-mfd-engineer{background:#fff3d9;padding:9px;border-left:4px solid #d99527;border-radius:4px}.envy-mfd-address{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;margin-top:13px;font-size:13px}.envy-mfd-map{color:#135c9b;font-weight:650}.envy-mfd-details{margin-top:12px;border-top:1px solid #e6edf5;padding-top:12px}.envy-mfd-details summary{cursor:pointer;font-weight:700}.envy-mfd-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 inherit;background:#f4f7fb;padding:10px}.envy-mfd-foot{text-align:center;color:#8492a4;font-size:11px;margin:14px}.envy-mfd button:focus-visible,.envy-mfd-dialog button:focus-visible{outline:3px solid #3675e3;outline-offset:2px}@media(max-width:850px){.envy-mfd-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.envy-mfd-cell{min-height:76px;padding:2px}.envy-mfd-chip{padding:3px 2px}.envy-mfd-chip-title{font-size:10px}}@media(max-width:550px){.envy-mfd{width:calc(100vw - 10px);padding:0}.envy-mfd-header{padding:12px}.envy-mfd-toolbar{gap:8px}.envy-mfd-range{min-width:0;font-size:13px}.envy-mfd-cell{min-height:55px}.envy-mfd-chip-title{font-size:9px}.envy-mfd-chip{border-left-width:2px}.envy-mfd-date{font-size:10px;padding:1px 2px}.envy-mfd-field{grid-template-columns:1fr;gap:2px}}

/* v2.0 compact AM/PM team board */
.envy-mfd-chip{white-space:normal;overflow-wrap:anywhere;padding:5px 6px;margin:2px 0;font:inherit;font-size:11px;line-height:1.25;box-shadow:none}
.envy-mfd-chip-title{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;font-size:11px;line-height:1.25;margin-bottom:3px}
.envy-mfd-chip-line{display:block;font-size:10px;line-height:1.25;margin-top:2px;font-weight:400}
.envy-mfd-chip-line b{font-weight:750}
.envy-mfd-cell{min-height:65px;padding:3px}
.envy-mfd-day-lane{margin:3px 0;border-top:1px solid #e6ebf2;padding-top:2px}
.envy-mfd-lane-label{font-size:9px;letter-spacing:.02em;font-weight:750;color:#52647b}
.envy-mfd-week-table{border:1px solid #dce4ee;border-radius:9px;overflow-x:auto;background:white}
.envy-mfd-week-row{display:grid;grid-template-columns:95px repeat(var(--envy-team-count),minmax(185px,1fr));min-width:calc(95px + var(--envy-team-count)*185px);border-bottom:1px solid #dce4ee}
.envy-mfd-week-head{background:#eaf1fa;color:#163a62;font-size:12px;font-weight:750;text-align:center}
.envy-mfd-week-head>div{padding:9px 4px;border-right:1px solid #dce4ee}
.envy-mfd-week-day{padding:10px 6px;font-size:12px;font-weight:750;background:#f6f9fc;border-right:1px solid #dce4ee}
.envy-mfd-week-team{min-width:0;padding:3px;border-right:1px solid #dce4ee}
.envy-mfd-slot{min-height:31px;padding:2px 0 5px;border-bottom:1px dashed #dce4ee}
.envy-mfd-slot-label{font-size:9px;font-weight:800;color:#61718a;padding:2px 3px}
.envy-mfd-week-team .envy-mfd-chip{width:100%}
@media(max-width:700px){.envy-mfd-week-row{grid-template-columns:72px repeat(var(--envy-team-count),minmax(180px,1fr));min-width:calc(72px + var(--envy-team-count)*180px)}.envy-mfd-calendar-grid{min-width:700px}.envy-mfd-list{overflow-x:auto}}

/* v2.1: five side-by-side team lanes inside each weekday; narrow weekends */
.envy-mfd-calendar-grid{grid-template-columns:repeat(5,minmax(0,1.8fr)) repeat(2,minmax(0,.5fr));}
.envy-mfd-calendar-grid.is-all-teams{min-width:1320px;}
.envy-mfd-month-teams{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:stretch;}
.envy-mfd-month-team{min-width:0;border-right:1px solid #e3eaf2;padding:1px;}
.envy-mfd-month-team:last-child{border-right:0;}
.envy-mfd-month-team-label{font-size:9px;font-weight:800;line-height:1.2;padding:3px 2px;min-height:28px;overflow-wrap:anywhere;}
.envy-mfd-month-slot{min-height:24px;border-top:1px dashed #e2e9f2;padding:2px 0;}
.envy-mfd-month-slot-label{font-size:9px;font-weight:800;color:#65768c;}
.envy-mfd-month-team .envy-mfd-chip{padding:3px 2px;font-size:10px;line-height:1.18;}
.envy-mfd-month-team .envy-mfd-chip-title{font-size:10px;line-height:1.18;}
.envy-mfd-month-team .envy-mfd-chip-line{font-size:9px;line-height:1.2;}
.envy-mfd-cell.is-weekend{background:#f6f8fb;}
.envy-mfd-cell.is-weekend .envy-mfd-chip{padding:2px;font-size:9px;}
.envy-mfd-cell.is-weekend .envy-mfd-chip-line{display:none;}
.envy-mfd-list{overflow-x:auto;}
@media(max-width:850px){.envy-mfd-calendar-grid.is-all-teams{min-width:1320px}}

/* v2.2: readable team lanes. Scroll the calendar horizontally instead of
   shrinking five team columns into a single narrow day cell. */
.envy-mfd-list{max-width:100%;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain}
.envy-mfd-calendar-grid.is-all-teams{
  width:max-content;
  min-width:100%;
  grid-template-columns:repeat(5,minmax(760px,1fr)) repeat(2,minmax(100px,.15fr));
}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-cell{min-width:0;padding:4px 6px}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-teams{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;
}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-team{min-width:0;padding:2px 3px}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-team-label{
  font-size:11px;min-height:24px;line-height:1.3;overflow-wrap:normal;word-break:normal;
}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-team .envy-mfd-chip{
  padding:5px 6px;line-height:1.3;white-space:normal;overflow-wrap:break-word;word-break:normal;
}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-team .envy-mfd-chip-title{
  font-size:11px;line-height:1.3;white-space:normal;text-overflow:clip;overflow-wrap:break-word;word-break:normal;
}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-team .envy-mfd-chip-line{
  display:block;font-size:10px;line-height:1.3;margin-top:3px;overflow-wrap:break-word;word-break:normal;
}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-month-slot-label{font-size:10px}
.envy-mfd-calendar-grid.is-all-teams .envy-mfd-cell.is-weekend .envy-mfd-chip-title{white-space:normal;font-size:10px}
@media(max-width:850px){.envy-mfd-calendar-grid.is-all-teams{min-width:3900px}}

/* v2.3: bounded, usable month layout; compact team previews; polished appointment modal */
.envy-mfd-list{overflow-x:visible;max-width:100%}
.envy-mfd-calendar-grid,.envy-mfd-calendar-grid.is-all-teams{width:100%;min-width:0;grid-template-columns:repeat(5,minmax(0,1fr)) repeat(2,minmax(44px,.32fr));}
.envy-mfd-calendar-grid .envy-mfd-cell{min-width:0;padding:3px;min-height:65px}
.envy-mfd-calendar-grid .envy-mfd-month-teams{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
.envy-mfd-calendar-grid .envy-mfd-month-team{min-width:0;padding:0;border:0}
.envy-mfd-calendar-grid .envy-mfd-month-team-label{font-size:8px;line-height:1.15;min-height:22px;padding:2px 1px;overflow-wrap:anywhere}
.envy-mfd-calendar-grid .envy-mfd-month-slot{min-height:20px;padding:1px 0}
.envy-mfd-calendar-grid .envy-mfd-month-slot-label{font-size:8px}
.envy-mfd-calendar-grid .envy-mfd-chip.is-compact{min-width:0;width:100%;padding:3px 2px;margin:2px 0;overflow:hidden;word-break:normal;overflow-wrap:normal}
.envy-mfd-calendar-grid .envy-mfd-chip.is-compact .envy-mfd-chip-title{display:block;font-size:9px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.envy-mfd-calendar-grid .envy-mfd-chip.is-compact .envy-mfd-chip-line{font-size:8px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.envy-mfd-calendar-grid .envy-mfd-cell.is-weekend .envy-mfd-chip-line{display:none}
.envy-mfd-dialog{width:min(660px,100%);padding:0;overflow:hidden;border-radius:14px}
.envy-mfd-dialog-top{background:#132f52;color:#fff;padding:15px 22px;margin:0;border:0;font-size:14px}
.envy-mfd-close{background:#ffffff25;color:#fff;font-size:17px;min-width:36px;min-height:36px}
.envy-mfd-card{padding:22px}
.envy-mfd-title{font-size:23px;line-height:1.25;margin:0 0 12px;color:#112d4e;overflow-wrap:anywhere}
.envy-mfd-badge{margin-bottom:17px}
.envy-mfd-fields{display:block;margin-top:12px}
.envy-mfd-field{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;padding:10px 0;font-size:14px;align-items:start}
.envy-mfd-field-label{font-size:11px;letter-spacing:.045em;color:#52708e;font-weight:800}
.envy-mfd-field-value{font-weight:550;color:#152d47}
.envy-mfd-engineer{margin:12px 0;padding:12px;background:#fff5e6;border-left:4px solid #e5a43d}
.envy-mfd-contact{background:#f4f7fc;border-radius:9px;padding:14px;margin-top:18px;font-size:13px}
.envy-mfd-contact strong,.envy-mfd-phone strong{font-size:11px;letter-spacing:.04em;color:#52708e}
.envy-mfd-contact p{margin:6px 0 10px;font-size:14px}
.envy-mfd-phone{padding:14px 0;border-bottom:1px solid #e8eef4;font-size:14px}
.envy-mfd-phone a{margin-left:10px;color:#135c9b;font-weight:700}
.envy-mfd-reference{font-size:11px;color:#8a98a9;margin-top:15px}
@media(max-width:800px){.envy-mfd-calendar-grid.is-all-teams{min-width:0}.envy-mfd-calendar-grid .envy-mfd-month-team-label{font-size:7px}.envy-mfd-calendar-grid .envy-mfd-chip.is-compact .envy-mfd-chip-line{display:none}}
@media(max-width:550px){.envy-mfd-field{grid-template-columns:1fr;gap:3px}.envy-mfd-card{padding:15px}.envy-mfd-calendar-grid .envy-mfd-month-team-label{font-size:6px}.envy-mfd-calendar-grid .envy-mfd-chip.is-compact .envy-mfd-chip-title{font-size:8px}}

/* v2.4: stable seven-column month. Both weekend columns use the same 5% width. */
.envy-mfd-list{width:100%;max-width:100%;overflow-x:visible}
.envy-mfd-calendar-grid,.envy-mfd-calendar-grid.is-all-teams{
  display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:repeat(5,minmax(0,18fr)) repeat(2,minmax(0,5fr))!important;
  grid-auto-flow:row;overflow:hidden;
}
.envy-mfd-calendar-grid>.envy-mfd-weekday,.envy-mfd-calendar-grid>.envy-mfd-cell{min-width:0!important;max-width:100%;overflow:hidden}
.envy-mfd-calendar-grid>.envy-mfd-weekday:nth-child(7n + 6),
.envy-mfd-calendar-grid>.envy-mfd-weekday:nth-child(7n + 7){font-size:10px;padding:6px 0}
.envy-mfd-calendar-grid .envy-mfd-cell.is-weekend{padding:2px!important;background:#f3f6fa}
.envy-mfd-calendar-grid .envy-mfd-cell.is-weekend .envy-mfd-date{padding:1px;font-size:10px}
.envy-mfd-calendar-grid .envy-mfd-cell.is-weekend .envy-mfd-chip-title{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.envy-mfd-calendar-grid .envy-mfd-month-teams{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
.envy-mfd-calendar-grid .envy-mfd-month-team-label{overflow:hidden;overflow-wrap:normal;word-break:normal;text-overflow:ellipsis}
.envy-mfd-calendar-grid .envy-mfd-chip.is-compact{overflow:hidden}
.envy-mfd-calendar-grid .envy-mfd-chip.is-compact .envy-mfd-chip-title,
.envy-mfd-calendar-grid .envy-mfd-chip.is-compact .envy-mfd-chip-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Details always show full supplied values; the month preview remains compact. */
.envy-mfd-dialog .envy-mfd-field-value{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.envy-mfd-calendar-grid,.envy-mfd-calendar-grid.is-all-teams{min-width:0!important}}

/* v3 wall-planner: month rows, day columns; intentionally horizontally scrollable on screens */
.envy-mfd-planner-controls{display:flex;flex-wrap:wrap;gap:8px 17px;margin:10px 0;padding:9px 12px;background:#f1f5fa;border-radius:8px}
.envy-mfd-check{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;cursor:pointer}
.envy-mfd-check input{width:17px;height:17px}
.envy-mfd-wall-scroll{width:100%;overflow-x:auto;border:1px solid #cad5e2;border-radius:8px;background:#fff}
.envy-mfd-wall{width:max-content;min-width:100%}
.envy-mfd-wall-month{display:grid;grid-template-columns:105px repeat(31,minmax(116px,1fr));border-bottom:2px solid #bccbdd;min-height:105px}
.envy-mfd-wall-month-name{position:sticky;left:0;z-index:2;background:#17375c;color:#fff;padding:14px 7px;font-size:13px;font-weight:800;box-shadow:2px 0 4px #0002}
.envy-mfd-wall-day{min-width:116px;border-right:1px solid #e1e8ef;padding:2px 3px 5px;background:#fff}
.envy-mfd-wall-day.is-weekend{background:#f0f3f7}
.envy-mfd-wall-day.is-today{background:#fff6df}

/* v3.3: clear appointment details, isolated from theme layout rules. */
.envy-mfd .envy-mfd-header{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:20px 26px!important;gap:20px!important;border-radius:14px;background:linear-gradient(120deg,#102c4b,#214b74);box-shadow:0 8px 24px #183b5c14;text-align:left!important}
.envy-mfd .envy-mfd-header>div{margin:0!important;flex:1;min-width:0}
.envy-mfd .envy-mfd-header h2{margin:5px 0 0!important;padding:0!important;font-size:24px!important;letter-spacing:-.025em;color:#fff!important;text-align:left!important}
.envy-mfd .envy-mfd-header>label{margin:0!important;flex:0 0 auto;font-size:12px!important;font-weight:600}
.envy-mfd .envy-mfd-team{margin:6px 0 0!important;min-width:210px;border-radius:9px!important;padding:10px 12px!important;min-height:44px}
.envy-mfd-planner-controls[hidden]{display:none!important}
.envy-mfd-overlay{padding:4vh 14px!important;align-items:flex-start;background:rgba(10,26,45,.65);backdrop-filter:blur(4px)}
.envy-mfd-overlay .envy-mfd-dialog{width:min(700px,100%)!important;max-height:92vh;overflow:auto!important;background:#f6f8fc;border:1px solid #ffffff60;border-radius:18px!important;box-shadow:0 24px 90px #07172855;text-align:left!important}
.envy-mfd-overlay .envy-mfd-dialog-top{display:flex!important;align-items:center;justify-content:space-between;gap:14px;background:#142f50!important;padding:16px 24px!important;position:sticky;top:0;z-index:3}
.envy-mfd-overlay .envy-mfd-dialog-top strong{color:#fff!important;font-size:14px!important;font-weight:600!important;line-height:1.5}
.envy-mfd-overlay .envy-mfd-close{padding:0!important;width:36px;height:36px;flex:0 0 36px;border:1px solid #ffffff40!important;border-radius:10px!important;line-height:1!important}
.envy-mfd-overlay .envy-mfd-card{padding:24px!important;margin:0!important;width:100%!important;float:none!important}
.envy-mfd-overlay .envy-mfd-title{margin:0 0 12px!important;font-size:26px!important;line-height:1.25!important;letter-spacing:-.025em;color:#142f50!important;text-align:left!important}
.envy-mfd-overlay .envy-mfd-badge{display:inline-flex!important;align-items:center;padding:7px 12px!important;margin:0 0 20px!important;font-size:11px!important;line-height:1.3!important;font-weight:750;letter-spacing:.03em;border-radius:7px}
.envy-mfd-overlay .envy-mfd-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
.envy-mfd-overlay .envy-mfd-field{display:flex!important;flex-direction:column;gap:7px!important;margin:0!important;padding:14px 16px!important;min-width:0!important;width:auto!important;float:none!important;border:1px solid #e1e7f0!important;border-radius:10px;background:#fff;text-align:left!important;align-items:stretch!important;box-shadow:0 2px 3px #18324b03}
.envy-mfd-overlay .envy-mfd-field-label{display:block!important;margin:0!important;padding:0!important;font-size:10px!important;line-height:1.4!important;letter-spacing:.07em!important;font-weight:750!important;color:#60758c!important;text-align:left!important;width:auto!important}
.envy-mfd-overlay .envy-mfd-field-value{display:block!important;margin:0!important;padding:0!important;font-size:14px!important;line-height:1.55!important;font-weight:550!important;color:#18334f!important;width:auto!important;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left!important}
.envy-mfd-overlay .envy-mfd-field[data-field="ITEMS"],.envy-mfd-overlay .envy-mfd-field[data-field="OTHERS"],.envy-mfd-overlay .envy-mfd-engineer{grid-column:1/-1}
.envy-mfd-overlay .envy-mfd-field[data-field="ITEMS"]{border-left:3px solid #527cbd!important}
.envy-mfd-overlay .envy-mfd-field[data-field="FITTER"]{display:none!important}
.envy-mfd-overlay .envy-mfd-engineer{background:#fff6e7!important;border-color:#f0dcb6!important;border-left:3px solid #df9b29!important}
.envy-mfd-overlay .envy-mfd-engineer .envy-mfd-field-label{color:#93681e!important}
.envy-mfd-overlay .envy-mfd-contact{padding:16px!important;margin:18px 0 0!important;border:1px solid #dee7f1;border-radius:10px;background:#edf3fa!important;text-align:left!important}
.envy-mfd-overlay .envy-mfd-contact strong,.envy-mfd-overlay .envy-mfd-phone strong{font-size:10px!important;letter-spacing:.07em;color:#60758c!important}
.envy-mfd-overlay .envy-mfd-contact p{margin:8px 0 12px!important;font-size:14px!important;line-height:1.6!important;color:#18334f!important}
.envy-mfd-overlay .envy-mfd-map{display:inline-block;padding:7px 11px;border:1px solid #c8d8ea;border-radius:7px;background:#fff;color:#214e7c!important;font-size:12px!important;text-decoration:none!important;font-weight:700}
.envy-mfd-overlay .envy-mfd-phone{padding:16px 0 4px!important;border:0!important}
.envy-mfd-overlay .envy-mfd-reference{margin-top:16px!important;font-size:10px!important;color:#718297!important}
@media(max-width:520px){.envy-mfd-overlay{padding:10px!important}.envy-mfd-overlay .envy-mfd-dialog{max-height:calc(100dvh - 20px)}.envy-mfd-overlay .envy-mfd-card{padding:18px!important}.envy-mfd-overlay .envy-mfd-dialog-top{padding:12px 18px!important}.envy-mfd-overlay .envy-mfd-title{font-size:22px!important}.envy-mfd-overlay .envy-mfd-fields{grid-template-columns:1fr!important}.envy-mfd .envy-mfd-header{padding:18px!important}.envy-mfd .envy-mfd-header>label{width:100%}.envy-mfd .envy-mfd-team{width:100%}}
.envy-mfd-wall-day.is-invalid{background:#dfe5ec}
.envy-mfd-wall-day-head{text-align:center;font-size:11px;font-weight:800;border-bottom:1px solid #dbe4ef;padding:3px 0;margin-bottom:3px}
.envy-mfd-wall-lane{margin:3px 0;border-top:1px dotted #bac9d8}
.envy-mfd-wall-team{font-size:9px;font-weight:800;color:#36516b;margin:3px 0}
.envy-mfd-wall-job{display:block;width:100%;text-align:left;border:0;border-left:3px solid #456;padding:4px 5px;margin:3px 0;border-radius:4px;cursor:pointer;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.envy-mfd-wall-job strong,.envy-mfd-wall-job span,.envy-mfd-wall-job small{display:block}
.envy-mfd-wall-job strong{font-size:11px;line-height:1.3;margin-bottom:3px}
.envy-mfd-wall-job small{font-weight:800;font-size:9px;margin-top:3px;opacity:.8}
.envy-mfd-wall-job:hover{filter:brightness(.94)}
.envy-mfd-tv{width:calc(100vw - 12px)}
.envy-mfd-tv .envy-mfd-header{padding:8px 16px}
.envy-mfd-tv .envy-mfd-toolbar{padding:4px}
.envy-mfd-tv .envy-mfd-wall-month{grid-template-columns:100px repeat(31,minmax(118px,1fr))}

/* v3.1: fixed seven-column month placement, five lanes on the same row.
   This overrides legacy v2.x rules and theme grid-item styles. */
.envy-mfd .envy-mfd-calendar-grid,
.envy-mfd .envy-mfd-calendar-grid.is-all-teams{
 display:grid!important;direction:ltr!important;
 grid-template-columns:repeat(5,minmax(0,18fr)) repeat(2,minmax(0,5fr))!important;
 grid-auto-flow:row!important;grid-auto-columns:0!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 gap:0!important;overflow:hidden!important;
}
.envy-mfd .envy-mfd-calendar-grid>.envy-mfd-weekday,
.envy-mfd .envy-mfd-calendar-grid>.envy-mfd-cell{
 min-width:0!important;width:auto!important;max-width:none!important;
 margin:0!important;float:none!important;position:relative;
}
.envy-mfd .envy-mfd-calendar-grid .envy-mfd-month-teams{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 grid-auto-flow:row!important;gap:2px!important;align-items:start;
}
.envy-mfd .envy-mfd-calendar-grid .envy-mfd-month-team{
 min-width:0!important;max-width:100%!important;width:auto!important;
 grid-row:1!important;margin:0!important;float:none!important;
}
.envy-mfd .envy-mfd-calendar-grid .envy-mfd-month-team-label{
 overflow:hidden!important;text-overflow:ellipsis!important;
 overflow-wrap:normal!important;word-break:normal!important;
}

/* v3.2: start the year planner at the current week. */
.envy-mfd .envy-mfd-wall-scroll{max-height:75vh;overflow:auto;scroll-behavior:auto}
.envy-mfd-wall-day.is-current-week{background:#edf5ff}
.envy-mfd-wall-day.is-current-week .envy-mfd-wall-day-head{border-bottom:2px solid #2262cd}
.envy-mfd-wall-day.is-today{background:#fff6df}


/* v3.3.1: keep the sticky month label compact, including under theme CSS. */
.envy-mfd .envy-mfd-wall-month,
.envy-mfd.envy-mfd-tv .envy-mfd-wall-month{
 display:grid!important;
 grid-template-columns:80px repeat(31,minmax(116px,1fr))!important;
 gap:0!important;
 padding:0!important;
 margin:0!important;
}
.envy-mfd .envy-mfd-wall-month-name{
 grid-column:1!important;
 width:80px!important;
 min-width:80px!important;
 max-width:80px!important;
 margin:0!important;
 padding:12px 6px!important;
 font-size:11px!important;
 overflow-wrap:normal;
 box-sizing:border-box!important;
}
.envy-mfd .envy-mfd-wall-day{grid-column:auto!important;width:auto!important;max-width:none!important;margin:0!important}

/* v3.4: side-by-side fitters with equal AM / PM halves. */
.envy-mfd .envy-mfd-wall{width:max-content!important;min-width:100%}
.envy-mfd .envy-mfd-wall-month,.envy-mfd.envy-mfd-tv .envy-mfd-wall-month{
 grid-template-columns:80px repeat(31,var(--envy-day-width,750px))!important;
 align-items:stretch!important;
}
.envy-mfd .envy-mfd-wall-day{display:flex!important;flex-direction:column!important;min-height:290px;padding:3px!important;gap:3px}
.envy-mfd .envy-mfd-wall-day-head{flex:0 0 auto;margin:0!important;padding:6px 0!important}
.envy-mfd .envy-mfd-wall-lanes{display:grid!important;grid-template-columns:repeat(var(--envy-lane-count,5),minmax(0,1fr))!important;gap:4px!important;flex:1;min-width:0;align-items:stretch}
.envy-mfd .envy-mfd-wall-lane{display:flex!important;flex-direction:column!important;margin:0!important;padding:0!important;border:0!important;min-width:0;width:auto!important}
.envy-mfd .envy-mfd-wall-team{display:flex;align-items:center;justify-content:center;min-height:30px;margin:0!important;padding:4px 2px!important;font-size:9px;line-height:1.25;font-weight:800;text-align:center;border-radius:4px 4px 0 0}
.envy-mfd .envy-mfd-wall-schedule{display:grid!important;grid-template-rows:repeat(2,minmax(112px,1fr))!important;gap:4px!important;flex:1;position:relative;min-width:0;background:#ffffff65;padding:3px;border:1px solid #dce5ef;border-radius:0 0 5px 5px}
.envy-mfd .envy-mfd-wall-half{grid-column:1/-1;align-self:stretch;z-index:0;pointer-events:none;font-size:9px;font-weight:700;color:#788ba0;padding:4px;background:#f3f6fa88;border-radius:3px;min-width:0}
.envy-mfd .envy-mfd-wall-job{position:relative;z-index:1;min-width:0;min-height:0;margin:0!important;padding:7px 5px!important;width:100%!important;height:100%!important;display:flex!important;flex-direction:column;gap:4px;justify-content:flex-start;align-items:stretch;overflow-wrap:anywhere;text-align:left!important;box-shadow:0 1px 3px #17324b12}
.envy-mfd .envy-mfd-wall-job strong{font-size:10px;line-height:1.35;margin:0!important}
.envy-mfd .envy-mfd-wall-job span{font-size:9px;line-height:1.4}
.envy-mfd .envy-mfd-wall-job small{margin-top:auto!important;padding-top:6px;font-size:9px}

/* v3.5: Month view shares the year planner's fitter lanes and half-day blocks. */
.envy-mfd .envy-mfd-wall-scroll.is-month-planner .envy-mfd-wall-month{
 grid-template-columns:80px repeat(var(--envy-day-count,31),var(--envy-day-width,750px))!important;
}
.envy-mfd .envy-mfd-wall-scroll.is-month-planner .envy-mfd-wall-day{min-height:360px}

/* v3.6: explicit fitter positions and multiline appointment information. */
.envy-mfd .envy-mfd-wall-lanes::before,.envy-mfd .envy-mfd-wall-lanes::after,
.envy-mfd .envy-mfd-wall-lane::before,.envy-mfd .envy-mfd-wall-lane::after,
.envy-mfd .envy-mfd-wall-schedule::before,.envy-mfd .envy-mfd-wall-schedule::after{content:none!important;display:none!important}
.envy-mfd .envy-mfd-wall-lanes{grid-template-rows:auto!important;grid-auto-flow:column!important}
.envy-mfd .envy-mfd-wall-lane{grid-row:1!important;float:none!important;clear:none!important;max-width:none!important}
.envy-mfd .envy-mfd-wall-job{white-space:normal!important;overflow:visible!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;font-size:11px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-customer{display:block!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-ref{display:block!important;font-size:10px!important;font-weight:700!important;line-height:1.35!important;color:#41536c}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-detail{display:flex!important;flex-direction:column!important;gap:2px!important;white-space:normal!important;margin:0!important;min-width:0}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-label{display:block!important;font-size:8px!important;line-height:1.35!important;font-weight:750!important;letter-spacing:.025em;opacity:.75}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-value{display:block!important;font-size:10px!important;line-height:1.45!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}

/* v3.7: compact, equal-height day blocks across all planner views. */
.envy-mfd .envy-mfd-wall-scroll.is-week-planner .envy-mfd-wall-month{
 grid-template-columns:80px repeat(7,var(--envy-day-width,750px))!important;
}
.envy-mfd .envy-mfd-wall-day,
.envy-mfd .envy-mfd-wall-scroll.is-month-planner .envy-mfd-wall-day{min-height:0!important;height:auto!important}
.envy-mfd .envy-mfd-wall-lanes{flex:0 0 auto!important;align-items:start!important}
.envy-mfd .envy-mfd-wall-schedule{flex:none!important;height:220px!important;min-height:0!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
.envy-mfd .envy-mfd-wall-job{overflow:auto!important;min-height:0!important;gap:4px!important;scrollbar-width:thin}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-detail{flex:0 0 auto!important}
.envy-mfd .envy-mfd-wall-job small{flex:0 0 auto;position:sticky;bottom:-7px;background:inherit}

/* v3.7.1: details scroll above a separate, non-overlapping time-slot footer. */
.envy-mfd .envy-mfd-wall-job{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:5px!important;overflow:hidden!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content{display:flex!important;flex-direction:column!important;gap:4px!important;min-height:0!important;min-width:0!important;overflow:auto!important;scrollbar-width:thin;padding:0 2px 2px 0!important;margin:0!important;align-self:stretch!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content>strong,
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content>span{flex:0 0 auto!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-slot{display:block!important;position:static!important;bottom:auto!important;margin:0!important;padding:4px 0 0!important;border-top:1px solid #17324b20;line-height:1.3!important;background:none!important;font-size:9px!important;font-weight:800!important;white-space:nowrap!important}
.envy-mfd .envy-mfd-wall-job::before,.envy-mfd .envy-mfd-wall-job::after{content:none!important;display:none!important}

/* v3.8.1: time-slot strip above the independently clipped details pane. */
.envy-mfd .envy-mfd-wall-job{grid-template-rows:20px minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important;align-content:stretch!important;overflow:hidden!important;gap:5px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-slot{grid-row:1!important;grid-column:1!important;position:relative!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;padding:2px 5px!important;line-height:14px!important;border:0!important;border-radius:3px;background:#ffffffd9!important;color:#233a52!important;overflow:hidden!important;z-index:1!important;align-self:stretch!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content{grid-row:2!important;grid-column:1!important;position:relative!important;inset:auto!important;transform:none!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;align-self:stretch!important;box-sizing:border-box!important;z-index:0!important}

/* v3.9: stacked Monday-Sunday weeks in Month; fully visible date contents. */
.envy-mfd .envy-mfd-wall-scroll.is-month-planner{max-height:none!important;overflow-y:visible!important;overflow-x:auto!important}
.envy-mfd .envy-mfd-wall-scroll.is-month-planner .envy-mfd-wall-month{grid-template-columns:80px repeat(7,var(--envy-day-width,750px))!important}
.envy-mfd .envy-mfd-wall-scroll.is-month-planner .envy-mfd-wall-month+.envy-mfd-wall-month{border-top:7px solid #e5ebf3}
.envy-mfd .envy-mfd-wall-day.is-outside-month{background:#f3f5f8}
.envy-mfd .envy-mfd-wall-day.is-outside-month .envy-mfd-wall-day-head{color:#8997a8}
.envy-mfd .envy-mfd-wall-lanes{align-items:stretch!important;flex:1!important}
.envy-mfd .envy-mfd-wall-lane{align-self:stretch!important}
.envy-mfd .envy-mfd-wall-schedule{height:auto!important;min-height:220px!important;flex:1!important;grid-template-rows:repeat(2,minmax(105px,1fr))!important}
.envy-mfd .envy-mfd-wall-job{height:auto!important;min-height:0!important;overflow:visible!important;grid-template-rows:20px auto!important;align-content:start!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content{height:auto!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important}

/* v3.9.2: shorter date blocks with details available on opening an appointment. */
.envy-mfd .envy-mfd-wall-lanes{flex:0 0 auto!important;align-items:start!important}
.envy-mfd .envy-mfd-wall-schedule{height:160px!important;min-height:160px!important;max-height:160px!important;flex:none!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
.envy-mfd .envy-mfd-wall-job{height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-rows:16px minmax(0,1fr)!important;gap:3px!important;padding:5px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-slot{height:16px!important;min-height:16px!important;max-height:16px!important;font-size:8px!important;line-height:12px!important;padding:1px 4px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content{height:100%!important;max-height:100%!important;overflow:hidden!important;gap:3px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-customer{font-size:10px!important;line-height:1.25!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-ref{font-size:9px!important}
.envy-mfd .envy-mfd-logout{display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;padding:9px 16px!important;margin:0!important;border:1px solid #ffffff70!important;border-radius:8px;color:#fff!important;background:#ffffff12;text-decoration:none!important;font-size:13px!important;font-weight:650;white-space:nowrap}
.envy-mfd .envy-mfd-logout:hover{background:#ffffff28}
.envy-mfd .envy-mfd-logout:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* v3.9.3: taller appointments with room for all fitting details. */
.envy-mfd .envy-mfd-wall-lanes{flex:1!important;align-items:stretch!important}
.envy-mfd .envy-mfd-wall-schedule{height:auto!important;min-height:400px!important;max-height:none!important;flex:1!important;grid-template-rows:repeat(2,minmax(198px,1fr))!important}
.envy-mfd .envy-mfd-wall-job{height:auto!important;min-height:0!important;overflow:visible!important;grid-template-rows:18px auto!important;align-content:start!important;gap:5px!important;padding:6px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-slot{height:18px!important;min-height:18px!important;max-height:18px!important;font-size:8px!important;line-height:14px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content{height:auto!important;max-height:none!important;overflow:visible!important;gap:4px!important}

/* v3.9.4: half-height day schedules with compact appointment previews. */
.envy-mfd .envy-mfd-wall-lanes{flex:0 0 auto!important;align-items:start!important}
.envy-mfd .envy-mfd-wall-schedule{height:200px!important;min-height:200px!important;max-height:200px!important;flex:none!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
.envy-mfd .envy-mfd-wall-job{height:100%!important;min-height:0!important;overflow:hidden!important;grid-template-rows:16px minmax(0,1fr)!important;gap:3px!important;padding:5px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-slot{height:16px!important;min-height:16px!important;max-height:16px!important;line-height:12px!important}
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-content{height:100%!important;max-height:100%!important;overflow:hidden!important;gap:3px!important}

/* v3.9.5: a little more room for half-day appointment text. */
.envy-mfd .envy-mfd-wall-schedule{height:240px!important;min-height:240px!important;max-height:240px!important}

/* v3.9.6: flag engineer work beside the fitter for that date. */
.envy-mfd .envy-mfd-wall-team{gap:5px}
.envy-mfd .envy-mfd-engineer-dot{display:inline-block!important;width:8px!important;height:8px!important;min-width:8px!important;flex:0 0 8px!important;border-radius:50%!important;background:#dc2626!important;border:1px solid #fff!important;box-shadow:0 0 0 1px #dc262650;vertical-align:middle}

/* v3.9.7: engineer indicator beside the customer; visible-date row labels. */
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-customer .envy-mfd-engineer-dot{display:inline-block!important;margin-left:5px!important;vertical-align:middle!important;width:8px!important;height:8px!important}
.envy-mfd .envy-mfd-wall-month-name{white-space:pre-line!important;line-height:1.6!important;font-variant-numeric:tabular-nums}

/* v3.9.8: touch-friendly fitter selection cards. */
.envy-mfd .envy-mfd-check[data-team="pete_ben"]{--team-accent:#4f68ba;--team-tint:#edf1ff}
.envy-mfd .envy-mfd-check[data-team="chun_matt"]{--team-accent:#24845b;--team-tint:#e9f7ef}
.envy-mfd .envy-mfd-check[data-team="adam_john"]{--team-accent:#b66022;--team-tint:#fff0e6}
.envy-mfd .envy-mfd-check[data-team="les_paul"]{--team-accent:#8850a6;--team-tint:#f5ebfc}
.envy-mfd .envy-mfd-check[data-team="internals"]{--team-accent:#51657b;--team-tint:#eaf0f6}
@media(max-width:700px){
 .envy-mfd .envy-mfd-planner-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important;margin:12px 0!important;border:1px solid #e3eaf3;border-radius:14px!important;background:#f7f9fc!important}
 .envy-mfd .envy-mfd-planner-controls[hidden]{display:none!important}
 .envy-mfd .envy-mfd-check{display:block!important;position:relative!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;cursor:pointer;float:none!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 .envy-mfd .envy-mfd-check:last-child:nth-child(odd){grid-column:1/-1}
 .envy-mfd .envy-mfd-check input{position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;opacity:0!important;margin:0!important;padding:0!important;pointer-events:none}
 .envy-mfd .envy-mfd-team-choice{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-height:46px!important;width:100%!important;padding:10px!important;border:1px solid #dce4ef!important;border-radius:9px!important;background:#fff;color:#667589;font-size:11px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:0!important;text-align:left!important;overflow-wrap:normal!important;box-sizing:border-box!important;transition:background .15s,border-color .15s;user-select:none}
 .envy-mfd .envy-mfd-team-choice::before{content:'';display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;border:1.5px solid #cbd5e1;border-radius:50%;background:#fff;box-sizing:border-box;font-size:12px;font-weight:800;line-height:1}
 .envy-mfd .envy-mfd-check input:checked+.envy-mfd-team-choice{background:var(--team-tint)!important;border-color:var(--team-accent)!important;color:#19344f!important}
 .envy-mfd .envy-mfd-check input:checked+.envy-mfd-team-choice::before{content:'\2713';background:var(--team-accent);border-color:var(--team-accent);color:#fff}
 .envy-mfd .envy-mfd-check input:focus-visible+.envy-mfd-team-choice{outline:3px solid #2d6cdf;outline-offset:2px}
}

/* v3.9.9: booked date indicator precedes the engineer work indicator. */
.envy-mfd .envy-mfd-wall-job .envy-mfd-job-customer .envy-mfd-booked-dot{display:inline-block!important;vertical-align:middle!important;margin-left:5px!important;width:8px!important;height:8px!important;min-width:8px!important;border-radius:50%!important;background:#16a34a!important;border:1px solid #fff!important;box-shadow:0 0 0 1px #16a34a50}

/* v3.9.11: name and reference search. */
.envy-mfd .envy-mfd-search{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:14px 0;padding:12px;background:#f3f6fb;border:1px solid #e0e7f1;border-radius:11px}
.envy-mfd .envy-mfd-search label{flex:1;min-width:180px;font-size:11px;font-weight:700;color:#36526f;text-align:left;margin:0}
.envy-mfd .envy-mfd-search-input{display:block;width:100%;min-height:42px;margin:5px 0 0;padding:9px 12px;border:1px solid #cbd8e7;border-radius:7px;background:#fff;color:#17324f;font-size:16px;box-sizing:border-box}
.envy-mfd .envy-mfd-search button{min-height:42px;padding:9px 16px;border:1px solid #193d65;border-radius:7px;background:#193d65;color:#fff;font-size:13px;cursor:pointer}
.envy-mfd .envy-mfd-search .envy-mfd-search-clear{background:#fff;color:#193d65;border-color:#cad7e7}
.envy-mfd .envy-mfd-search-scope{flex-basis:100%;font-size:11px;color:#62778d}
.envy-mfd .envy-mfd-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;padding:3px}
.envy-mfd .envy-mfd-search-result{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:100px;padding:15px;text-align:left;border:1px solid #d3dfec;border-left:4px solid;border-radius:9px;color:#19344f;cursor:pointer;white-space:normal}
.envy-mfd .envy-mfd-search-result strong{font-size:14px;line-height:1.4}
.envy-mfd .envy-mfd-search-result span{font-size:12px;line-height:1.5}
.envy-mfd .envy-mfd-search-result small{font-size:11px}
.envy-mfd .envy-mfd-search-empty{padding:22px;border:1px dashed #c5d3e3;border-radius:10px;background:#f7f9fc;font-size:14px;color:#526984}
@media(max-width:550px){.envy-mfd .envy-mfd-search label{flex-basis:100%}.envy-mfd .envy-mfd-search button{flex:1}.envy-mfd .envy-mfd-search-results{grid-template-columns:1fr}}
