﻿:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #00325e; /* Updated from #4F51C0 */
    --pink: #e83e8c;
    --red: #FF5757;
    --orange: #fd7e14;
    --yellow: #EFA31D;
    --green: #13B955;
    --teal: #20c997;
    --cyan: #009CDC;
    --white: #fff;
    --gray: #868e96;
    --gray-dark: #343a40;
    --primary: #00325e; /* Updated from #4F51C0 */
    --secondary: #004785;
    --success: #13B955;
    --info: #009CDC;
    --warning: #EFA31D;
    --danger: #FF5757;
    --light: #F9F8FC;
    --dark: #17141F;
}

/* Update primary color references */

a.nav-link {
    color: #00325e;
}
.text-primary {
    color: #00325e !important;
}
.text-green {
    color: hsl(120deg 75% 25% / 60%);
}
.btn-primary {
    color: #fff !important;
    background-color: #00325e !important;
    border-color: #00325e !important;
}
.bg-primary {
    background-color: #00325e !important;
}

    .btn-primary:hover {
        background-color: #002745 !important;
        border-color: #001f38 !important;
    }

.btn-outline-primary {
    color: #00325e;
    border-color: #00325e;
}

    .btn-outline-primary:hover {
        color: #fff;
        background-color: #00325e;
        border-color: #00325e;
    }
/* Outline secondary - dark navy (replaces light purple) */
.btn-outline-secondary {
    color: #004785;
    border-color: #004785;
}
.btn-outline-secondary:hover {
    color: #fff;
    background-color: #004785;
    border-color: #004785;
}
.btn-outline-secondary:focus, .btn-outline-secondary.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 94, 0.4);
}
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle {
    color: #fff;
    background-color: #00325e;
    border-color: #00325e;
}
.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,
.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 94, 0.4);
}

/* Secondary button - dark navy (replaces light purple) */
.btn-secondary {
    color: #fff;
    background-color: #004785;
    border-color: #004785;
}
.btn-secondary:hover {
    color: #fff;
    background-color: #00325e;
    border-color: #002745;
}
.btn-secondary:focus, .btn-secondary.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 94, 0.4);
}
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: #002745;
    border-color: #001f38;
}
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 94, 0.4);
}
.btn-secondary.disabled, .btn-secondary:disabled {
    color: #fff;
    background-color: #d1d1d1;
    border-color: #ababab;
}

.btn-primary.disabled, .btn-primary:disabled, .btn-danger.disabled, .btn-danger:disabled, .btn-info.disabled, .btn-info:disabled {
    background-color: #d1d1d1;
    border-color: #ababab;
}

/* Primary button focus - navy instead of purple */
.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 94, 0.4);
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 50, 94, 0.4);
}

/* Badge and utility secondary - navy instead of purple */
.badge-secondary {
    color: #fff;
    background-color: #004785;
}
.border-secondary {
    border-color: #004785 !important;
}
.bg-secondary {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
}
.text-secondary {
    color: #004785 !important;
}
.k-switch-on .k-switch-track {
    border-color: #ccc;
    color: #fff;
    background-color: #00325e !important;
}
    /* Navigation styles */
    .bg-menu-nav {
    background-color: #00325e;
    background: rgb(0,50,94);
    background: linear-gradient(90deg, rgba(0,50,94,1) 0%, rgba(0,50,94,1) 56%, rgba(0,71,133,1) 100%);
}

/* List and selection styles */
.k-list-item.k-selected {
    color: #fff;
    background-color: #00325e !important;
}

.e-datepicker .e-active,
.e-datepicker .e-active:hover,
.e-datepicker .e-active.e-state-hover {
    background: #00325e !important;
    color: #fff !important;
}

.e-ntouch.e-datewidget .e-select:hover {
    background: #00325e !important;
    color: #fff !important;
}

a {
    color: #00325e
}

/* Link hover states */
a.text-primary:hover,
a.text-primary:focus {
    color: #001f38 !important;
}

/* Form focus states */
.form-control:focus {
    border-color: #00325e;
    box-shadow: 0 0 5px rgba(0, 50, 94, 0.4);
}

/* Navigation tabs */
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
    border-bottom: 1px solid #00325e;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #00325e;
}

