/* UwWerkplek Cloud – Mail, golf 1 (mail-golf1.js en mail-golf1-ai.js) */
.mg-rood { color: #a12828; }
.mg-dlg h3 { font-size: 14px; margin: 14px 0 6px; }
.mg-twee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mg-twee label, .mg-dlg label.mini { display: flex; flex-direction: column; gap: 3px; margin: 4px 0; }
@media (max-width: 640px) { .mg-twee { grid-template-columns: 1fr; } }

/* menu's */
.mg-menu { position: absolute; z-index: 1000; min-width: 220px; max-width: 320px; background: var(--bg, #fff); border: 1px solid var(--ln, #dbe4ee);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(13, 26, 38, .18); padding: 4px; display: flex; flex-direction: column; }
.mg-menu button { text-align: left; background: none; border: 0; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 13.5px; color: inherit; cursor: pointer; }
.mg-menu button:hover, .mg-menu button:focus-visible { background: rgba(44, 110, 168, .1); outline: none; }
.mg-menu hr { border: 0; border-top: 1px solid var(--ln, #e4ebf2); margin: 4px 0; }

/* leesvenster */
.mg-mbk { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mg-mbk [aria-pressed="true"] { border-color: #c0392b; color: #a12828; }
.mg-band { border: 1px solid #cfe0f7; background: #f3f8ff; border-radius: 12px; padding: 8px 12px; margin: 6px 0 10px; font-size: 13.5px; }
.mg-fact { border-color: #e6d6a6; background: #fdf8ea; }
.mg-band .pb { height: auto; padding: 4px 10px; font-size: 12.5px; }
.mg-vert { margin: 4px 0; color: #0852C2; }
.bijl .mg-bs { height: auto; padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.mg-print { position: fixed; width: 1px; height: 1px; left: -10px; top: -10px; border: 0; opacity: 0; }
.mg-frame { width: 100%; border: 0; min-height: 160px; }

/* lijst */
.mg-vast { border-bottom: 1px solid var(--ln, #e4ebf2); padding: 6px 8px; background: rgba(192, 57, 43, .04); }
.mg-vast-k { font-weight: 600; margin-bottom: 2px; }
.ml .mg-vast-r { display: flex; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.ml .mg-vast-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml .mg-vast-r:hover { text-decoration: underline; }
.mg-vl { color: #c0392b; }
.ml button.mg-weg { display: none !important; }   /* slimme mappen: verborgen regels (hidden werkt niet tegen .ml button{display:grid}) */
.mg-prio { color: #d49a00; }
.mg-slim { margin-top: 6px; flex-wrap: wrap; }
.mg-slim b { font-weight: 600; opacity: .75; }
.mg-slim .mg-slim-ai { color: #0852C2; }

/* mappenlijst */
.mg-map .mg-gd { font-size: 12px; font-weight: 600; padding: 6px 10px 2px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-map .mg-gdf { padding-left: 18px; }
.mg-map .mg-rood-b { background: #c0392b; color: #fff; }

/* opstelvenster */
.mg-osrij { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.mg-osrij .pb { height: auto; padding: 4px 10px; font-size: 12.5px; }
.mg-osrij .chk { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.mg-osstatus { margin-left: auto; }
.mg-check { border: 1px solid #f0d9a8; background: #fff6e5; color: #5e4005; border-radius: 10px; padding: 8px 12px; margin: 6px 0; font-size: 13.5px; }
.mg-check ul { margin: 4px 0; padding-left: 20px; }
.mg-check details { margin-top: 6px; }
.mg-voorstel, .mg-vtekst { background: #fff; border: 1px solid var(--ln, #e4ebf2); border-radius: 8px; padding: 8px; margin: 6px 0; max-height: 240px; overflow: auto; color: #0d1a26; }
.mg-vvoorstel { border: 1px solid #cfe0f7; background: #f8fbff; border-radius: 12px; padding: 10px 12px; margin: 6px 0; }
#opstel.mg-verborgen { display: none !important; }
.mg-ongedaan { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #0d1a26; color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: calc(100vw - 32px); }
.mg-ongedaan .pb { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }

/* instellingen: afwezigheid */
.mg-afw { border: 1px dashed #cfe0f7; border-radius: 10px; padding: 8px 10px; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.mg-afw .pb { align-self: flex-start; }

/* vensters */
.mg-ai-blok { border: 1px solid #cfe0f7; background: #f3f8ff; border-radius: 10px; padding: 8px 12px; }
.mg-ai-blok ul { margin: 4px 0; padding-left: 20px; }
.mg-li { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--ln, #e4ebf2); font: inherit; color: inherit; cursor: pointer; }
.mg-regel.uit { opacity: .55; }
.mg-form { margin: 10px 0; }
.mg-stat { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin: 6px 0; }
.mg-stat.uren { gap: 2px; height: 100px; }
.mg-st-k { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; min-width: 0; }
.mg-st-b { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mg-st-b span { display: block; width: 45%; min-height: 1px; border-radius: 3px 3px 0 0; }
.mg-stat.uren .mg-st-b span { width: 80%; }
.mg-st-b .o, .mg-lg.o { background: #2c6ea8; }
.mg-st-b .v, .mg-lg.v { background: #14a38d; }
.mg-lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-left: 8px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mg-band, :root:not([data-theme="light"]) .mg-ai-blok, :root:not([data-theme="light"]) .mg-vvoorstel { background: rgba(44, 110, 168, .15); border-color: rgba(44, 110, 168, .4); }
  :root:not([data-theme="light"]) .mg-fact, :root:not([data-theme="light"]) .mg-check { background: rgba(212, 154, 0, .12); border-color: rgba(212, 154, 0, .4); color: inherit; }
}
:root[data-theme="dark"] .mg-band, :root[data-theme="dark"] .mg-ai-blok, :root[data-theme="dark"] .mg-vvoorstel { background: rgba(44, 110, 168, .15); border-color: rgba(44, 110, 168, .4); }
:root[data-theme="dark"] .mg-fact, :root[data-theme="dark"] .mg-check { background: rgba(212, 154, 0, .12); border-color: rgba(212, 154, 0, .4); color: inherit; }
