.modal {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.modal-header {
  background-color: #759bbb;
  padding: 0.5rem 0.75rem;
  cursor: move;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
  min-height: 3rem;
  line-height: 1.9rem;
}
.modal-header .modal-title-info {
  margin-left: 1rem;
}
.modal-header .btnclose {
  float: right;
  color: #aaa;
  width: 1.9rem;
  height: 1.9rem;
}
.modal-header .btnclose:not([disabled]):hover,
.modal-header .btnclose:not([disabled]):active,
.modal-header .btnclose:not([disabled]):focus {
  color: #555;
  background-color: #fff9d0;
  border-color: #e5c365;
}
.modal-header .btnclose[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}
.modal-header .btn-help {
  float: right;
  color: #999;
  line-height: 1.8rem;
  padding: 0 4px;
  margin-right: 0.2rem;
  border: 1px solid transparent;
}
.modal-header .btn-help:hover {
  background-color: #fff9d0;
  border-color: #e5c365;
}
.modal-footer {
  padding: 0.75rem;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.modal-footer .btn {
  min-width: 6rem;
}
.modal-footer .btn + .btn,
.modal-footer .btn + .dropdown,
.modal-footer .dropdown + .btn {
  margin-left: 0.75rem;
}
.modal-footer .btn-help {
  cursor: pointer;
  margin-top: 5px;
}
.modal-footer .btn-help .ico {
  margin-right: 4px;
}
.modal-footer .btn-help:hover {
  text-decoration: none;
}
.modal-footer .btn + .btn-caret {
  min-width: 0;
  margin-left: 0;
}
.modal-body.confirm,
.modal-body.alert,
.modal-body.info {
  margin: 1.5rem 0.75rem;
  display: flex;
}
.modal-body.confirm > .ico,
.modal-body.alert > .ico,
.modal-body.info > .ico {
  font-size: 24px;
  display: inline-block;
  margin: 0 12px;
}
.modal-body.confirm > div,
.modal-body.alert > div,
.modal-body.info > div {
  white-space: pre-wrap;
}
.modal-content.content-iframe {
  display: flex;
}
.modal-content {
  flex-grow: 2;
  overflow: auto;
  position: relative;
}
.modal-content.overflow {
  overflow: visible;
}
.modal-content.overflow .tab-panel {
  overflow: visible;
}
.modal-content.overflow .tab-panel .tab-item {
  overflow: visible;
}
.modal-content .dialog-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0;
  grid-gap: 0;
  height: 100%;
}
.button-on-top .modal-content {
  order: 2;
}
.button-on-top .modal-footer {
  order: 1;
  border-bottom: 1px solid #ddd;
  border-top: none;
}
 
.modal-animation-frame.show {
  transition: background-color linear 0.1s, backdrop-filter step-end 0.1s;
  background-color: rgba(0, 0, 0, 0.2);
 }
.modal-animation-window:not([maximize]) {
  box-shadow: none;
  backface-visibility: hidden;
  transform: translate(0, -33%);
  opacity: 0;
}
.modal-animation-window:not([maximize]).loaded {
  transition: transform ease 0.1s, box-shadow ease 0.1s, opacity ease 0.1s;
  transform: translate(0, 0);
  opacity: 1;
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
}
.modal-animation-window[maximize] {
  box-shadow: none;
  backface-visibility: hidden;
  transform: scale(0.8, 0.8);
  transform-origin: center top;
  opacity: 0;
}
.modal-animation-window[maximize].loaded {
  transition: transform ease 0.1s, box-shadow ease 0.1s, opacity 0.1s ease;
  transform: scale(1, 1);
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
  opacity: 1;
}
.modal-header-menu {
  float: right;
  cursor: pointer;
}
.modal-header-menu .modal-menu-link {
  color: black;
  display: inline-block;
  width: 1.9rem;
  height: 1.9rem;
  margin: 0 2px;
  text-align: center;
}
.modal-header-menu .modal-menu-link:hover {
  background-color: #fff9d0;
  border-color: #e5c365;
}

  /* Task list: progress mini bar */
.progress-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.progress-mini-track {
  height: 6px;
  border-radius: 3px;
  width: 50px;
  background: var(--bg-muted, #e8e8e8);
  overflow: hidden;
}
.progress-mini-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--color-info, #42a5f5);
  transition: width 0.3s;
}
.progress-mini-fill.complete {
  background: var(--color-success, #66bb6a);
}

/* Task list: quick state change dropdown */
.quick-state-dropdown {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  padding: 4px 0;
  min-width: 120px;
}
.quick-state-item {
  padding: 4px 12px;
  cursor: pointer;
}
.quick-state-item:hover {
  background: #f5f5f5;
}

/* Task list: clickable status badge */
.status-clickable {
  cursor: pointer;
}

/* Task list: unassigned indicator */
.task-unassigned {
  color: #999;
  font-style: italic;
}
/* Task Chat Panel (inside Taskpad) */
.task-chat-panel .taskpad-body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.task-chat-input {
	border-top: 1px solid #e0e0e0;
	background: #fafbfc;
	margin-top: auto;
	flex-shrink: 0;
}

.task-chat-input .stack-panel.horizontal {
	align-items: center;
}

/* Chat input row: [📎] [textarea] [send] */
.chat-input-row {
	align-items: flex-end !important;
}

.chat-input-row .control-group {
	flex: 1 1 0% !important;
	min-width: 0 !important;
	width: auto !important;
}

.chat-input-row .control-group textarea {
	width: 100%;
	resize: none;
}

.chat-input-row > .btn,
.chat-input-row > .a2-button {
	flex: 0 0 auto;
}

.chat-input-row > .btn {
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
}

.chat-input-row > .btn:hover {
	opacity: 0.85;
	transform: scale(1.05);
}

/* Message styles */
.chat-message,
.chat-message-own {
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	margin-bottom: 0.5rem;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.chat-message {
	background: #f0f2f5 !important;
	margin-right: 2rem;
}

.chat-message-own {
	background: #e3f2fd !important;
	margin-left: 2rem;
}

/* Grouped messages: reduce gap and add visual connector */
.a2-list-item.chat-message + .a2-list-item.chat-message,
.a2-list-item.chat-message-own + .a2-list-item.chat-message-own {
	margin-top: -0.25rem;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

/* First message in group: sharpen bottom corners when followed by continuation */
.a2-list-item.chat-message:has(+ .a2-list-item.chat-message),
.a2-list-item.chat-message-own:has(+ .a2-list-item.chat-message-own) {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	margin-bottom: 1px;
}

/* Message row layout: [avatar] [content] */
.chat-msg-row {
	align-items: flex-start;
}

.chat-msg-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* Avatar circle with initials */
.chat-avatar {
	flex: 0 0 1.8rem;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: #7986cb;
	color: white;
	font-size: 0.7rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.1rem;
	line-height: 1;
}

.chat-message-own .chat-avatar {
	background: #42a5f5;
}

/* Quote block */
.chat-quote {
	border-left: 3px solid #1976d2;
	background: rgba(25, 118, 210, 0.08);
	border-radius: 0 4px 4px 0;
	margin-bottom: 0.2rem;
}

.chat-quote-text {
	font-style: italic;
	color: #666;
	font-size: 0.85em;
}

/* Quote preview in input area */
.chat-quote-preview {
	background: #fff3cd;
	border-left: 3px solid #ffc107;
	border-radius: 0 4px 4px 0;
	padding: 0.25rem 0.5rem;
	align-items: center;
}

/* Attachment preview */
.chat-attachment-preview {
	background: #e8f5e9;
	border-left: 3px solid #4caf50;
	border-radius: 0 4px 4px 0;
	padding: 0.25rem 0.5rem;
	align-items: center;
}

/* Date label */
.chat-date {
	font-size: 0.8em;
	color: #999;
}

/* Reply button */
.chat-reply-btn {
	opacity: 0;
	transition: opacity 0.15s;
}

.a2-list-item:hover .chat-reply-btn {
	opacity: 0.6;
}

.chat-reply-btn:hover {
	opacity: 1 !important;
}

/* Chat attachment link */
.chat-attach-link {
	align-items: center;
}

.chat-attach-icon {
	font-size: 0.85em;
	opacity: 0.7;
}

/* Chat file upload - compact icon-only style (override framework defaults) */
.chat-input-row .a2-file-upload {
	flex: 0 0 auto !important;
	align-self: flex-end;
	margin-bottom: 0.3rem;
}

.chat-input-row .a2-file-upload .file-upload {
	border: none !important;
	padding: 0 !important;
	min-height: auto !important;
	height: auto !important;
	background: transparent !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	position: relative;
	color: inherit;
}

.chat-input-row .a2-file-upload .file-upload input {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.chat-input-row .a2-file-upload .upload-tip {
	display: none !important;
}

.chat-input-row .a2-file-upload .ico {
	font-size: 1.4rem !important;
	color: #888;
	position: static !important;
	top: auto !important;
	left: auto !important;
}

.chat-input-row .a2-file-upload .ico::before {
	content: "\e954" !important;
}

.chat-input-row .a2-file-upload .file-upload:hover .ico {
	color: #1976d2;
}

/* Chat messages list scrollable */
.task-chat-panel .a2-list.chat {
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	flex: 1 1 auto;
}

/* Prevent message text from overflowing */
.chat-message,
.chat-message-own {
	word-break: break-word;
	overflow-wrap: break-word;
	min-width: 0;
}

.chat-message .a2-list-item-content,
.chat-message-own .a2-list-item-content {
	min-width: 0;
	overflow: hidden;
}

/* Cancel task button - outlined danger style */
.modal .btn.btn-danger[test-id="Task_Cancel"] {
	background-color: transparent;
	color: #da533f;
	border: 1px solid #da533f;
}

.modal .btn.btn-danger[test-id="Task_Cancel"]:not([disabled]):hover {
	background-color: #da533f;
	color: white;
}

/* Dialog grid - adjust columns when chat Taskpad is collapsed */
.modal-content .dialog-grid {
	min-height: 0;
}

.modal-content .dialog-grid:has(.taskpad.collapsed) {
	grid-template-columns: 1fr auto !important;
}
.btn {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}
.btn:focus {
  outline-offset: -3px;
  outline-color: #bbb;
  outline-style: dotted;
  outline-width: 1px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn > .ico {
  margin-right: 0.2em;
}
.btn.btn-icon > .ico {
  margin-right: 0;
}
.btn:not([disabled]):hover {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.4);
  transition: box-shadow linear 0.2s;
}
.btn:not([disabled]):active {
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset;
  outline-style: none;
  transition: box-shadow linear 0.2s;
}
.btn .btn-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  background-color: coral;
  border-radius: 50%;
  padding: 1px;
  min-width: 14px;
  min-height: 14px;
}
.btn.lg {
  padding: 0.85rem 1rem;
  font-size: 1.25rem;
  line-height: 1;
}
.btn.lg .ico {
  font-size: 1.3rem;
}
.btn.sm {
  padding: 0.4rem;
  font-size: 0.95rem;
  line-height: 1;
  min-height: 27px;
}
.btn.sm > .ico {
  font-size: 12px;
}
.btn.xs {
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1;
}
.btn.xs .ico {
  font-size: 0.85rem;
}
.btn.block + .btn.block {
  margin-top: 6px;
}
.btnclose {
  padding: 0 4px;
  line-height: normal;
  background-color: transparent;
  border: 1px solid transparent;
}
.caret {
  display: inline-block;
  margin: 0 0.25em;
  border: 4px solid transparent;
  vertical-align: middle;
  border-top-color: currentColor;
}
.caret.up {
  border-top-color: transparent;
  border-bottom-color: currentColor;
  vertical-align: 2px;
}
.btn.icon-top {
  display: inline-grid !important;
}
.btn.btn-primary {
  background-color: #3470b4;
  color: white;
}
.btn.btn-primary:active {
  background-color: #2b5c94 !important;
}
.btn.btn-primary:not([disabled]):hover {
  background-color: #2e64a0;
}
.btn.btn-primary[disabled] {
  color: #f5f5f5;
}
.btn.btn-orange,
.btn.btn-warning {
  background-color: #ffb74d;
  color: white;
}
.btn.btn-orange:active,
.btn.btn-warning:active {
  background-color: #ffa624 !important;
}
.btn.btn-orange:not([disabled]):hover,
.btn.btn-warning:not([disabled]):hover {
  background-color: #ffad33;
}
.btn.btn-orange[disabled],
.btn.btn-warning[disabled] {
  color: #f5f5f5;
}
.btn.btn-green,
.btn.btn-success {
  background-color: #5db750;
  color: white;
}
.btn.btn-green:active,
.btn.btn-success:active {
  background-color: #4c9d41 !important;
}
.btn.btn-green:not([disabled]):hover,
.btn.btn-success:not([disabled]):hover {
  background-color: #52a845;
}
.btn.btn-green[disabled],
.btn.btn-success[disabled] {
  color: #f5f5f5;
}
.btn.btn-red,
.btn.btn-danger,
.btn.btn-error {
  background-color: #da533f;
  color: white;
}
.btn.btn-red:active,
.btn.btn-danger:active,
.btn.btn-error:active {
  background-color: #c93c27 !important;
}
.btn.btn-red:not([disabled]):hover,
.btn.btn-danger:not([disabled]):hover,
.btn.btn-error:not([disabled]):hover {
  background-color: #d6402a;
}
.btn.btn-red[disabled],
.btn.btn-danger[disabled],
.btn.btn-error[disabled] {
  color: #f5f5f5;
}
.btn.btn-cyan,
.btn.btn-info {
  background-color: #60bbe5;
  color: white;
}
.btn.btn-cyan:active,
.btn.btn-info:active {
  background-color: #3dacdf !important;
}
.btn.btn-cyan:not([disabled]):hover,
.btn.btn-info:not([disabled]):hover {
  background-color: #4ab2e1;
}
.btn.btn-cyan[disabled],
.btn.btn-info[disabled] {
  color: #f5f5f5;
}
.btn-rounded {
  border-radius: 10rem;
  padding: 0.5rem;
  min-width: 2.6rem;
  min-height: 2.6rem;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid #ddd;
}
.btn-outline:hover {
  border-color: #e5c365;
  background-color: #fdf4bf;
}
.btn-outline:active {
  background-color: #fff29d;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset;
  border-color: #e5c365;
  outline: none;
}
.btn-outline:focus {
  outline: none;
}
.btn-outline .ico:before {
  color: #777 !important;
}

.btn-tb {
  padding: 5px 6px 6px 6px;
  white-space: nowrap;
  background-color: transparent;
  color: #222;
  min-width: 0;
  min-height: 28px;
  margin: 2px 0;
}
.btn-tb:focus {
  outline: 1px dotted #9dacca;
  outline-offset: -2px;
}
.btn-tb:hover {
  background-color: #fdf4bf;
  border-color: #e5c365;
  outline: none;
}
.btn-tb:active {
  background-color: #fff29d;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset;
  border-color: #e5c365;
  outline: none;
}
.btn-tb:disabled {
  color: #999;
}
.btn-tb:disabled:hover {
  background-color: transparent;
  border-color: transparent;
}
.btn-tb > i.ico {
  display: inline-block;
  margin-right: 2px;
  color: #333;
}
.control-group .input-group .a2-inline {
  margin-left: 0 !important;
}

.a2-hyperlink.highlight .ico.ico-send:before {
  content: "\e950";
}
.a2-hyperlink.highlight:not([disabled]) .ico:before {
  color: #208cf8 !important;
}
.a2-hyperlink.highlight:not([disabled]) .ico.ico-send:before {
  content: "\e951";
}
.a2-hyperlink.small i.ico {
  font-size: 12px;
}
.a2-hyperlink.large i.ico {
  font-size: 15px;
}.commandbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0;
  overflow: visible;
  background-color: transparent;
  color: #208cf8;
}
.commandbar .btn-cb {
  white-space: nowrap;
  background-color: transparent;
  text-transform: lowercase;
  color: #222;
  min-width: 0;
  padding: 2px 4px 3px 4px;
}
.commandbar .btn-cb:focus {
  outline: 1px dotted #9dacca;
  outline-offset: -2px;
}
.commandbar .btn-cb:hover {
  background-color: #fdf4bf;
  border-color: #e5c365;
  outline: none;
}
.commandbar .btn-cb:active {
  background-color: #fff29d;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset;
  border-color: #e5c365;
  outline: none;
}
.commandbar .btn-cb:disabled {
  color: #777;
}
.commandbar .btn-cb:disabled:hover {
  background-color: transparent;
  border-color: transparent;
}
.commandbar.visible-active,
.commandbar.visible-hover {
  visibility: hidden;
}
.active .commandbar.visible-active,
.active .commandbar.visible-hover {
  visibility: visible;
}
tr:hover .commandbar.visible-hover {
  visibility: visible;
}
.data-grid td > .commandbar {
  margin: -3px;
}

table.tree-grid .commandbar {
  margin: -3px;
}

.commandbar .btn-cb:hover {
  outline: none;
  background-color: rgba(27, 166, 255, 0.2);
  border-color: #0f8e92;
}
.commandbar .btn-cb:active {
  outline: none;
  background-color: rgba(27, 166, 255, 0.2);
  border-color: #0f8e92;
  box-shadow: none;
}/* Column resize handles for DataGrid */
table.data-grid.resizable > thead > tr > th:not(.fit):not(.marker):not(:last-child) {
    position: relative;
}

table.data-grid.resizable > thead > tr > th:not(.fit):not(.marker):not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 4px;
    bottom: 4px;
    width: 6px;
    cursor: col-resize;
    z-index: 10;
    border-radius: 3px;
}

table.data-grid.resizable > thead > tr > th:not(.fit):not(.marker):not(:last-child):hover::after,
table.data-grid.resizable > thead > tr > th.col-resizing::after {
    background: rgba(0, 123, 255, 0.3);
}

body.col-resizing,
body.col-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}
.modal-content.InlineDialog_cpms {
    overflow: visible;
}

.TableRow_cpmsrows.control-group .input-group {
    background-color: transparent;
    border:none;
}

.TableRow_cpmsrowsPrime.control-group .input-group {
    background-color: transparent;
    border: none;
    background-color: #d8ffd880;
}

.data-grid-fetch td {
    padding: 6px 8px !important;
}

.data-grid-fetch th .h-holder {
    padding: 2px 8px !important;
}

.modal-animation-frame.show {
    backdrop-filter: none;
}

.modal-footer .btn-more {
    min-width: auto;
}

.a2-sticky-container {
    overflow: visible;
}

.tab-panel.full-page .tab-content {
    overflow: visible;
}
.DataGrid_overflow {
    overflow: visible;
    overflow-y: inherit;
}

.OverflowX {
    overflow-x: auto;
}

.gantt-container {
    overflow: auto;
    height: 100%;
}

.gantt-header {
    position: sticky;
    top: 37px;
    z-index: 5;
    background: #fff;
}

.a2-graphics + .toolbar,
.grid:has(.gantt-header) > .toolbar {
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--background, #fff);
}

.gantt-popover {
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    min-width: 200px;
    max-width: 320px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: auto;
}

.gantt-popover-title {
    font-weight: 600;
    font-size: 13px;
    color: #1565c0;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.gantt-popover-row {
    padding: 2px 0;
    color: #333;
}

.gantt-popover-label {
    color: #777;
    font-weight: 500;
}

.gantt-popover-progress {
    font-weight: 600;
    color: #2196f3;
}

/* Dependency arrows */
.gantt-dep-arrow {
    stroke: #e57373;
    stroke-width: 1.5;
    fill: none;
    pointer-events: stroke;
    cursor: pointer;
}
.gantt-dep-arrow:hover {
    stroke: #d32f2f;
    stroke-width: 2.5;
}

/* Context menu */
.gantt-context-menu {
    position: absolute;
    z-index: 20;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    padding: 4px 0;
}
.gantt-context-menu-item {
    padding: 6px 16px;
    cursor: pointer;
    white-space: nowrap;
}
.gantt-context-menu-item:hover {
    background: #e3f2fd;
}
.gantt-context-menu-item.disabled {
    color: #aaa;
    pointer-events: none;
}
.gantt-context-menu-item.danger {
    color: #e53935;
}
.gantt-context-menu-item.danger:hover {
    background: #ffebee;
}
.gantt-context-menu-separator {
    border-top: 1px solid #e0e0e0;
    margin: 4px 0;
}

/* Linking mode */
.gantt-linking rect,
.gantt-linking path {
    cursor: crosshair;
}
.gantt-link-source rect,
.gantt-link-source path {
    stroke: #e53935 !important;
    stroke-width: 2 !important;
    stroke-dasharray: 4 2;
}
.gantt-linking-hint {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #1565c0;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Dependency dialog */
.gantt-dep-dialog {
    position: absolute;
    z-index: 20;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 240px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
}
.gantt-dep-dialog label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #555;
}
.gantt-dep-dialog select,
.gantt-dep-dialog input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 8px;
}
.gantt-dep-dialog .dep-dialog-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}
.gantt-dep-dialog button {
    padding: 4px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
}
.gantt-dep-dialog button.primary {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}
.gantt-dep-dialog button.primary:hover {
    background: #1256a8;
}
.gantt-dep-dialog button.danger {
    color: #e53935;
    border-color: #e53935;
}
.gantt-dep-dialog button.danger:hover {
    background: #ffebee;
}