/* List group active states */
.list-group-item.active {
    color: #00325e;
}

    .list-group-item.active:hover {
        background-color: #00325e;
    }

/* Progress bars */
.progress-bar {
    background-color: #00325e;
}

/* Custom button focus states */
.btn-primary:focus {
    box-shadow: 0 0 5px #004b8e;
}

/* Active nav states */
.nav-link.active {
    background-color: #00325e !important;
    color: #fff !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
    border-bottom: 2px solid #00325e;
    background-color: #004b8e;
    color: #FFF;
}



.fullscreen {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
}

/*Mobile Only Message*/
.mobile-only-image {
    width: 350px;
}

.mobile-only-text {
    width: 350px;
    font-size: 18pt;
    color: #333;
    text-align: center;
    margin: 10px auto;
}

.top-pad-ten {
    padding-top: 25%;
}

.mobile-only-header {
    background-color: #00325e;
    padding: 20px;
    text-align: center;
}

.electric{
    color: #EFA31D !important
}


/* Scoped to the header user-account dropdown in _AppLayout.cshtml.
   Was previously a bare `.dropdown-menu` rule that hijacked every dropdown
   on the site (forcing 300px width + top:46px right:0), breaking Popper
   positioning for row-level dropdowns elsewhere. */
.form-inline.dropdown > .dropdown-menu {
    position: absolute !important;
    width: 300px !important;
    max-width: none;
    top: 46px;
    right: 0;
    min-width: none;
    left: auto !important;
}

/* Shared task chat (Tickets, Dashboard, Tasks).
   Quill is loaded globally in _AppLayout, so any view with a #taskcomments
   tab using the canonical markup gets the same look. */
.comment-box {
    width: 100%;
    min-height: 40px;
    font-size: 11pt;
    height: 60vh;
    overflow-y: auto;
}

.comment-thread {
    padding: 0 8px;
}

.comment-item {
    padding: 14px 4px 12px 4px;
    border-bottom: 1px solid #e3e3e3;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #00325e;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    text-transform: uppercase;
}

.comment-avatar.customer {
    background-color: #d63384;
}

.comment-author {
    font-weight: 600;
    color: #212121;
}

.comment-meta {
    font-size: 11px;
    color: #676767;
}

.comment-body {
    margin-top: 4px;
    color: #212121;
    word-wrap: break-word;
}

.comment-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 4px 0;
}

.comment-body p {
    margin-bottom: 4px;
}

.comment-actions a {
    font-size: 12px;
    color: #676767;
    margin-left: 10px;
    cursor: pointer;
}

.comment-actions a:hover {
    color: #4F51C0;
    text-decoration: none;
}

.reply-box {
    background-color: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.reply-editor {
    background-color: #fff;
    min-height: 90px;
}

.reply-editor .ql-container {
    min-height: 90px;
    font-size: 11pt;
}

.comment-edit-editor {
    background-color: #fff;
    min-height: 80px;
}

.comment-edit-editor .ql-container {
    min-height: 80px;
    font-size: 11pt;
}

.chat-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1900000;
    background-color: #fff;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-fullscreen > .my-2 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-fullscreen .comment-box {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-y: auto;
}

.chat-fullscreen .reply-box {
    flex: 0 0 auto;
}

.chat-fullscreen .reply-editor,
.chat-fullscreen .reply-editor .ql-container {
    min-height: 160px;
}

.chat-fullscreen .comment-edit-editor,
.chat-fullscreen .comment-edit-editor .ql-container {
    min-height: 140px;
}

.solution-editor {
    background-color: #fff;
    min-height: 60vh;
}

.solution-editor .ql-container {
    min-height: 60vh;
    font-size: 12pt;
}

.solution-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1900000;
    background-color: #fff;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.solution-fullscreen .solution-editor {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
}

.solution-fullscreen .solution-editor .ql-toolbar {
    flex: 0 0 auto;
}

.solution-fullscreen .solution-editor .ql-container {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto;
}

.notes-editor {
    background-color: #fff;
    min-height: 650px;
}

.notes-editor.ql-container {
    font-size: 11pt;
}

.notes-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1900000;
    background-color: #fff;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notes-fullscreen .notes-editor-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
}

