/* Daily log (office/dailylog.js, Ryan 11-04). Works inside the portal (project page, Tasks box) and the Office app. */
.dlg { --dlg-navy: #0d2438; --dlg-brass: #b3894f; --dlg-soft: #5b6b7a; --dlg-line: rgba(13,36,56,.14); display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--dlg-line); color: #1f2c38; }
.pt-dlog-slot.dlg { margin-top: 0; padding-top: 0; border-top: 0; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dlg-head h4 { margin: 0; font-size: 16px; color: var(--dlg-navy); }
.dlg-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef2f6; font-size: 12px; text-align: center; }
.dlg-small { margin: 0; font-size: 13px; color: var(--dlg-soft); }
.dlg-empty { margin: 0; font-size: 14px; color: var(--dlg-soft); }
.dlg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 6px; background: var(--dlg-navy); color: #fff; font: 600 13px/1.2 var(--sans, inherit); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.dlg-btn.dlg-ghost { background: transparent; color: var(--dlg-navy); border: 1.5px solid var(--dlg-navy); }
.dlg-btn:disabled { opacity: .6; cursor: default; }
.dlg-link { min-height: 36px; padding: 4px 2px; border: 0; background: none; color: var(--dlg-navy); font: 600 13px/1.2 var(--sans, inherit); text-decoration: underline; cursor: pointer; }
.dlg-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--dlg-line); border-left: 4px solid var(--dlg-brass); border-radius: 8px; background: #fff; }
.dlg-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--dlg-navy); }
.dlg-form input[type=date], .dlg-form textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid var(--dlg-line); border-radius: 6px; font: inherit; font-size: 16px; background: #fff; color: inherit; }
.dlg-form textarea { min-height: 84px; resize: vertical; }
.dlg-row { display: grid; grid-template-columns: minmax(0, 220px); }
.dlg-pickrow { display: flex; align-items: center; gap: 10px; }
.dlg-file { display: inline-flex !important; }
.dlg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-thumb { position: relative; width: 72px; height: 72px; }
.dlg-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.dlg-thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--dlg-navy); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.dlg-check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; font-weight: 500 !important; font-size: 14.5px !important; }
.dlg-check input { width: 20px; height: 20px; accent-color: var(--dlg-brass); }
.dlg-acts2 { display: flex; gap: 8px; flex-wrap: wrap; }
.dlg-msg { margin: 0; font-size: 13.5px; color: #9b2c1c; }
.dlg-msg.is-ok { color: #1f6b40; }
.dlg-day h5 { margin: 4px 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dlg-soft); }
.dlg-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dlg-item { padding: 10px 12px; border: 1px solid var(--dlg-line); border-radius: 8px; background: #fff; display: grid; gap: 6px; }
.dlg-item.is-shared { border-left: 4px solid #2e7d4f; }
.dlg-meta { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; font-size: 13px; }
.dlg-meta span { color: var(--dlg-soft); }
.dlg-who { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #eef2f6; color: var(--dlg-navy) !important; font-size: 11.5px; font-weight: 700; }
.dlg-who.is-client { background: #e3f3e9; color: #1f6b40 !important; }
.dlg-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.dlg-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.dlg-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.dlg-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.dlg-more { justify-self: start; }