/* Dependencies list popup */
.gantt-deps-list {
    position: absolute;
    z-index: 20;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    min-width: 280px;
    max-width: 400px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
}
.gantt-deps-list-title {
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}
.gantt-deps-list-section {
    font-weight: 500;
    color: #777;
    margin-top: 6px;
    margin-bottom: 2px;
}
.gantt-deps-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.gantt-deps-list-item:hover {
    background-color: #e3f2fd;
}
.gantt-deps-list-item:last-child {
    border-bottom: none;
}
.gantt-deps-list-item .dep-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gantt-deps-list-item .dep-type {
    color: #1565c0;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}
.gantt-deps-list-item .dep-delete {
    color: #e53935;
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
}
.gantt-deps-list-item .dep-delete:hover {
    color: #b71c1c;
}

.DataGrid_valign .data-grid-body .data-grid > tbody > tr > td {
    vertical-align: middle;
}

.TableRow_cpmsrows_line.control-group .input-group {
    text-decoration: line-through;
    background-color: transparent;
    border: none;
}

/* Word wrap for text with overlay buttons */
.text-wrap-container {
    position: relative;
}

.text-wrap {
    white-space: normal;
    word-wrap: break-word;
    display: block;
    padding: 2px 6px;
}

/* Truncate text with ellipsis - for long text in grid columns */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5em;
}

