.progress{
    background-color: #ff87b1;
}
.modal-body { max-height: 75vh; overflow-y: auto; }

.author-box-job .badge {
    padding: 4px 9px;
}

.tickets .ticket-content {
    width: 100%;
}

.imagecheck-image {
    height: 324px;
}

.description-wrapper{
    white-space: pre-wrap;
}

.gantt .bar{
    fill: var(--theme-color) !important;
    stroke: #3e003e !important;
}

.gantt .bar-progress{
    fill: #0056b3 !important;
}

.sidebar-menu {
    font-size: 16px;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    z-index: 1;
} 

.paymet-box{
    margin: 3px;
    padding: 3px;
    border: 3px solid #0d1137;
    border-radius: 5px;
}

.cursor-pointer {
    cursor: pointer;
}
.text-strike {
    text-decoration: line-through;
}

.profile-widget .profile-widget-picture{
    height: 100px;
}

.navbar .nav-link.nav-link-user img{
    height: 30px;
}
.profile-widget-header .avatar-item .avatar-badge{
    z-index: 1;
    bottom: -65px;
    right: 3px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    background-color: #6777ef;
}

.user-avatar.avatar.avatar-xl{
    font-size: 45px;
    height: 100px;
    width: 100px;
}

.select2-container {
    display: block !important;
    width: 100% !important;
}

.system-logos{
	max-width: 100%;
    max-height: 100%;
}

.navbar-logos{
    padding: 10px;
    width: auto;
    height: auto;
    max-height: 59px;
}

.code img{
    width: 100%;
    height: auto;
    padding: 25px;
}

.range{
    padding: 10px 0px !important;
}

.kanban .dropdown-toggle{
    outline: none;
}
.kanban .dropdown-toggle:after{
display: none;
}
.kanban {
display: block;
white-space: nowrap;
overflow-x: auto;
}
.tasks.tasks:not(:last-child) {
margin-right: 0.25rem;
}
.tasks {
    display: inline-block;
    width: calc((100% - 3rem) / 5);
    min-width: 15rem;
    padding: 0 0.5rem 0.5rem 0.5rem;
    border: 1px solid var(--theme-color);
    vertical-align: top;
    margin-bottom: 30px;
    border-radius: 0.5rem;
}
.tasks .task-header {
    color: #9ca3a9;
    padding: 0.5rem;
    font-weight: bold;
}
.task-list-items {
min-height: 100px;
position: relative;
}
.task-list-items:before {
content: "No Tasks";
position: absolute;
line-height: 110px;
width: 100%;
text-align: center;
font-weight: 600;
}
.tasks .card {
white-space: normal;
margin-top: 0.5rem;
}
.tasks .card .card-body.p-2 {
padding: 0.5rem !important;
}

