/* ======================================================================
   Design Tokens
   ====================================================================== */
:root {
    --c-text: #111827;
    --c-muted: #6b7280;
    --c-primary: #2055BB;
    --c-primary-strong: #1a4799;
    --c-primary-light: #e6f0ff;
    --c-accent: #ff6b35;
    --c-accent-light: #fff2ed;
    --c-success: #10b981;
    --c-success-light: #d1fae5;
    --c-warning: #f59e0b;
    --c-warning-light: #fef3c7;
    --c-error: #ef4444;
    --c-error-light: #fee2e2;
    --c-border: #e5e7eb;
    --c-border-light: #f3f4f6;
    --c-bg-soft: #f8fafc;
    --c-bg: #ffffff;
    --c-bg-dark: #f1f5f9;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 8px 16px rgba(0, 0, 0, 0.1);
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --transition: all 0.2s ease;
}
/*
.crmEntityFormView .input-group{
      border: 1px solid #d8e7f5;
  border-radius: 0;
  -webkit-appearance: none;
  box-shadow: inset 0px 2px 1px 0px #F0F7FE; 
  background-color: #fafdff;
}
.crmEntityFormView .input-group .btn, .crmEntityFormView .input-group input[type='text']{
    border:0;
}
.crmEntityFormView .input-group .btn-default, .crmEntityFormView .input-group .btn-default:hover, .crmEntityFormView .input-group .btn-default:active, .crmEntityFormView .input-group .btn-default:focus{
    background-color: transparent !important;
    box-shadow: none;
}*/

/* ======================================================================
   Site Header Bar 
   ====================================================================== */
.header-bar {
   /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);*/
    /*backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;*/
    padding: 12px 16px;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.header-wrapper {
   /* max-width: 1100px;
    margin: 0 auto;
    background-color: transparent;
    max-width: 1100px;*/
    background: #f0f2f5  !important;
    z-index: 1001;
}

.header-container {
    /*max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;*/
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo styling */
.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 320px;
    display: block;
    object-fit: contain;
    filter: brightness(1.02) contrast(1.05);
    transition: var(--transition);
}

.brand-logo-img:hover {
    filter: brightness(1.05) contrast(1.08);
    transform: scale(1.01);
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .brand-logo-img {
        height: 40px;
        max-width: 240px;
    }

    .header-bar {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        height: 36px;
        max-width: 180px;
    }
}

/* Ensure proper alignment in header */
.brand-logo {
    min-height: 48px;
    align-items: center;
    display: flex;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-soft);
}