/* CommandBar overlay on right side */
.cmd-bar-right {
    position: absolute;
    right: 0;
    bottom: 0;
    justify-content: flex-end;
    gap: 16px;
    background: linear-gradient(to right, transparent, white 20%);
    padding-left: 20px;
}


.a2-table td.ctrl {
    vertical-align: middle;
}


.homepage {
    background-image: url("/home.png");
    background-repeat: repeat-x;
    background-position-y: center;
    background-position-x:center;
}

.bigheader {
    font-size: large;
    color: midnightblue;
    position: absolute;
    top: 0;
    background-color: azure;
    border-radius: 15px;
}

.side-bar {
    background-color:azure;
}






/* Kanban base styles moved to kanban.css */

/* Sticky headers for Sheet tables */
.sticky-sheet-container {
    overflow: auto;
    max-height: calc(100vh - 200px);
}

/* Sticky headers for SheetPage */
.sheet-page-wrapper.sticky-sheet-container {
    max-height: calc(100vh - 150px);
}

.sheet-page-wrapper.sticky-sheet-container .sheet-page {
    max-height: none;
}

.sticky-sheet-container table.sheet thead {
    position: sticky;
    top: 0;
    z-index: 7;
}

.sticky-sheet-container table.sheet thead tr {
    background-color: var(--background, white);
}

