/* Table & Grid Column Constraints */ table.cal { table-layout: fixed !important; width: 100% !important; max-width: 100% !important; } table.cal th, table.cal td { width: 14.28% !important; box-sizing: border-box; overflow: hidden; } /* Container Box Base */ .appointment-block { position: relative; display: flex; align-items: stretch; box-sizing: border-box; margin: 2px 0; padding: 3px 4px 3px 0; background: #e8f8ff; border: 1px solid #91e2ff; border-radius: 3px; font-size: 0.9em; line-height: 1.3; overflow: visible !important; width: 100%; max-width: 100%; min-width: 0; cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease; } /* Hover Cue */ .appointment-block:hover { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18); } /* Left Indicator Bar Base */ .appointment-block .appointment-bar { width: 5px; background-color: #1fc0ff; flex-shrink: 0; margin-right: 5px; border-radius: 2px 0 0 2px; } /* Card Content Area */ .appointment-card { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; overflow: hidden; } /* Row 1: Header (Avatar + Title) */ .appointment-header { display: flex; align-items: center; gap: 4px; font-weight: bold; min-width: 0; } .appointment-avatar { flex-shrink: 0; width: 20px; height: 20px; border-radius: 3px; object-fit: cover; } .appointment-card .appointment-title { flex-grow: 1; white-space: normal; overflow-wrap: anywhere; word-break: break-word; min-width: 0; vertical-align: middle; } .appointment-link { color: #000000; text-decoration: none; } /* Row 2: Meta Bar (Time + Hours) */ .appointment-meta { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 0.85em; color: #222222; } .appointment-time, .appointment-hours { flex-shrink: 0; } /* Horizontal Dividers */ .appointment-card .appointment-divider { border: 0; border-top: 1px solid #91e2ff; margin: 3px 0; width: 100%; } /* Row 3: Details */ .appointment-detail { color: #000000; font-size: 1em; white-space: normal; overflow-wrap: anywhere; word-break: break-word; min-width: 0; } /* Elevated Stack Order When Opened */ .appointment-block.open { z-index: 1000 !important; } /* Redmine Tooltip Popover Base - Fixed Positioning Overriding JS Inline Coordinates */ .appointment-block .tip { display: none !important; position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important; bottom: auto !important; transform: none !important; margin: 4px 0 0 0 !important; width: 320px !important; padding: 10px; background: #ffffff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); white-space: normal; z-index: 10000 !important; cursor: default; } /* Align tooltips to the right on Friday/Saturday columns */ table.cal td:nth-child(n+6) .appointment-block .tip { left: auto !important; right: 0 !important; } /* Display Tooltip ONLY on Click (.open class) */ .appointment-block.open .tip { display: block !important; } /* Inner Tooltip Formatting */ .appointment-block .tip h3 { margin: 0 0 4px 0; font-size: 13px; line-height: 1.3; } .appointment-block .tip .subtitle { margin: 0 0 8px 0; font-size: 11px; color: #555; text-transform: capitalize; } .appointment-block .tip table.attributes { width: 100%; border-collapse: collapse; font-size: 11px; margin-bottom: 4px; } .appointment-block .tip table.attributes th { text-align: left; padding: 3px 6px 3px 0; color: #444; font-weight: bold; width: 35%; vertical-align: top; } .appointment-block .tip table.attributes td { padding: 3px 0; color: #111; vertical-align: top; } .appointment-block .tip table.attributes img.gravatar { vertical-align: middle; margin-right: 4px; } .appointment-block .tip hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.12); margin: 8px 0; } .appointment-block .tip .description { max-height: 120px; overflow-y: auto; font-size: 11px; color: #333; line-height: 1.4; } .appointment-block .tip .buttons { margin: 0; text-align: right; } /* Show View Header Elements */ .calendar-badge { display: inline-block; width: 38px; border: 1px solid #b8c0c8; border-radius: 4px; overflow: hidden; text-align: center; vertical-align: middle; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-right: 8px; line-height: 1; background: #fff; } .calendar-badge .month { background-color: #d92626; color: #ffffff; font-size: 9px; font-weight: bold; padding: 3px 0 2px 0; text-transform: uppercase; letter-spacing: 0.5px; } .calendar-badge .day { color: #222222; font-size: 16px; font-weight: bold; padding: 4px 0 3px 0; } h2 .appointment-title { vertical-align: middle; } .appointment-dates { font-size: 70%; color: #555; margin-left: 8px; font-weight: normal; vertical-align: middle; } /* ========================================================================== Custom High-Vibrancy Hex Status Themes & Tinted Tooltips ========================================================================== */ /* Scheduled - #1FC0FF */ .appointment-block.scheduled, .appointment-block.scheduled:hover, .appointment-block.scheduled.open { background: #e8f8ff !important; border-color: #91e2ff !important; } .appointment-block.scheduled .appointment-bar { background-color: #1fc0ff !important; } .appointment-block.scheduled .appointment-divider { border-top-color: #b3ebff !important; } .appointment-block.scheduled .tip, .appointment-block.scheduled:hover .tip, .appointment-block.scheduled.open .tip { background: #f2faff !important; border-color: #70d6ff !important; } /* Ready - #1FFF1F */ .appointment-block.ready, .appointment-block.ready:hover, .appointment-block.ready.open { background: #e8ffe8 !important; border-color: #8bff8b !important; } .appointment-block.ready .appointment-bar { background-color: #1fff1f !important; } .appointment-block.ready .appointment-divider { border-top-color: #b5ffb5 !important; } .appointment-block.ready .tip, .appointment-block.ready:hover .tip, .appointment-block.ready.open .tip { background: #f2fff2 !important; border-color: #66ff66 !important; } /* CheckedIn - #CE1FFF */ .appointment-block.checked-in, .appointment-block.checkedin, .appointment-block.checked_in, .appointment-block.checked-in:hover, .appointment-block.checkedin:hover, .appointment-block.checked_in:hover, .appointment-block.checked-in.open, .appointment-block.checkedin.open, .appointment-block.checked_in.open { background: #f8e8ff !important; border-color: #e891ff !important; } .appointment-block.checked-in .appointment-bar, .appointment-block.checkedin .appointment-bar, .appointment-block.checked_in .appointment-bar { background-color: #ce1fff !important; } .appointment-block.checked-in .appointment-divider, .appointment-block.checkedin .appointment-divider, .appointment-block.checked_in .appointment-divider { border-top-color: #f0b3ff !important; } .appointment-block.checked-in .tip, .appointment-block.checkedin .tip, .appointment-block.checked_in .tip, .appointment-block.checked-in:hover .tip, .appointment-block.checkedin:hover .tip, .appointment-block.checked_in:hover .tip, .appointment-block.checked-in.open .tip, .appointment-block.checkedin.open .tip, .appointment-block.checked_in.open .tip { background: #fcf2ff !important; border-color: #df70ff !important; } /* InProgress - #FF5E1F */ .appointment-block.in-progress, .appointment-block.inprogress, .appointment-block.in_progress, .appointment-block.in-progress:hover, .appointment-block.inprogress:hover, .appointment-block.in_progress:hover, .appointment-block.in-progress.open, .appointment-block.inprogress.open, .appointment-block.in_progress.open { background: #fff0e8 !important; border-color: #ffb391 !important; } .appointment-block.in-progress .appointment-bar, .appointment-block.inprogress .appointment-bar, .appointment-block.in_progress .appointment-bar { background-color: #ff5e1f !important; } .appointment-block.in-progress .appointment-divider, .appointment-block.inprogress .appointment-divider, .appointment-block.in_progress .appointment-divider { border-top-color: #ffccb3 !important; } .appointment-block.in-progress .tip, .appointment-block.inprogress .tip, .appointment-block.in_progress .tip, .appointment-block.in-progress:hover .tip, .appointment-block.inprogress:hover .tip, .appointment-block.in_progress:hover .tip, .appointment-block.in-progress.open .tip, .appointment-block.inprogress.open .tip, .appointment-block.in_progress.open .tip { background: #fff6f2 !important; border-color: #ff9970 !important; } /* Completed - #008000 */ .appointment-block.completed, .appointment-block.completed:hover, .appointment-block.completed.open { background: #e6f5e6 !important; border-color: #80c080 !important; } .appointment-block.completed .appointment-bar { background-color: #008000 !important; } .appointment-block.completed .appointment-divider { border-top-color: #a3d9a3 !important; } .appointment-block.completed .tip, .appointment-block.completed:hover .tip, .appointment-block.completed.open .tip { background: #f0fcf0 !important; border-color: #66b366 !important; } /* Cancelled - #FF1F1F & Strikethrough */ .appointment-block.cancelled, .appointment-block.canceled, .appointment-block.cancelled:hover, .appointment-block.canceled:hover, .appointment-block.cancelled.open, .appointment-block.canceled.open { background: #ffe8e8 !important; border-color: #ff9191 !important; } .appointment-block.cancelled .appointment-bar, .appointment-block.canceled .appointment-bar { background-color: #ff1f1f !important; } .appointment-block.cancelled .appointment-divider, .appointment-block.canceled .appointment-divider { border-top-color: #ffb3b3 !important; } .appointment-block.cancelled .tip, .appointment-block.canceled .tip, .appointment-block.cancelled:hover .tip, .appointment-block.canceled:hover .tip, .appointment-block.cancelled.open .tip, .appointment-block.canceled.open .tip { background: #fff2f2 !important; border-color: #ff7070 !important; } .appointment-block.cancelled .appointment-title, .appointment-block.cancelled .appointment-link, .appointment-block.canceled .appointment-title, .appointment-block.canceled .appointment-link { text-decoration: line-through; } /* Call Out - #FFFF00 */ .appointment-block.call_out, .appointment-block.call_out:hover, .appointment-block.call_out.open { background: hsl(60, 100%, 95%) !important; border-color: hsl(60, 100%, 50%) !important; } .appointment-block.call_out .appointment-bar { background-color: hsl(60, 100%, 45%) !important; } .appointment-block.call_out .appointment-divider { border-top-color: hsl(60, 100%, 80%) !important; } .appointment-block.call_out .tip, .appointment-block.call_out:hover .tip, .appointment-block.call_out.open .tip { background: hsl(60, 100%, 97%) !important; border-color: hsl(60, 100%, 60%) !important; } /* Table List Alignment */ table.appointments td, table.appointments th { vertical-align: middle !important; } table.appointments th.status, table.appointments td.status { text-align: center !important; } /* Quick Status Bar Container */ .appointment-quick-actions { display: flex; align-items: center; gap: 6px; margin: 12px 0 16px 0; flex-wrap: wrap; } .quick-action-label { font-weight: bold; color: #333; font-size: 0.85em; margin-right: 4px; text-transform: uppercase; letter-spacing: 0.5px; } /* Shared Badge Base */ .status-badge, .quick-status-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 4px 11px; font-size: 11px; font-weight: 700; line-height: 1.2 !important; border-radius: 12px; border: 1px solid transparent; text-decoration: none !important; white-space: nowrap; box-sizing: border-box; transition: opacity 0.15s ease, transform 0.1s ease; } .quick-status-btn:hover { opacity: 0.88; transform: translateY(-1px); } /* ========================================================================== Badges & Quick Action Buttons ========================================================================== */ /* Scheduled - #1FC0FF */ .status-scheduled { background-color: #e8f8ff !important; border-color: #91e2ff !important; color: #0077a3 !important; } /* Ready - #1FFF1F */ .status-ready { background-color: #e8ffe8 !important; border-color: #8bff8b !important; color: #008f00 !important; } /* CheckedIn - #CE1FFF */ .status-checked-in, .status-checkedin, .status-checked_in { background-color: #f8e8ff !important; border-color: #e891ff !important; color: #8300ad !important; } /* InProgress - #FF5E1F */ .status-in-progress, .status-inprogress, .status-in_progress { background-color: #fff0e8 !important; border-color: #ff9191 !important; color: #b33000 !important; } /* Completed - #008000 */ .status-completed { background-color: #e6f5e6 !important; border-color: #80c080 !important; color: #005200 !important; } /* Cancelled - #FF1F1F */ .status-cancelled, .status-canceled { background-color: #ffe8e8 !important; border-color: #ff9191 !important; color: #b30000 !important; } /* Completed - #FFFF00 */ .status-call_out { background-color: hwb(60 0% 0%) !important; border-color: lab(0% 0 0) !important; color: hwb(60 0% 100%) !important; } /* Redefine grid column proportions for the calendar layout */ ul.cal { display: grid; grid-template-columns: max-content 0.5fr repeat(5, 1fr) 0.5fr !important; } /* Compress content and dim non-working weekend cells */ ul.cal li.nwday, ul.cal li.sunday, ul.cal li.saturday { background-color: #f7f7f7; padding: 2px !important; } /* Hide non-essential metadata on narrow weekend cells */ ul.cal li.nwday .icon-user, ul.cal li.nwday .buttons { display: none; } /* Highlight Today's Calendar Box & Number */ ul.cal li.today, ul.cal li#today, table.cal td.today { outline: 2px solid #ff00bf !important; outline-offset: -2px !important; } /* Responsive Mobile View */ @media screen and (max-width: 768px) { table.cal thead { display: none !important; } table.cal, table.cal tbody, table.cal tr, table.cal td { display: block !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; } table.cal td { width: 100% !important; min-height: 48px; margin-bottom: 8px; border: 1px solid #d7d7d7 !important; border-radius: 4px; padding: 6px !important; background: #ffffff; } ul.cal { display: flex !important; flex-direction: column !important; grid-template-columns: 1fr !important; padding: 0 !important; margin: 0 !important; } ul.cal li { width: 100% !important; margin-bottom: 8px; box-sizing: border-box; } .appointment-block { width: 100% !important; max-width: 100% !important; } .appointment-block .tip, .appointment-block.open .tip { position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 90vw !important; max-width: 340px !important; max-height: 80vh !important; overflow-y: auto !important; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important; } table.cal td:nth-child(n+6) .appointment-block .tip { left: 50% !important; right: auto !important; } }