.logo-text {
    color: var(--c-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtext {
    color: var(--c-primary);
    font-size: 10px;
    font-weight: 500;
    margin-top: -1px;
    max-width: 320px;
    opacity: 0.9;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-button {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.action-button:hover {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: var(--c-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--c-error), #dc2626);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: var(--shadow-soft);
    animation: pulse 2s infinite;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(32, 85, 187, 0.2);
    box-shadow: var(--shadow-medium);
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 8px rgba(32, 85, 187, 0.3);
    border-color: rgba(32, 85, 187, 0.4);
}

/* ======================================================================
  Search & Profile Menu
   ====================================================================== */
.search-container {
    position: relative;
    display: inline-block;
}

.search-toggle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.search-toggle:hover {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: var(--c-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.search-input {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 32px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 0 10px;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    background: #fff;
    z-index: 100;
    box-shadow: var(--shadow-medium);
}

.search-input.expanded {
    width: 220px;
    opacity: 1;
    pointer-events: all;
    border-color: var(--c-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(32, 85, 187, 0.1);
}

/* Profile Menu */
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-menu-item {
    padding: 10px 16px;
    color: var(--c-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--c-border-light);
    position: relative;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: linear-gradient(135deg, var(--c-primary-light), rgba(32, 85, 187, 0.06));
    color: var(--c-primary-strong);
    text-decoration: none;
    transform: translateX(3px);
}

.profile-menu-item i {
    width: 16px;
    margin-right: 10px;
    font-size: 12px;
    color: var(--c-primary);
}

/* ======================================================================
   Page Header - Made More Compact
   ====================================================================== */
.page-header {
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px !important;
    margin: 0 0 12px;
    backdrop-filter: blur(2px);
}

.page-header .page-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.2;
}

.page-header .page-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--c-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* Remove extra spacing around page header sections */
.row.sectionBlockLayout {
    margin: 0 !important;
    padding: 0 !important;
}

.sectionBlockLayout .container {
    padding: 0 !important;
    margin: 0 !important;
}

.columnBlockLayout.page-layout {
    margin: 0 !important;
    padding: 0 !important;
}

.page-header--legacy {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--c-border);
    padding: 10px 14px !important;
    margin: 0 0 14px;
}

/* Normalize default section spacing when header present */
.columnBlockLayout.page-layout,
.columnBlockLayout.pp-has-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.columnBlockLayout>.page-header:first-child {
    margin-top: 0;
}

/*
==================================
Left Side bar Navigation
==================================
*/
.sidebar-nav{
.nav-menu {
        padding: 0;
        margin: 0;
 
        .nav-item {
            list-style: none;
            margin: 0 12px;
            padding: 0;
            a {
                font-size: 13px;
                color: #2A3547;
                font-size: 13px;
                font-family: "Open Sans" !important;
                padding: 9px 14px 9px 34px;
                position: relative;
                margin-bottom: 12px;
                text-decoration: none ! IMPORTANT;
                &::before{
                    content: "";
                    position: absolute;
                    top: 14px;
                    left: 18px;
                    width: 6px;
                    height: 6px;
                   background: #C7CBD4;
                    border-radius: 50%;
                    transform: translateX(-50%);
                }
                &.active{
                background-color: #E6EDF7;
                border-radius: 6px;
                border: 1px solid #CFDBF1;
                   &::before{
                    background: #2456BC;
                   }
               
                }
       
               
               
            }
        }
    }
}

/*
==================================
CRM Entity Form View Styling
==================================
*/
.crmEntityFormView .section-title {	
	color: #2A3547 !important;
	font-family: "Open Sans" !important;
	font-size: 16px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: normal;
}

.crmEntityFormView, .entitylist {
    border: none !important;
}

.crmEntityFormView .form-control.readonly,
.crmEntityFormView .form-control[readonly][disabled],
.form-readonly .form-control {
	border: 1px solid #ced4da;
	background-color: #EBEBEB !important;
}

h3, .h3, .page_section h3, .color-inverse h3, .sidebar-home h3 {
	color: #2A3547 !important;
	font-family: "Open Sans" !important;
	font-size: 16px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: normal;
}

.crmEntityFormView .tab-title {
	background-color: #EBEBEB ;
    border-radius: 5px;
	/*width: 592px;*/
	height: 40px;
	flex-shrink: 0;
    padding: 10px !important;
}
h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 21px !important;
    margin-bottom: 21px !important;
}
h2, .h2, .section-landing .row > div .section-landing-sub-heading, .page_section h2, .color-inverse h2, h2 p {
    font-family: "Open Sans" !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #000000 !important; 
}
.crmEntityFormView td.cell{
    padding-bottom: 24px;
}
.crmEntityFormView td.cell:first-child{
    padding-left: 0;
}
.crmEntityFormView td.cell[colspan="1"]{
    padding-right:0;
}

/* Date/time and money field width helpers (Power Pages bootstrap controls) */
.input-append.input-group.datetimepicker {
    width: 30% !important;
    display: flex !important;
}

.input-append.input-group.datetimepicker input {
    padding: 8px 12px !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    border-right: none !important;
    border: 1px solid var(--c-border) !important;
    font-size: 13px !important;
}
.input-append.input-group.datetimepicker .input-group-addon {
    border: 1px solid var(--c-border) !important;
    border-left: none !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    background: #f8fafc !important;
    /*padding: 8px 10px !important;*/
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--c-muted) !important;
    transition: var(--transition) !important;
}
.input-append.input-group.datetimepicker .input-group-addon:hover {
    background: #f1f5f9 !important;
    color: var(--c-primary) !important;
}

/*.crmEntityFormView .section-title.show-bar {
	margin: 0 0 15px;
}*/

.form-control {
	font-size: 13px;
	font-weight: 400;
}
.form-select {
	font-size: 13px;
	font-weight: 400;
}

/*.crmEntityFormView fieldset {
	margin-bottom: 2px;
}

.crmEntityFormView td.cell {
	padding-bottom: 24px;
}

.crmEntityFormView td.cell:first-child {
	padding-left: 0;
}

.crmEntityFormView td.cell[colspan="1"] {
	padding-right: 0;
}*/

.crmEntityFormView .cell label {
	font-size: 13px;
	/*color: rgba(0,0,0,.87);*/
	font-weight: 600;
	color: #2A3547 !important;
}

/*.crmEntityFormView .cell.boolean-radio-cell label {
	display: inline-block;
}

.crmEntityFormView .cell.boolean-radio-cell .boolean-radio label {
	font-weight: normal;
}
.crmEntityFormView .cell input[type=text],
.crmEntityFormView .cell textarea{
    height: 40px;
    border: 1px solid #d4d9dd;
    box-shadow: none;
}
.crmEntityFormView .cell textarea {
	height: 40px;
	resize: vertical;
}
/*
.crmEntityFormView .cell.boolean-radio-cell input[type="radio"] {
	vertical-align: middle;
	width: 15px;
	height: 15px;
}

.crmEntityFormView .cell .picklist input[type=radio] {
	width: 18px;
	height: 18px;
}*/

.crmEntityFormView .cell .picklist label {
	margin: 1px 12px 0 0 !important;
}
/* .crmEntityFormView .actions .btn:first-child{
    font-size: 15px;
    background-color: #0071bc;
    border: 1px solid #0071bc;
    padding: 3px 25px;
    line-height: 30px;
	float: left;
    font-family: 'Andes', andes, "Segoe UI",Arial;
} */
.crmEntityFormView .tooltip .tooltip-inner {
	width: 400px;
	max-width: 400px;
	opacity: 0.5;
}


body {
	/*font-family: "Open Sans",sans-serif;
	font-size: 14px;
	color: #333;
	background-color: #ebeef4;
	margin: 0;
	color: #2A3547;*/
	font-family: "Open Sans";
	font-size: 13px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
}

a {
	/*color: #0071bc;*/
	text-decoration: none !important;
}

.add-email-btn{
        position:absolute;
        right:10px;
        top:50%;
        transform: translateY(-50%);
        font-size:0.9rem;
        padding:2px 8px;
    }

    .form-group.email-with-button{
        position:relative;
    }
     .custom-label-button {
        margin-left: 50px; /* Add some spacing between label and button */
        padding: 5px 10px;
       /* color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;*/
    }
    .input-with-icon-wrapper {
    position: relative; /* Establish positioning context for the absolute icon */
    margin-top: 10px; /* Add some spacing above the new row */
    display: inline-block; /* Or display: flex; if you need more layout control */
    width: 100%; /* Ensure the wrapper takes full width */
}

.dynamic-text-field {
    width: 100%; /* Make the input take full width of its container */
    padding-right: 30px; /* Add padding to the right for the icon */
    box-sizing: border-box; /* Include padding in the element's total width */
}

.delete-icon-inside {
    position: absolute; /* Position the icon relative to the wrapper */
    right: 10px; /* Adjust as needed to position the icon from the right edge */
    top: 50%; /* Vertically center the icon */
    transform: translateY(-50%); /* Fine-tune vertical centering */
    cursor: pointer; /* Indicate it's clickable */
    color: #dc3545; /* Optional: Set a color for the icon (red for delete) */
    font-size: 16px; /* Optional: Adjust icon size */
}

/* Additional override for Power Pages button specificity */
/*input[type="submit"].btn-primary,
button[type="submit"].btn-primary {
    background: #2055BB !important;
    border-color: #2055BB !important;
    color: #fff !important;
}

input[type="submit"].btn-primary:hover,
button[type="submit"].btn-primary:hover {
    background: #1a4799 !important;
    border-color: #1a4799 !important;
    color: #fff !important;
}*/
.tab {
    .msos-container:not(.msos-disabled) {
        border-radius: 6px !important;
        box-shadow: none !important;
        transition: none !important;
    }
 
    .msos-caret-container,
    .msos-action-buttons:hover {
        margin: 2px 2px 1px 1px !important;
    }
}

.msos-input-container > input {
    font-size: 13px !important;
    font-weight: 400 !important;
}

.btn-primary {
    background: #2055BB !important;
    border: 1px solid #C6CCD4 !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    min-width: 120px;
}
.btn-secondary {
    background: #EAEEF9 !important;
    border: 1px solid #C6CCD4 !important;
    color: #3E6CC6 !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}