.sticky-sheet-container table.sheet thead tr.row-header {
    background-color: #e7e7e7;
}

.sticky-sheet-container table.sheet tfoot {
    position: sticky;
    bottom: 0;
    z-index: 7;
}

.sticky-sheet-container table.sheet tfoot tr {
    background-color: var(--background, white);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 2px 4px;
  overflow: visible;
  background-color: #cfd6e5;
  color: #555;
  z-index: 8;
}
.toolbar .checkbox {
  margin: 0 6px;
}
.toolbar.no-wrap {
  flex-wrap: nowrap;
}
.toolbar.tb-border-bottom {
  border-bottom: 1px solid #ddd;
}
.toolbar.tb-border-bottom-shadow {
  border-bottom: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.toolbar > .control-group.first-elem label {
  margin-left: 6px;
}
.toolbar.transparent {
  background-color: transparent;
  padding: 2px 2px 2px 0;
}
.toolbar.transparent .btn-tb {
  color: #208cf8;
}
.toolbar.transparent > .divider {
  border-right-color: #e3e7f0;
  background-color: #f7f8fb;
}
.toolbar.transparent .dropdown.show .btn {
  background: white;
  border: 1px dotted #ccc;
}
.toolbar.light {
  background-color: white;
}
.toolbar.light > .divider {
  border-right-color: #ececec;
  background-color: #fcfcfc;
}
.toolbar.light .dropdown.show .btn {
  background: white;
  border: 1px dotted #ccc;
}
.toolbar > .btn,
.toolbar > .dropdown > .btn {
  padding: 4px 6px 5px 6px;
}
.toolbar > .dropdown > .btn-caret {
  border-left-color: #bbc5da;
}
.toolbar .btn-caret {
  background-color: transparent;
}
.toolbar .btn-caret:hover {
  background-color: #fdf4bf;
  border-color: #e5c365;
  outline: none;
}
.toolbar .a2-header {
  margin: 0;
  align-self: baseline;
}
.toolbar > .divider {
  flex-grow: 0;
  display: inline-block;
  width: 2px;
  border-right: 1px solid #e0e4ee;
  align-self: stretch;
  background-color: #9dacca;
  margin: 2px 4px;
}
.toolbar > .control-group {
  display: inline-flex;
  margin: 2px 0;
  align-self: baseline;
  background-color: transparent;
}
.toolbar > .control-group .input-group {
  min-height: 28px;
}
.toolbar > .control-group label {
  align-self: center;
  margin: 0 6px 0 2px;
  font-size: 100%;
  white-space: nowrap;
  line-height: 1;
}
.toolbar .control-group + .control-group {
  margin-left: 6px;
}/* Task Reports Styles */

.task-report-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

/* Status bar chart */
.status-bar-container {
    display: flex;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
}

.status-bar-segment {
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
}

.bg-info { background: #2196F3; }
.bg-warning { background: #FF9800; }
.bg-success { background: #4CAF50; }
.bg-danger { background: #F44336; }

/* Status dots */
.status-dot.info { background: #2196F3; }
.status-dot.warning { background: #FF9800; }
.status-dot.success { background: #4CAF50; }
.status-dot.danger { background: #F44336; }

/* Priority bars */
.priority-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.priority-bar.critical { background: linear-gradient(90deg, #F44336, #E53935); }
.priority-bar.high { background: linear-gradient(90deg, #FF9800, #FB8C00); }
.priority-bar.normal { background: linear-gradient(90deg, #2196F3, #1E88E5); }
.priority-bar.low { background: linear-gradient(90deg, #9E9E9E, #BDBDBD); }

/* Trend bars */
.trend-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 60px;
}

.trend-bar {
    min-width: 16px;
    border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}

.trend-bar.created { background: #2196F3; }
.trend-bar.completed { background: #4CAF50; }

/* Overdue badge */
.overdue-badge {
    background: #F44336;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Priority badges for tables */
.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-badge.critical { background: #FFEBEE; color: #C62828; }
.priority-badge.high { background: #FFF3E0; color: #E65100; }
.priority-badge.normal { background: #E3F2FD; color: #1976D2; }
.priority-badge.low { background: #F5F5F5; color: #999; }

/* Workload bars */
.workload-bar-container {
    display: flex;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.workload-bar {
    height: 100%;
    transition: width 0.5s ease;
}

.workload-bar.completed { background: #4CAF50; }
.workload-bar.inprogress { background: #FF9800; }
.workload-bar.overdue { background: #F44336; }
.workload-bar.other { background: #BDBDBD; }

/* Overdue deadline in DatePicker */
.date-picker.text-color-danger input {
    color: #a94442;
    font-weight: 600;
}

/* Data table */
.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}
/* Proxima Nova web fonts */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/_files/fonts/proxima-nova-regular.woff2') format('woff2'),
       url('/_files/fonts/proxima-nova-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/_files/fonts/proxima-nova-regular-italic.woff2') format('woff2'),
       url('/_files/fonts/proxima-nova-regular-italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/_files/fonts/proxima-nova-semibold.woff2') format('woff2'),
       url('/_files/fonts/proxima-nova-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('/_files/fonts/proxima-nova-bold.woff2') format('woff2'),
       url('/_files/fonts/proxima-nova-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply Proxima Nova globally */
body, input, button, select, textarea {
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom navigation colors for blue theme */
:root {
  --nav900: #1a4a7a;
  --nav800: #2573a8;
  --nav700: #4a90c2;
  --nav-bg: #2573a8;
  --nav-icon: #ffffffd0;
  --nav-text: #ffffffe8;
  --nav-line: #ffffff7d;
  --nav-accent: #96c0f3;
  --mdi-menu-bg: #1a4a7a;
  --mdi-menu-text: #ffffffe8;
  --mdi-menu-hover: #2573a8;
  --mdi-menu-light: #ffffffb0;
  --mdi-menu-line: #ffffff7d;

  /* Increased base font size for better readability */
  --fontSize: 15px;
}

/* Wider sidebar navigation panel */
.mdi-navbar {
  min-width: 90px;
}

.mdi-navbar .bar li {
  max-width: 82px;
}

/* Larger font for sidebar menu labels */
.mdi-navbar .bar li .menu-text {
  font-size: 12px;
  line-height: 1.15;
}

/* Larger font for form labels */
.control-group label {
  font-size: 95%;
}

/* Larger font for small text elements */
.small {
  font-size: 0.9em;
}

table.data-grid td.small {
  font-size: 0.9rem;
}

/* PropertyGrid borders for better visibility */
table.prop-grid.grid-both td.prop-name {
  border-right: 1px solid #999;
  padding-right: 10px;
}

table.prop-grid.grid-both td.prop-value {
  padding-left: 10px;
}

/* Theme settings color picker */
input.theme-color-picker {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
}

input.theme-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
input.theme-color-picker::-webkit-color-swatch { border: none; border-radius: 2px; }
input.theme-color-picker::-moz-color-swatch { border: none; border-radius: 2px; }

/* Home page background image — falls back to /home.png when no theme image is set */
.homepage {
  background-image: var(--home-image-url, url("/home.png"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}

table.prop-grid.grid-both td {
  border-bottom: 1px solid #ccc;
}

table.prop-grid.grid-both tr:last-child td {
  border-bottom: none;
}

/* Read-only info field — dashed border + light background */
.readonly-info textarea,
.readonly-info input[type="text"] {
  background-color: #f5f8fc !important;
  border: 1px dashed #b0c4de !important;
  color: #555 !important;
}

/* Menu customization indent levels */
.menu-indent-1 {
  padding-left: 24px;
}

.menu-indent-2 {
  padding-left: 48px;
}

.menu-indent-3 {
  padding-left: 72px;
}

/* Homepage taskpad - add top padding to prevent overlap with collapse button */
.homepage .taskpad .taskpad-body {
  padding-top: 0.5rem;
}

.homepage .taskpad .taskpad-body h1:first-child {
  margin-top: 0;
  padding-left: 2rem;
}

.mdi-new-version {
  display: none !important;
}

/* Theme image uploader */
.theme-image-upload {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-upload-status {
  font-size: 0.875em;
  color: #555;
  word-break: break-all;
}
/* Kanban board custom styles */

/* ===== Layout: independent lane scrolling ===== */

.kanban {
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
}

.kanban .kanban-body {
    flex-grow: 1;
    overflow: hidden;
}

.kanban .lane {
    overflow-y: auto;
    flex-direction: column;
    align-self: stretch;
}

.kanban .kanban-header {
    z-index: 2;
    background: var(--background, #fff);
    flex-shrink: 0;
}

.kanban .kanban-footer {
    z-index: 2;
    background: var(--background, #fff);
    flex-shrink: 0;
}

/* ===== Lane header ===== */

.kanban-lane-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Color-coded lane headers */
.kanban .lane-header:has(.lane-color-info) {
    background: #E3F2FD;
    border-bottom: 2px solid #2196F3;
}

.kanban .lane-header:has(.lane-color-warning) {
    background: #FFF3E0;
    border-bottom: 2px solid #FF9800;
}

.kanban .lane-header:has(.lane-color-success) {
    background: #E8F5E9;
    border-bottom: 2px solid #4CAF50;
}

.kanban .lane-header:has(.lane-color-danger) {
    background: #FFEBEE;
    border-bottom: 2px solid #F44336;
}

.kanban-lane-count {
    font-size: 0.85em;
    color: #999;
    font-weight: normal;
}


/* ===== Card: project line ===== */

.kanban .kanban-card .kanban-card-header {
    padding: 4px 8px 2px;
    border-bottom: none;
}

.kanban-card-project {
    font-size: 0.75em;
    color: #999;
    line-height: 1.3;
}

/* ===== Card content ===== */

.kanban .kanban-card .kanban-card-content {
    padding-top: 2px;
    padding-bottom: 6px;
}

.kanban-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.kanban-card-meta {
    font-size: 0.85em;
    color: #666;
}

/* ===== Card footer indicators ===== */

.kanban .kanban-card .kanban-card-footer {
    padding: 2px 8px 4px;
    border-top: 1px solid var(--neutralBkDarker);
}

/* Hide footer when no visible indicators */
.kanban .kanban-card .kanban-card-footer:not(:has(.kanban-card-footer-bar)) {
    padding: 0;
    border-top: none;
}

.kanban-card-footer-bar {
    display: flex;
    align-items: center;
}

.kanban-card-indicator {
    font-size: 0.8em;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.kanban-card-indicator .ico {
    font-size: 0.95em;
}

/* Progress >= 90% highlighted green */
.kanban-progress-high {
    color: #2e7d32;
    font-weight: 600;
}

.kanban-progress-high .ico {
    color: #2e7d32;
}

/* Dashboard Animations & Styles */
.dashboard-page {
	background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
	min-height: 100vh;
}

/* Card animations */
.kpi-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	animation: fadeInUp 0.5s ease-out;
	animation-fill-mode: both;
}
.kpi-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.2s; }
.kpi-card:nth-child(5) { animation-delay: 0.25s; }
.kpi-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Pulse animation for alerts */
.pulse-alert {
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
	70% { box-shadow: 0 0 0 15px rgba(244, 67, 54, 0); }
	100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

/* Number counter animation */
.counter-value {
	display: inline-block;
	transition: all 0.3s ease;
}
.counter-value:hover {
	transform: scale(1.1);
}

/* Progress bar */
.progress-bar-container {
	width: 100%;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 0.5rem;
}
.progress-bar {
	height: 100%;
	border-radius: 4px;
	transition: width 1s ease-out;
	background: linear-gradient(90deg, #4CAF50, #8BC34A);
}
.progress-bar.warning { background: linear-gradient(90deg, #FF9800, #FFC107); }
.progress-bar.danger { background: linear-gradient(90deg, #F44336, #E91E63); }

/* Panel animations */
.panel-animated {
	animation: fadeIn 0.6s ease-out;
	animation-fill-mode: both;
}
.panel-animated:nth-of-type(1) { animation-delay: 0.35s; }
.panel-animated:nth-of-type(2) { animation-delay: 0.4s; }
.panel-animated:nth-of-type(3) { animation-delay: 0.45s; }

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Risk item animation */
.risk-item {
	transition: background-color 0.2s ease, padding-left 0.2s ease;
	border-left: 3px solid transparent;
}
.risk-item:hover {
	background-color: #fff5f5;
	padding-left: 1.25rem;
	border-left-color: #F44336;
}

/* Finance stat hover */
.finance-stat {
	padding: 1rem;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.finance-stat:hover {
	background-color: #f5f5f5;
	transform: scale(1.02);
}

/* Table row animation */
.data-grid tbody tr {
	transition: background-color 0.2s ease;
}

/* Status indicator */
.status-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 0.5rem;
	animation: blink 1.5s infinite;
}
.status-dot.green { background-color: #4CAF50; animation: none; }
.status-dot.yellow { background-color: #FF9800; }
.status-dot.red { background-color: #F44336; }

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Sparkline / Mini chart */
.mini-chart {
	display: flex;
	align-items: flex-end;
	height: 30px;
	gap: 2px;
	margin-top: 0.5rem;
}
.mini-chart-bar {
	flex: 1;
	background: linear-gradient(to top, #2196F3, #64B5F6);
	border-radius: 2px 2px 0 0;
	transition: height 0.5s ease;
	min-height: 3px;
}