/* Task card enhancements */
.task-number {
    font-size: 0.75rem;
    color: #9ca3a9;
}
.task-label {
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-right: 2px;
    margin-bottom: 2px;
    display: inline-block;
    border-radius: 3px;
    color: #fff;
    line-height: 1.4;
}
.column-timer {
    font-size: 0.7rem;
    color: #6c757d;
}
.subtask-progress {
    font-size: 0.75rem;
    color: #6c757d;
}
.card-subtask-list,
.card-checklist-list {
    font-size: 0.75rem;
    color: #495057;
    border-top: 1px solid #eee;
    padding-top: 4px;
    margin-top: 4px;
}
.card-subtask-item,
.card-checklist-item {
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-checklist-item label {
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}
/* ── Dashboard Stripe-style ── */
.dash-section { background: #f8f9fa; }
.dash-stat { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); padding: 20px 24px; border-left: 3px solid transparent; height: 100%; }
.dash-stat--indigo { border-left-color: #6366f1; }
.dash-stat--amber { border-left-color: #f59e0b; }
.dash-stat--green { border-left-color: #10b981; }
.dash-stat--cyan { border-left-color: #06b6d4; }
.dash-stat__value { font-size: 28px; font-weight: 600; color: #1a1a2e; line-height: 1.2; }
.dash-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #6c757d; margin-bottom: 4px; }
.dash-stat__alert { font-size: 11px; color: #ef4444; margin-top: 4px; font-weight: 500; }
.dash-card { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); height: 100%; }
.dash-card__header { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.dash-card__title { font-size: 14px; font-weight: 600; color: #1a1a2e; margin: 0; }
.dash-card__body { padding: 16px 20px; }
.dash-card__link { font-size: 12px; color: #6366f1; text-decoration: none; font-weight: 500; }
.dash-card__link:hover { color: #4f46e5; }
.dash-task { display: flex; align-items: center; padding: 10px 20px; border-bottom: 1px solid #f8f9fa; gap: 12px; transition: background 0.1s; }
.dash-task:hover { background: #f8f9fa; }
.dash-task:last-child { border-bottom: none; }
.dash-task--overdue { border-left: 3px solid #ef4444; }
.dash-task__id { font-size: 11px; color: #9ca3af; min-width: 40px; }
.dash-task__title { flex: 1; font-size: 13px; font-weight: 500; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.dash-task__title:hover { color: #6366f1; }
.dash-task__project { font-size: 11px; color: #9ca3af; min-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-task__due { font-size: 11px; color: #6c757d; min-width: 80px; text-align: right; white-space: nowrap; }
.dash-task__due--overdue { color: #ef4444; font-weight: 500; }
.dash-badge { font-size: 10px; padding: 3px 8px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.dash-badge--todo { background: #ede9fe; color: #6366f1; }
.dash-badge--progress { background: #fef3c7; color: #d97706; }
.dash-badge--review { background: #cffafe; color: #0891b2; }
.dash-badge--completed { background: #d1fae5; color: #059669; }
.dash-badge--blocked { background: #fee2e2; color: #dc2626; }
.dash-activity { max-height: 460px; overflow-y: auto; }
.dash-activity__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f8f9fa; }
.dash-activity__item:last-child { border-bottom: none; }
.dash-activity__avatar { width: 32px; height: 32px; border-radius: 50%; background: #ede9fe; color: #6366f1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.dash-activity__text { font-size: 12px; color: #374151; line-height: 1.4; }
.dash-activity__time { font-size: 11px; color: #9ca3af; }
.dash-progress { height: 4px; border-radius: 2px; background: #f0f0f0; }
.dash-progress__bar { height: 100%; border-radius: 2px; background: #6366f1; transition: width 0.3s; }
.dash-action { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f8f9fa; }
.dash-action:last-child { border-bottom: none; }
.dash-action__icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 14px; flex-shrink: 0; }
.dash-action__text { font-size: 13px; color: #374151; }
.dash-action__value { font-size: 13px; font-weight: 500; color: #1a1a2e; margin-left: auto; }
.dash-pipeline { display: flex; gap: 12px; }
.dash-pipeline__stage { flex: 1; text-align: center; padding: 16px 8px; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; }
.dash-pipeline__count { font-size: 24px; font-weight: 600; color: #1a1a2e; }
.dash-pipeline__label { font-size: 11px; text-transform: uppercase; color: #6c757d; letter-spacing: 0.5px; margin-top: 4px; }
.dash-pipeline__bar { height: 3px; border-radius: 2px; margin-bottom: 12px; }
@media (max-width: 768px) {
  .dash-task { flex-wrap: wrap; gap: 4px; }
  .dash-task__project { min-width: auto; }
  .dash-task__due { min-width: auto; }
  .dash-pipeline { flex-wrap: wrap; }
  .dash-pipeline__stage { min-width: calc(50% - 8px); }
}

.badge-sm {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Rich text content improvements */
.rich-text-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}
.rich-text-content td,
.rich-text-content th {
    border: 1px solid #ddd;
    padding: 8px;
}
.rich-text-content pre,
.rich-text-content code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}
.rich-text-content pre {
    padding: 10px;
    display: block;
    overflow-x: auto;
}
.rich-text-content img {
    max-width: 100%;
    height: auto;
}

/* Isolate rendered HTML content from external styles */
.rich-text-content {
    all: initial;
    display: block;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: 1.5;
}

.rich-text-content * {
    all: revert;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.rich-text-content li {
    border: none !important;
    padding: 0 !important;
    margin: 0.25em 0 !important;
}

.rich-text-content a {
    color: #6777ef;
    text-decoration: underline;
}

.rich-text-content p {
    margin: 0.5em 0;
}