@font-face {
    font-family: "Lufga Extra Bold";
    src: url("lufgaextrabold-webfont.woff2") format("woff");
}

@font-face {
    font-family: "Lufga Medium";
    src: url("lufgamedium-webfont.woff2") format("woff");
}

@font-face {
    font-family: "Lufga Regular";
    src: url("lufgaregular-webfont.woff2") format("woff");
}


:root {
    --eplan-color-primary: #00387F;
    --eplan-color-secondary: #54595F;
    --eplan-color-text: #000000;
    --eplan-color-accent: #33838B;
    --eplan-color-teal: #74E4BF;
    --eplan-color-2be1a1: #2be1a1;
    --eplan-color-white: #FFFFFF;
    --eplan-color-lightgray: #F3F5F8;
    --eplan-color-668ea2: #668ea2;
    --eplan-color-0e1726: #0E1726;
    --eplan-typ-primary-font-size: 16px;
    --eplan-typ-primary-font-weight: normal;
    --eplan-typ-primary-line-height: 26px;
    --eplan-typ-secondary-font-weight: normal;
    --eplan-typ-text-font-size: 16px;
    --eplan-typ-text-font-weight: normal;
    --eplan-typ-text-line-height: 26px;
    --eplan-typ-accent-font-size: 16px;
    --eplan-typ-accent-font-weight: normal;
    --eplan-typ-accent-line-height: 26px;
    --eplan-typ-9397af3-font-size: 50px;
    --eplan-typ-9397af3-font-weight: normal;
    --eplan-typ-9397af3-line-height: 58px;
    --eplan-typ-ec1f491-font-size: 24px;
    --eplan-typ-ec1f491-line-height: 30px;
    --eplan-typ-cbe830d-font-size: 20px;
    --eplan-typ-cbe830d-line-height: 28px;
    --eplan-typ-051ab98-font-size: 18px;
    --eplan-typ-051ab98-line-height: 24px;

    --bs-modal-width: 95% !important;
}

* {
    font-family: "Lufga Regular";
}

html, body {
    font-family: "Lufga Regular" !important;
    font-size: 20px;
    line-height: 26px;
    color: #000000;
}

table { 
    border: 1px solid rgb(222, 226, 230);
    width: 100%;
    color: #cdd1e6;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 6px 0;
}


p {
    font-family: "Lufga Regular" !important;
    font-size: 1rem !important;
    color: #000000 !important;
}

a {
    font-family: "Lufga Regular" !important;
    color: var(--eplan-color-accent);
    font-weight: bold;
    font-size: inherit;
}

label {
    padding: 0 !important;
}

button{
    font-family: "Lufga Regular" !important;
    font-weight: bold;
}

h1, .h1{
    font-family: "Lufga Extra Bold" !important;
    color: var(--eplan-color-primary) !important;
    font-size: 34px !important;
}

h2, h2 > *, .h2 {
    font-family: "Lufga Medium" !important;
    color: var(--eplan-color-primary) !important;
    font-size: 34px !important;
}

h3, h3 > *, .h3 {
    font-family: "Lufga Medium" !important;
    color: var(--eplan-color-accent) !important;
    font-size: 24px !important;
}

h4, h5, h6, .h4, .h5, .h6 {
    font-family: "Lufga Medium" !important;
}

input,select,textarea{
    border-color: rgba(75, 85, 99, 0.2);
    background: rgb(255, 255, 255);
    color: rgb(75, 85, 99);
    font-size: 0.95rem;
    line-height: 1.2em;
    min-height: 2.375rem;
}

select:hover {
    cursor: pointer;
}

button{
    background: var(--eplan-color-teal);
    color: rgb(17, 24, 39);
    font-size: 1rem;
    line-height: 1.4em;
    font-weight: 500;
}

textarea {
    width: 100% !important;
    min-height: 8rem !important;
    height: 8rem !important;
}



/*/////////////////////////////////////////
        Static Power Pages Elements 
//////////////////////////////////////////*/
.skip-to-content a {
    padding: 8px 20px !important;
}

.static-top.navbar-dark{
    box-shadow:  none !important;
    -webkit-box-shadow: none !important;
    justify-content: left;
    padding: 0;
    background: white !important;
    padding: 1rem;
}