.notes-fullscreen .notes-editor-wrap .ql-toolbar {
    flex: 0 0 auto;
}

.notes-fullscreen .notes-editor {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto;
}

/* Kanban board for the Dashboard. Horizontally scrollable, fixed-width
   columns. Cards are click-to-open with a separate More dropdown that
   doesn't bubble through to the card. */
.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 12px 4px;
    align-items: flex-start;
}

.kanban-column {
    flex: 0 0 280px;
    background-color: #f4f5f7;
    border-radius: 8px;
    padding: 10px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 8px 4px;
    font-weight: 600;
    color: #00325e;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 8px;
}

.kanban-column-count {
    background-color: #e3e3e3;
    color: #424242;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
}

.kanban-column-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.kanban-card {
    background-color: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 8px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.kanban-card:hover {
    box-shadow: 0 2px 8px rgba(0, 50, 94, 0.12);
    border-color: #00325e;
}

.kanban-card-content {
    padding: 10px 12px 6px 12px;
    cursor: pointer;
}

.kanban-card-title {
    font-weight: 600;
    color: #212121;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

.kanban-card-desc {
    color: #676767;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9b9b9b;
}

.kanban-card-meta .badge {
    font-size: 10px;
    font-weight: 600;
}

.kanban-card-actions {
    padding: 4px 8px 8px 8px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f4f5f7;
}

.kanban-card-actions .btn {
    line-height: 1;
}

.kanban-empty {
    color: #9b9b9b;
    font-size: 12px;
    text-align: center;
    padding: 18px 8px;
}

/* Shared "More actions" dropdown used in Kendo grid row action columns
   (Tickets, Dashboard, etc). Gives explicit colors so items don't inherit
   white from the parent btn-primary cascade. Pair with `dropright` on the
   .btn-group so the menu pops to the right of the trigger. */
.row-action-menu {
    min-width: 210px;
}
.row-action-menu .dropdown-item {
    color: #00325e;
    font-size: 14px;
    padding: 6px 14px;
}
.row-action-menu .dropdown-item:hover,
.row-action-menu .dropdown-item:focus {
    color: #fff;
    background-color: #00325e;
}
.row-action-menu .dropdown-item:hover i,
.row-action-menu .dropdown-item:focus i {
    color: #fff !important;
}
.row-action-menu .dropdown-item.disabled {
    color: #9b9b9b;
    pointer-events: none;
}


/*Cropper and Image Tools*/
#ToolBox {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.9);
    z-index: 4000;
    display: none;
}

.croppercontainer {
    width: 95vh;
    height: 85vh;
    z-index: 4001;
    position: fixed;
    left: 30vw;
    top: 5px;
}

.cropperimage2 {
    width: 500px;
    height: 800px;
    z-index: 4002;
    position: relative;
}

.btn.disabled, .btn:disabled {
    opacity: .8;
}
.btn-yellow{
    color:yellow;
}

.text-yellow {
    color: yellow;
}
.text-lime {
    color: lime;
}
.btn-lime {
    background-color: limegreen;
    color: #fff;
    font-weight:600;
    border-color: #FFF;
}
.btn-lime:hover {
    background-color: limegreen;
    color: #fff;
    font-weight: 600;
    border-color: yellow;
}
.border-danger {
    border-color: #F00 !important;
}

/* Task / ticket tags - shared across Dashboard, Tasks, Projects, Tickets */
.task-tag {
    display: inline-flex;
    align-items: center;
    background-color: #00325e;
    color: #fff;
    border-radius: 40px;
    padding: 2px 10px;
    margin: 2px 4px 2px 0;
    font-size: 9pt;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

    .task-tag.readonly {
        cursor: default;
    }

    .task-tag .task-tag-x {
        margin-left: 6px;
        opacity: 0.7;
    }

    .task-tag:hover .task-tag-x {
        opacity: 1;
    }

.task-tag-input-wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.task-tag-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    cursor: pointer;
    margin-right: 4px;
    padding: 0;
    flex-shrink: 0;
}

    .task-tag-color-swatch.selected {
        box-shadow: 0 0 0 2px #00325e;
    }

.task-tag-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}