.navbar-dark .navbar-nav > li > a:focus, .navbar-dark .navbar-nav > li.dropdown > a:focus {
    background-color: transparent;
    color: var(--eplan-color-primary) !important;
    border: none !important;
    text-decoration: auto;
}

.static-top.navbar .menu-bar > .navbar-nav > li > a:hover {
    text-decoration: Underline;
    text-decoration: none !important;
    background: none;
    color: var(--eplan-color-primary) !important;
}

.static-top.navbar .menu-bar > .navbar-nav > .divider-vertical {
    border: none;
    margin-left: 1rem;
}

.static-top.navbar .menu-bar > .navbar-nav > li > a {
    font-size: 1rem;
    font-weight: bold;
}

.dropdown-menu > li.dropdown-divider {
    margin: 0;
}

a.dropdown-item:focus, a.dropdown-item:hover {
    color: white !important;
}

.navbar-dark .navbar-nav a.show, .navbar-dark .navbar-nav a.dropdown-toggle.show {
    background-color: lightcyan;
}

/*
.navbar-dark .navbar-nav a.show:focus, .navbar-dark .navbar-nav a.dropdown-toggle.show:focus {
    color: #000000;
    background-color: lightcyan;
    text-decoration: Underline;
}
*/
.navbar-dark .navbar-nav .show.dropdown-menu {
    background-color: white;
    text-decoration: none;
    border: none;
    border-radius: 0;
    margin-left: 1rem;
    margin-right: 1rem;
}

.navbar-dark .navbar-nav .show.dropdown-menu > li > a:hover {
    background-color: transparent;
    color: var(--eplan-color-primary);
}

footer .footer-bottom{
    background-color: transparent;
    background-image: linear-gradient(236deg, #74E4BF, 9%, #0A75FC 48%);
    display: block !important;
}

footer .footer-bottom > div > div > div > div > div > p {
    color: white !important;
}

input#ContentContainer_MainContent_MainContent_ContentBottom_SubmitButton {
    background: var(--eplan-color-primary);
    color: white;
    border: 1px solid var(--eplan-color-primary);
    font-size: 1rem;
    font-family: inherit;
    border-radius: 4px;
}


table.section {
    border: none;
}

#mainContent{
    background-color: var(--eplan-color-white);
}

.large-card{
    /*background-color: var(--eplan-color-white);
    box-shadow: 2px 2px 3px 0px rgba(80, 77, 77, 0.5);
    padding: 3rem;
    border-radius: 4rem;
    line-height: 1.5;*/
    color: #0E172B;;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #F0F2F3;
    border-radius: 12px 12px 12px 12px;
    padding: 20px;
    background-color: white;
}

.large-card-invert{
    /*background-color: var(--eplan-color-white);
    box-shadow: 2px 2px 3px 0px rgba(80, 77, 77, 0.5);
    padding: 3rem;
    border-radius: 4rem;
    line-height: 1.5;*/
    color: white;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #F0F2F3;
    border-radius: 12px 12px 12px 12px;
    padding: 20px;
    background-color: #0E172B;
}

.bg-primary {
    background-color: var(--eplan-color-primary) !important;
}

.bg-lightgray{
    background-color: var(--eplan-color-lightgray) !important;
}

.hero-element{
    background-color: transparent; 
    background-image: linear-gradient(138deg, #74E4BF, 39%, #0A75FC 100%);
    rotate: 180deg; 
    padding: 0 !important
}

.hero-row {
    width: 100%;
    overflow: hidden;
    padding-top: 4rem !important;
    margin-bottom: 1rem;
    background-color: transparent; 
    background-image: linear-gradient(318deg, #74E4BF, 39%, #0A75FC 100%);
}

.hero-row * h1, .hero-row * p {
    color: white !important;
}



/*///////////////////////////////////////////

            Bootstrap 5 Classes

///////////////////////////////////////////*/

.text-primary {
    color: var(--eplan-color-primary) !important;
}

.btn {
    white-space: normal;
    font-family: inherit !important;
}

.btn:hover {
    background-color: transparent;
    color: var(--eplan-color-accent);
    border-color: var(--eplan-color-accent);
}

.btn-primary {
    background-color: var(--eplan-color-primary);
    border: 1px solid transparent;
    color: var(--eplan-color-white);
    font-size: 1rem;
    border-radius: 12px;
}


.btn-outline-primary{
    background-color: var(--eplan-color-white);
    border: 1px solid var(--eplan-color-primary);
    color: var(--eplan-color-primary);
    font-size: 1rem;
    border-radius: 12px;
}
/*
.button2:focus, .button2.focus, .button2:focus-visible, .btn-secondary:focus,
.btn-secondary.focus, .btn-secondary:focus-visible, .btn-default:focus,
.btn-default.focus, .btn-default:focus-visible, .btn-primary:focus, 
.btn-primary.focus, .btn-primary:hover {
    color: var(--eplan-color-white) !important;
    background-color: var(--eplan-color-accent) !important;
    border-color: var(--eplan-color-accent) !important;
}
*/
.btn-secondary{
    background-color: var(--eplan-color-0e1726);
    border: 1px solid transparent;
    color: var(--eplan-color-white);
    font-size: 1rem;
    border-radius: 12px;
}
/*
.button2:hover, .btn-secondary:hover, .btn-default:hover {
    color: var(--eplan-color-primary) !important;
    background-color: var(--eplan-color-white) !important;
    border-color: var(--eplan-color-primary) !important;
}
*/
.btn-outline-secondary{
    background-color: var(--eplan-color-white);
    border: 1px solid var(--eplan-color-0e1726);
    color: var(--eplan-color-0e1726);
    font-size: 1rem;
    border-radius: 12px;
}

.btn-check:checked+.btn, .btn.active, .btn.show, 
.btn:first-child:active, :not(.btn-check)+.btn:active {
    color: var(--eplan-color-white);
    background-color: var(--eplan-color-primary);
    border-color: var(--eplan-color-primary);
}

.btn-group>.btn {
    font-weight: bold;
}

button .icon-left {
  margin-right: .5rem;
}

button .icon-right {
  margin-left: .5rem;
}

.badge {
    border-radius: 2rem;
    font-weight: 500;
}

.nav-item > a {
    color: black !important;
}

[aria-current="page"] {
    color: var(--eplan-color-primary) !important;
}


.large-card > svg {
    margin-bottom: 1rem;
    color: var(--eplan-color-primary)  !important;
}

.form-control { 
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    padding-left: .75rem !important;
}

div.col {
    background-color: white;
}


.crmEntityFormView .form-control.readonly, 
.crmEntityFormView .form-control[readonly][disabled], 
.form-readonly .form-control {
    border-color: transparent !important;
}


tr[data-entity][data-id]:hover {
    background-color: var(--eplan-color-lightgray);
    cursor: pointer;
}

.list-search {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.list-search:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
  outline: none;
}

.list-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #0078d4;
  color: white;
  border: none;
  width: 150px;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.list-sort:hover {
  background-color: #005fa3;
}

.list-sort:active {
  transform: scale(0.97);
}

i.sort:hover {
    cursor: pointer;
    color: lightgray !important;
}

tr[data-entity] td {
    vertical-align: middle;
}


.button-row {
    display:flex;
    flex-direction:column;
    gap:16px;
    max-width:900px;
}

@media(min-width:760px) {
    .button-row {
        flex-direction:row;
    }
}

.big-btn {
    flex:1;
    display:flex;
    align-items:center;
    background:#fff;
    border-radius: 12px;
    border:2px solid transparent;
    padding: 1rem;
    cursor:pointer;
    text-align:left;
    gap:14px;
    min-height:90px;              /* compact but still “large button” */
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
    transition:transform 0.12s ease, box-shadow 0.12s ease;
}

.big-btn:hover {
    transform:translateY(-3px);
    box-shadow:0 5px 14px rgba(0,0,0,0.12);
}

.info {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    flex:1;
}

.title {
    font-size:1rem;
    font-weight:600;
}

.subtitle {
    font-size:.75rem;
    color:var(--muted);
}



/* ---------------------------------------
  CASE STATUS BADGE
------------------------------------------ */
/*
In Progress	1
On Hold	2
Waiting for Details	3
Researching	4
Problem Solved	5
Cancelled	6
Information Provided	1000
Merged	2000
*/

[data-badge-casestatus="1"] {
    background-color: var(--eplan-color-primary);
    color: white;
}

[data-badge-casestatus="1"]::before {
    content: "\F505";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: white;
    margin-right: 8px;
}

[data-badge-casestatus="2"]{
    background-color: #ffc107;
    color: black;
}

[data-badge-casestatus="2"]::before {
    content: "\F4C2";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: black;
    margin-right: 8px;
}


[data-badge-casestatus="3"] {
    background-color: #0dcaf0;
    color: black;
}

[data-badge-casestatus="3"]::before {
    content: "\F505";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: black;
    margin-right: 8px;
}

[data-badge-casestatus="4"] {
    background-color: #6c757d;
    color: black;
}

[data-badge-casestatus="4"]::before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: black;
    margin-right: 8px;
}

[data-badge-casestatus="5"] {
    background-color: #198754;
    color: white;
}

[data-badge-casestatus="5"]::before {
    content: "\F26B";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: white;
    margin-right: 8px;
}

[data-badge-casestatus="6"] {
    background-color: #dc3545;
    color: white;
}

[data-badge-casestatus="6"]::before {
    content: "\F623";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: white;
    margin-right: 8px;
}

[data-badge-casestatus="7"] {
    background-color: #f8f9fa;
    color: black;
}

[data-badge-casestatus="7"]::before {
    content: "\F431";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: black;
    margin-right: 8px;
}


[data-badge-casestatus="8"] {
    background-color: #212529;
    color: white;
}

[data-badge-casestatus="8"]::before {
    content: "\F470";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: 212529;
    margin-right: 8px;
}


/* ---------------------------------------
  PRIORITY CODE BADGE
------------------------------------------ */
/*
High	1
Normal	2
Low	3
*/
[data-badge-priority="1"] {
    background-color: #dc3545;
    color: white;
}
[data-badge-priority="1"]::before {
    content: "\F148";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: white;
    margin-right: 8px;
}

[data-badge-priority="2"] {
    background-color: #ffc107;
    color: black;
}
[data-badge-priority="2"]::before {
    content: "\F127";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: black;
    margin-right: 8px;
}

[data-badge-priority="3"] {
    background-color: green;
    color: white;
}

[data-badge-priority="3"]::before {
    content: "\F128";
    font-family: "bootstrap-icons";
    font-size: .75rem;
    color: white;
    margin-right: 8px;
}

/* ---------------------------------------
  FORM ELEMENTS
------------------------------------------ */

#emailSidePanel{
    overflow-y: auto;
    z-index: 20000;
}

.file-dropzone {
  background-color: #f8f9fa;
  border: 2px dashed #6c757d;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.file-dropzone:hover {
  background-color: #e9ecef;
  border-color: #495057;
}

.file-dropzone.dragover {
  background-color: #e0f7fa;
  border-color: #0dcaf0;
}

[data-field="fileList"]{
    justify-self: center;
    background: white;
    padding: .5rem;
    border-radius: 2rem;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: auto;
}

.modal {
    max-width: 1800px;
    place-self: anchor-center;
}

.form-modal > .modal-dialog {
    max-width: 95%;
} 

.form-modal * .modal-body {
    display: flex;
    height: 75vh;
    overflow: auto;
}

div#chatHistory{
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-body {
  background: #fafafa;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.message {
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rating {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-family: system-ui, Arial, sans-serif;
}

.stars {
    display: inline-flex;
    gap: 4px;
}

.star-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    display: inline-grid;
    place-items: center;
}

.star-btn:hover,
.star-btn:focus {
    outline: none;
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
}

.star-btn.filled::before {
    content: "★";
    color: #f5a623;
}

.star-btn::before {
    content: "☆";
    color: #c7c7c7;
}

input::placeholder {
    color: gray !important;
}

.required-label::after {
    content: " *";
    color: red;
}

/* ---------------------------------------
  RESPONSIVE HELPERS
------------------------------------------ */
div#at-global-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200000;
    text-align: center;
    gap: 1rem;
    font-size: 1.25rem;
    justify-content: center;
    padding: 2rem !important;
    border-radius: 0;
}

#at-global-loader{
  align-items: center;
  flex-direction: column !important;
  gap: 1rem;
  background-color: rgba(0,0,0, .7);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 800000;
}

/* ---------------------------------------
  UTILITIES
------------------------------------------ */
.tiny {
    font-size: .75rem;
}

.hidden {
    display: none !important;
}

.bi::before, [class*=" bi-"]::before, [class^=bi-]::before{
    line-height: inherit !important;
}


.show-on-loaded {
  display: none;
}

.show-on-loaded.loaded {
  display: inherit  !important;
}

.hide-on-loaded {
  display: inherit;
}

.hide-on-loaded.loaded {
  display: none !important;
}
