/* div.onecrm classes for ListView, DetailView, EditView and look-alike. */
div.onecrm .detailview, div.onecrm .detailview div { box-sizing:border-box; width: 100%;}
/* max height is 4 lines of text at 1.5em height and .5em padding */
div.onecrm .detailview .cell {
    display:inline-block; max-height:14em; overflow-x:hidden; overflow-y:auto; margin-bottom:0.35em;
}

/* label / value layout within the cell */
div.onecrm .detailview {
    background:#f7fbff;
    box-sizing:border-box;
    border:1px solid #d4e0ea;
    padding:0.5em;
}
div.onecrm .detailview .cell {
    padding:0.5em;
    outline:1px solid RGBA(224,224,224,0);
    vertical-align:top;
    /* outline:1px solid #8F8;  /**/
    box-sizing:border-box !important;
    line-height:1.5em;
    transition:all 0.3s;
}
div.onecrm .detailview .cell:hover {
    /*outline:1px solid RGBA(224,224,224,1.0);*/
}
div.onecrm .detailview .cell>label {
    display:inline-block; width:100%; color:#697687;
    font-weight:bold; text-align:left;
} /* label above */
div.onecrm .detailview .cell span { display:inline-block; width: 100%; } /* the value */
div.onecrm .detailview.left .cell label { position:absolute; } /* label left */
div.onecrm .detailview.left .cell span { padding-left:6em; } /* room for the label, then the value */

div.onecrm .detailview .cell.required>label:after {
	content: ' *';
	color: #F00;
	font-weight: bold;
}


/* number of columns/cells in a list view row: */
div.onecrm table.listview {
	border-spacing:0; 
	background:#FFF; 
	max-width:100%; 
	table-layout:auto;
	margin-bottom: 2em;
}
div.onecrm table.listview td, div.onecrm table.listview th {
    border:0; margin:0; padding:0.25em; text-align:left;
    max-height:6em; overflow:hidden;
    max-width:25%;
}
div.onecrm table.listview tbody tr {
    transition:all 0.3s; /* background rollover */
}
div.onecrm table.listview thead tr {
    font-size:0.8em;
    height:3em;
    color: rgb(71, 70, 69);
    background-image: linear-gradient(rgb(238, 246, 253) 40%, rgb(227, 239, 252) 100%);
}
div.onecrm table.listview thead tr th:not(:last-child) div {
    border-right:1px solid rgb(212, 224, 234);
    padding-right:0.5em;
}
div.onecrm table.listview thead tr th {
    border-top: 1px solid #CCC; border-bottom:1px solid #CCC; vertical-align:middle;
}
div.onecrm table.listview thead tr th:first-child,div.onecrm table.listview tbody tr td:first-child {
    border-left:1px solid #CCC; padding-left:0.5em;
}
div.onecrm table.listview thead tr th:last-child,div.onecrm table.listview tbody tr td:last-child {
    border-right:1px solid #CCC; padding-right:0.5em;
}
div.onecrm table.listview tbody tr:last-child td {
    border-bottom:1px solid #CCC;
}
div.onecrm table.listview tbody tr:nth-child(2n){ background:#f3f7fb;}
div.onecrm table.listview tbody tr:hover { background:#DDD;}

/* datatypes */

/* numeric types: */
div.onecrm .listview span.float, div.onecrm .listview span.number, div.onecrm .listview span.currency,
div.onecrm .listview span.percent, div.onecrm .listview span.bool {
    display:inline-block; width:100%; text-align:left;
}
div.onecrm .detailview span.float, div.onecrm .detailview span.number, div.onecrm .detailview span.currency,
div.onecrm .detailview span.percent, div.onecrm .detailview span.phone, div.onecrm .detailview span.bool {
    text-align:left;
}

div.onecrm table.listview thead tr th.col-case_number,
div.onecrm table.listview thead tr th.col-bug_number {
	width: 5%;
}

div.onecrm table.listview thead tr th.col-name {
    width: 50%;
}

div.onecrm table.listview.contact thead tr th.col-name {
    width: 30%;
}

div.onecrm table.listview.note thead tr th.col-name {
    width: 20%;
}

div.onecrm table.listview thead tr th.col-status {
    width: 15%;
}

div.onecrm table.listview thead tr th.col-priority {
    width: 15%;
}

div.onecrm table.listview thead tr th.col-category {
    width: 10%;
}

div.onecrm table.listview thead tr th.col-type {
    width: 10%;
}

div.onecrm table.listview thead tr th.col-description-note {
    width: 60%;
}

div.onecrm table.listview thead tr th.col-filename-note {
    width: 20%;
}

div.onecrm table.listview tbody tr td.col-case_number span,
div.onecrm table.listview tbody tr td.col-bug_number span {
	padding-right: 5px;
}

div.onecrm table.listview tbody tr td.col-case_number,
div.onecrm table.listview tbody tr td.col-bug_number {
	max-width: 35px;
}

/* percentage / progress bar types: */
div.onecrm .detailview .progress, div.onecrm .listview .progress {position:relative; }
div.onecrm .detailview .progress>span, div.onecrm .listview .progress>span {
    position:absolute; z-index:1;display:block; width:100%; text-align:center;
    line-height:1.5em;
}
div.onecrm .listview .progress>span {
    margin-top:-0.140em; /* HACK: adjust for td vertical alignment */
}
div.onecrm .detailview .progress>div, div.onecrm .listlview .progress>div {
    padding:.125em .25em .125em 0; /* padding around the progress bar */
}
div.onecrm .detailview .progress>div>div, div.onecrm .listview .progress>div>div {
    background:white; border:1px solid #DDD; border-radius:4px; /* border of the bar */
}
div.onecrm .detailview .progress>div>div>div, div.onecrm .listview .progress>div>div>div {
    background:#DEF;height:1em; /* fill */
}

div.onecrm .detailview .progress>div>div>div { height:1.1em;}
div.onecrm .detailview * a,div.onecrm .listview * a {text-decoration:none; box-shadow:none; color:#118}
div.onecrm .listview td>*:not(:first-child) {font-size:0.85em;}

div.onecrm a.url-image img {border:0; margin:0; box-shadow:none;}
div.onecrm .detailview a.url-image img{ max-height:4.5em; max-width:90%;}
div.onecrm .listview a.url-image img{ max-height:1.5em; max-width:90%}

div.onecrm .badge, div.onecrm .badge-neutral {
    display:inline-block;
    line-height:1em; vertical-align:middle; text-align:center;
    padding:0.2em 0.35em 0.2em 0.35em;
    margin:0 2px 1px 1px;
    width:auto !important;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%,
    rgba(245,245,245,0.8) 100%);
    border:0; border-radius:4px;
    box-shadow:0 0 0.5px 1px #9b9998;
    color: #8a8987;
    font-size:0.9em;
    font-weight:700;
    text-transform: uppercase;
    text-shadow: rgba(180, 180, 180, 0.1) 0px 1px 0px;
    white-space: nowrap;
}
div.onecrm .badge.state-success{
    box-shadow:0 0 0.5px 1px rgb(102, 187, 102);
    color: rgb(85, 153, 85);
}
div.onecrm .badge.state-pending{
    box-shadow:0 0 0.5px 1px #8ad;
    color: #57a;
}
div.onecrm .badge.state-draft{
    box-shadow:0 0 0.5px 1px #c96;
    color: #966d36;
}
div.onecrm .badge.state-dead{
    background: linear-gradient(to bottom, rgba(205,202,200,0.5075) 0%,
    rgba(193,189,186,0.5075) 100%);
    box-shadow:0 0 0.5px 1px #abaaa9;
    color: #4f4e4d;
}
div.onecrm .badge.state-active{
    background: linear-gradient(to bottom, #7b98e2 0%, #68d 100%);
    box-shadow:0 0 0.5px 1px #3c68d4;
    color: #f6f6f6;
}
div.onecrm .badge.state-closed{
    background: linear-gradient(to bottom, rgba(157,154,151,0.5075) 0%,
    rgba(145,141,138,0.5075) 100%);
    box-shadow:0 0 0.5px 1px #9b9998;
    color: #fffefd;
}
div.onecrm .badge.state-deferred {
    box-shadow:0 0 0.5px 1px #c8b;
    color: #969;
}
div.onecrm .datetime {hyphens:none;}

/* DetailView / EditView columns: */

div.onecrm .detailview.one_column .cell { width:100%; }   /* 1 column list */
div.onecrm .detailview.two_column .cell { width:50%; }    /* 2 column flow */
div.onecrm .detailview.three_column .cell {width:33.33%;} /* 3 column flow */
div.onecrm .detailview.four_column .cell {width:25%; }    /* 4 column flow */
div.onecrm .detailview.five_column .cell {width:20%; }    /* 5 column flow */
div.onecrm .detailview.six_column .cell {width:16.66%; }  /* 6 column flow */


/* EditView inputs: */
div.onecrm .detailview .cell input:not([type=radio]):not([type=checkbox]), div.onecrm .detailview .cell textarea,
div.onecrm .detailview .cell button,div.onecrm .detailview .cell select,
div.onecrm .detailview .cell .enum.list {
    font-size:1em;
    box-sizing:border-box;
    padding:0.125em;
    width:100%;
    color:#444;
    background:#fff;
    border: 1px solid #DDD;
}

div.onecrm .enum.list {font-size:inherit;}
div.onecrm .enum.list ul {margin:0; padding:0; list-style:none;
    line-height:0;}
div.onecrm .enum.list ul:after{content:'';display:block; line-height:0px; clear:both;}
div.onecrm .enum.list ul li{
    position:relative; display:block; float:left;
    overflow:hidden; border:0; margin:0; padding:0; width:50%;}
div.onecrm .enum.list.cols1 ul li { width:100%;}
div.onecrm .enum.list.cols2 ul li { width:50%;}
div.onecrm .enum.list.cols3 ul li { width:33.33%;}
div.onecrm .enum.list ul li label { border-radius:6px; margin:0.15em;
    display:block; box-sizing:border-box; padding-left:0.5em; line-height:1.8em; }
div.onecrm .enum.list ul li label::first-line {line-height:1.5em;}
div.onecrm .enum.list ul li input:checked + label  {background:#DEF;box-shadow:0.1em 0.1em 0.2em 0px RGBA(0,0,0,0.3);}
div.onecrm .enum.list ul li input:checked + label:before  {content:'✔ ';}
div.onecrm .enum.list ul li label:hover {
    background:RGBA(0,0,0,0.06);
}
div.onecrm .enum.list ul li input { display:none;}

/* ListView Column collapse rules: add to theme Custom CSS ) */
/* DetailView Responsive Layout: */

@media screen and (max-width: 960px), screen and (max-device-width: 960px) {
    /* drop from 6 columns to 4, from 4 to 3, and from 3 to 2 */
    div.onecrm .detailview.three_column .cell {width:50%; }   /* 3 column flow -> 2 */
    div.onecrm .detailview.four_column .cell {width:33.33%; } /* 4 column flow -> 3 */
    div.onecrm .detailview.five_column .cell {width:25%; }    /* 5 column flow -> 4 */
    div.onecrm .detailview.six_column .cell {width:25%; }     /* 6 column flow -> 4 */
}
@media screen and (max-width: 640px), screen  and (max-device-width: 640px) {
    /* drop to half as many columns */
    div.onecrm .detailview.two_column .cell { width:100%; }   /* 2 column flow */
    div.onecrm .detailview.four_column .cell {width:50%; }    /* 4 column flow -> 2 */
    div.onecrm .detailview.five_column .cell {width:33.33%; } /* 5 column flow -> 3 */
    div.onecrm .detailview.six_column .cell {width:33.33%; }  /* 6 column flow -> 3 */
}
@media screen and (max-width: 480px), screen and (max-device-width: 480px) {
    div.onecrm .detailview { padding:0; }
    div.onecrm .detailview .cell { padding:0.25em; }
    /* drop to 2 columns */
    div.onecrm .detailview.five_column .cell {width:50%; }    /* 5 column flow -> 2 */
    div.onecrm .detailview.six_column .cell {width:50%; }     /* 6 column flow -> 2 */
}
@media screen and (max-width: 320px), screen and (max-device-width: 320px) {
    /* drop to one column */
    div.onecrm .detailview.three_column .cell {width:100%; }  /* 3 column flow -> 1 */
    div.onecrm .detailview.four_column .cell {width:100%; }   /* 4 column flow -> 1 */
    div.onecrm .detailview.five_column .cell {width:100%; }   /* 5 column flow -> 1 */
    div.onecrm .detailview.six_column .cell {width:100%; }    /* 6 column flow -> 1 */
}
div.onecrm .cell.cell-text { width:100% !important; }   /* always full width */
div.onecrm .cell.cell-head { border-bottom: 1px solid black; }   /* always full width */
button.onecrm-p-create {
	float: right;
	margin-bottom: 8px;
}
button.onecrm-p-save {
	margin-top: 8px !important;
}

button.onecrm-p-save:disabled,
button.onecrm-p-save[disabled],
button.onecrm-p-save[disabled]:hover {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

#onecrm-p-errors {
	background-color: #FEE;
	border: solid 1px #F00;
	border-radius: 4px;
	margin-bottom: 10px;
	color: #F00;
	display: none;
	padding: 10px;
}
#onecrm-p-errors.active {
	display: block;
}

.onecrm-p-error + .onecrm-p-error {
	margin-top: 10px;
}
			
span.onecrm-p-page-number-separator:after {
  content: "\2026";
}

a.onecrm-p-page-number {
	border: solid 1px #00F;
	min-width: 30px;
	display: inline-block ;
	text-align: center ;
	border-radius: 4px;
}

a.onecrm-p-page-number.current {
	background-color: #EEF;
	font-weight: bold;
}

div.onecrm-p-pagination {
	text-align: right;
}

div.onecrm-p-pagination + table.listview {
	margin-top: 1em;
	margin-bottom: 1em;
}

table.listview + div.onecrm-p-pagination {
	margin-bottom: 2em;
}

.onecrm-p-add-note h3 {
	cursor: pointer;
}

.onecrm-p-add-note.expanded form {
	display: block;
}

.onecrm-p-add-note form {
	display: none;
}

.onecrm-p-tally-group-title {
	margin-top: 20px;
}

.onecrm-p-tally-totals-header {
	margin-top: 20px;
	text-align: right;
}

.onecrm-p-tally-totals-line {
	text-align: right;
}
.onecrm-subscription-status-active {
	color: #0D0;
}

.onecrm-subscription-status-failed {
	color: #D00;
}

.onecrm-subscription-status-inactive {
	color: #999;
}

.onecrm-customer-widget h5 {
	margin: 0;
}

.onecrm-customer-widget a.onecrm-customer-link {
	display: block;
	text-align: right;
}

.onecrm span.datetime {
	min-width: 12em;
	display: inline-block;
}

.onecrm .col-type-sequence_number div {
	min-width: 8em;
}

.onecrm .col-type-date div, .onecrm .col-type-datetime div, .onecrm .col-type-item_number div {
	min-width: 10em;
}

.onecrm .list-filters {
    padding-bottom: 30px;
}

.onecrm .list-filter-form input[type=text] {
    width: 20%;
}

.onecrm .list-filter-form input[type=checkbox] {
    vertical-align: middle;
    position: relative;
    bottom: .08em;
    margin: 0 10px 0 0;
}

/* Portal-wide Material Design-inspired visual system, presentation only */
:root{--onecrm-md-primary:#4361dc;--onecrm-md-primary-hover:#324cbd;--onecrm-md-text:#243246;--onecrm-md-muted:#63748b;--onecrm-md-border:#e1e7f0;--onecrm-md-surface:#fff;--onecrm-md-subtle:#f6f8fc;--onecrm-md-shadow:0 3px 14px rgba(28,47,82,.065)}
.onecrm,.onecrm-p-a,.onecrmhelp,.onecrm-p-a-plan{font-family:Roboto,"Segoe UI",Arial,sans-serif;color:var(--onecrm-md-text);line-height:1.55}
.onecrm h1,.onecrm h2,.onecrm h3,.onecrmhelp h1,.onecrmhelp h2,.onecrm-p-a h1,.onecrm-p-a h2{color:#1d2b41;letter-spacing:-.025em;line-height:1.3}
.onecrm a,.onecrmhelp a,.onecrm-p-a a{color:var(--onecrm-md-primary);text-underline-offset:3px}
.onecrm a:hover,.onecrmhelp a:hover,.onecrm-p-a a:hover{color:var(--onecrm-md-primary-hover)}
.onecrm :is(button,input[type=submit],input[type=button],.button,.onecrm-p-create),.onecrmhelp :is(button,input[type=submit],.button),.onecrm-p-a :is(button,input[type=submit],.button){border-radius:9px;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .15s;font-weight:600}
.onecrm :is(input[type=text],input[type=email],input[type=number],input[type=password],input[type=search],input[type=date],input[type=datetime-local],input[type=url],input[type=tel],select,textarea),.onecrmhelp :is(input[type=text],input[type=search],select,textarea),.onecrm-p-a :is(input[type=text],input[type=email],input[type=number],select,textarea){border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:var(--onecrm-md-text);padding:10px 12px;min-height:42px;max-width:100%;box-sizing:border-box;box-shadow:none}
.onecrm :is(input,select,textarea):focus,.onecrmhelp :is(input,select,textarea):focus,.onecrm-p-a :is(input,select,textarea):focus{outline:2px solid transparent;border-color:var(--onecrm-md-primary);box-shadow:0 0 0 3px rgba(67,97,220,.13)}
.onecrm :is(input,select,textarea):disabled,.onecrmhelp :is(input,select,textarea):disabled{background:#f0f3f8;opacity:.8}
.onecrm :is(button,input[type=submit],.button,.onecrm-p-create):focus-visible,.onecrmhelp :is(button,input[type=submit],.button):focus-visible{outline:3px solid rgba(67,97,220,.35);outline-offset:2px}
.onecrm :is(table,.onecrm-p-table),.onecrm-p-a table,.onecrmhelp table{border-collapse:separate;border-spacing:0;width:100%;background:var(--onecrm-md-surface);border:1px solid var(--onecrm-md-border);border-radius:12px;overflow:hidden}
.onecrm :is(table,.onecrm-p-table) th,.onecrm-p-a table th,.onecrmhelp table th{background:var(--onecrm-md-subtle);color:#4b5b70;font-weight:650;text-align:left;padding:13px 15px;border-bottom:1px solid var(--onecrm-md-border)}
.onecrm table td,.onecrm-p-a table td,.onecrmhelp table td{padding:13px 15px;border-bottom:1px solid #edf0f5;vertical-align:top}
.onecrm table tr:last-child td,.onecrm-p-a table tr:last-child td,.onecrmhelp table tr:last-child td{border-bottom:0}
.onecrm table tbody tr:hover,.onecrm-p-a table tbody tr:hover,.onecrmhelp table tbody tr:hover{background:#f9faff}
.onecrm :is(.onecrm-p-detailview,.onecrm-p-detail,.onecrm-p-details,.onecrm-p-list,.onecrm-p-card),.onecrmhelp :is(.kbbox,.onecrm-p-article-content){border-radius:14px;box-shadow:var(--onecrm-md-shadow)}
.onecrm :is(.onecrm-p-detailview,.onecrm-p-detail,.onecrm-p-details){border:1px solid var(--onecrm-md-border);overflow:hidden}
.onecrm :is(.onecrm-p-detailview,.onecrm-p-detail,.onecrm-p-details) :is(label,strong,b){color:#53657d}
.onecrm :is(.onecrm-p-create,.button.primary,button[type=submit],input[type=submit]),.onecrmhelp :is(button[type=submit],input[type=submit]){background:var(--onecrm-md-primary);border:1px solid var(--onecrm-md-primary);color:#fff;padding:10px 19px;box-shadow:0 2px 6px rgba(67,97,220,.12)}
.onecrm :is(.onecrm-p-create,.button.primary,button[type=submit],input[type=submit]):hover,.onecrmhelp :is(button[type=submit],input[type=submit]):hover{background:var(--onecrm-md-primary-hover);border-color:var(--onecrm-md-primary-hover);color:#fff}
.onecrm :is(.onecrm-p-error,#onecrm-p-errors),.onecrmhelp .onecrm-p-error{border-radius:10px}
.onecrm .onecrm-p-breadcrumbs,.onecrmhelp .onecrm-p-breadcrumbs{color:var(--onecrm-md-muted);font-size:14px}
.onecrmhelp :is(.onecrm-p-search-wrapper,.onecrm-p-searchbar){border-radius:14px}
.onecrmhelp #search-help,.onecrmhelp #search-help.onecrm-p-search-inline{width:100%;max-width:100%;min-height:48px;border-radius:11px;box-sizing:border-box}
.onecrmhelp .kbbox{background:#fff;border:1px solid var(--onecrm-md-border);overflow:hidden}
.onecrmhelp .onecrm-p-article-content{background:#fff}
.onecrmhelp :is(.onecrm-p-view-grid,.onecrm-p-view-list){border-radius:12px}
.onecrm .onecrm-feature-layout{gap:24px}
.onecrm .onecrm-feature-chat{border-radius:14px}
.onecrm .onecrm-notes-heading{gap:14px}
.onecrm .onecrm-p-notes-table{border-radius:12px}
@media(max-width:700px){.onecrm table,.onecrmhelp table,.onecrm-p-a table{display:block;overflow-x:auto;max-width:100%}.onecrm .onecrm-feature-layout{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.onecrm *,.onecrmhelp *,.onecrm-p-a *{transition:none!important}}

/* Material-style refinements for ALL detail sections, cases and features. */
div.onecrm .detailview{background:#fff;border:1px solid #e1e7f0;border-radius:14px;padding:18px 20px;box-shadow:0 3px 14px rgba(25,45,75,.055);overflow:hidden}
div.onecrm .detailview .cell{padding:13px 14px;margin-bottom:4px;max-height:none;min-width:0;overflow-wrap:anywhere}
div.onecrm .detailview .cell>label{font-size:13px;line-height:1.4;color:#63748b;font-weight:650;margin-bottom:5px}
div.onecrm .detailview .cell span{font-size:15px;color:#263348;line-height:1.6}
div.onecrm .detailview .cell:hover{background:#f8faff;border-radius:8px}
div.onecrm .onecrm-feature-main>h3:first-child,div.onecrm .onecrm-feature-main>h2:first-child{margin:0 0 12px;font-size:26px;font-weight:650;line-height:1.35}
div.onecrm .onecrm-feature-main :is(table.listview,table.onecrm-p-notes-table){border:1px solid #e1e7f0;border-radius:12px;border-collapse:separate;border-spacing:0;background:#fff;box-shadow:0 3px 12px rgba(25,45,75,.045);overflow:hidden;margin:12px 0 24px;width:100%}
div.onecrm .onecrm-feature-main :is(table.listview,table.onecrm-p-notes-table) th{background:#f6f8fc;color:#526177;font-weight:650;font-size:13px;padding:13px 14px;border-bottom:1px solid #e1e7f0;text-align:left}
div.onecrm .onecrm-feature-main :is(table.listview,table.onecrm-p-notes-table) td{padding:13px 14px;border-bottom:1px solid #edf0f5;vertical-align:top;font-size:14px;overflow-wrap:anywhere}
div.onecrm .onecrm-feature-main :is(table.listview,table.onecrm-p-notes-table) tbody tr:last-child td{border-bottom:0}
div.onecrm .onecrm-feature-main :is(table.listview,table.onecrm-p-notes-table) tbody tr:hover{background:#f9faff}
div.onecrm .onecrm-feature-main .onecrm-notes-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 14px}
div.onecrm .onecrm-feature-main .onecrm-notes-heading :is(h2,h3){margin:0;font-size:23px}
div.onecrm .onecrm-feature-main .onecrm-p-notes-table-wrap{background:#fff;border-radius:12px;overflow-x:auto;border:1px solid #e1e7f0;box-shadow:0 3px 12px rgba(25,45,75,.045)}
div.onecrm .onecrm-feature-main .onecrm-p-notes-table{box-shadow:none;margin:0;border:0}
div.onecrm .onecrm-feature-main .onecrm-p-add-note{border:1px solid #e1e7f0;border-radius:12px;background:#fff;padding:18px;margin-top:12px;box-shadow:0 3px 12px rgba(25,45,75,.045)}
div.onecrm .onecrm-feature-main :is(h2,h3){letter-spacing:-.025em;color:#1d2b41}
div.onecrm .onecrm-feature-main :is(.onecrm-p-create,button.button){border-radius:9px}
/* Align chat top edge with the details CARD rather than the preceding title. */
@media(min-width:901px){div.onecrm .onecrm-feature-layout>.onecrm-feature-chat{margin-top:46px!important}}
@media(max-width:900px){div.onecrm .onecrm-feature-layout>.onecrm-feature-chat{margin-top:0!important}}

/* Material-inspired Cases and Feature Requests listing: presentation only */
div.onecrm table.listview{width:100%;table-layout:auto;border-collapse:separate;border-spacing:0;border:1px solid #e1e7f0;border-radius:14px;background:#fff;box-shadow:0 4px 18px rgba(24,44,78,.055);overflow:hidden;font-size:14px;line-height:1.5}
div.onecrm table.listview thead th{background:#f5f7fc;color:#52627a;font-weight:650;font-size:12px;letter-spacing:.015em;text-align:left;padding:14px 13px;vertical-align:middle;border-bottom:1px solid #e1e7f0;white-space:normal}
div.onecrm table.listview thead th div{border:0;padding:0}
div.onecrm table.listview tbody td{padding:15px 13px;vertical-align:top;color:#27364c;border-bottom:1px solid #eef1f6;overflow-wrap:break-word;word-break:normal;line-height:1.55}
div.onecrm table.listview tbody tr:last-child td{border-bottom:0}
div.onecrm table.listview tbody tr:nth-child(even){background:#fafbfe}
div.onecrm table.listview tbody tr:hover{background:#f1f5ff}
div.onecrm table.listview a{color:#4263df;text-decoration:none;font-weight:500}
div.onecrm table.listview a:hover{text-decoration:underline}
div.onecrm table.listview :is(.status,.badge,.label){border-radius:7px;padding:3px 7px;font-size:12px;font-weight:600}
div.onecrm table.listview :is(.col-date_entered,.col-date_closed,.col-bug_number,.col-case_number){white-space:nowrap}
div.onecrm table.listview :is(.col-name,.col-description){min-width:150px}
div.onecrm table.listview :is(.col-status,.col-priority){min-width:105px}
div.onecrm :is(.listview-controls,.listview-filter,.list-filters,.onecrm-p-filter){display:flex;flex-wrap:wrap;align-items:center;gap:12px}
div.onecrm :is(.listview-controls,.listview-filter,.list-filters,.onecrm-p-filter) :is(input[type=text],input[type=search]){border-radius:10px;min-height:43px}
div.onecrm :is(.pagination,.onecrm-p-pagination){display:flex;align-items:center;justify-content:flex-end;gap:7px;margin:14px 0}
div.onecrm :is(.pagination,.onecrm-p-pagination) a{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px 9px;border:1px solid #dce3f1;border-radius:8px;text-decoration:none}
@media(max-width:950px){div.onecrm table.listview{display:block;overflow-x:auto;max-width:100%}div.onecrm table.listview thead th,div.onecrm table.listview tbody td{min-width:100px}}
/* List toolbar: readable search and right-aligned action buttons */
div.onecrm #list-filters{display:block;width:100%;box-sizing:border-box}
div.onecrm #list-filter-form{display:flex;align-items:center;flex-wrap:wrap;gap:12px;width:100%;box-sizing:border-box}
div.onecrm #list-filter-form input[type="text"].text{width:clamp(280px,32vw,430px)!important;min-width:280px;max-width:100%;flex:0 1 430px;box-sizing:border-box;text-overflow:clip}
div.onecrm #list-filter-form input[type="text"].text::placeholder{opacity:1;color:#758398}
div.onecrm #list-filter-form>button[onclick*="FilterForm.submit"]{order:10;margin-left:auto!important;margin-right:0!important;white-space:nowrap}
div.onecrm #list-filter-form>.onecrm-p-create{order:11;margin-left:0!important;white-space:nowrap}
@media(max-width:760px){div.onecrm #list-filter-form input[type="text"].text{flex:1 1 100%;width:100%!important;min-width:0}div.onecrm #list-filter-form>button[onclick*="FilterForm.submit"]{margin-left:0!important}}

.onecrm-feature-linked-badge{display:inline-block;vertical-align:middle;margin-left:9px;padding:3px 9px;background:#e9efff;color:#3154ae;border:1px solid #c9d7fc;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap}


/* Support cases overview: compact, flat alternating rows as in the supplied reference.
   Scoped to aCase only; no changes to column order or data. */
div.onecrm table.listview.aCase,
table.listview.aCase {
  width:100%; border:0; border-radius:0; box-shadow:none;
  border-collapse:separate; border-spacing:0; table-layout:auto;
  background:#fff; font-family:Roboto,"Segoe UI",Arial,sans-serif;
  font-size:14px; line-height:1.45; overflow:visible;
}
div.onecrm table.listview.aCase thead th,
table.listview.aCase thead th {
  background:#e8edf5; color:#1c293e; font-size:13px; font-weight:700;
  padding:16px 15px; border:0; border-bottom:0;
  text-align:left; vertical-align:middle; letter-spacing:0; white-space:normal;
}
div.onecrm table.listview.aCase thead th:first-child,
table.listview.aCase thead th:first-child {border-radius:4px 0 0 4px}
div.onecrm table.listview.aCase thead th:last-child,
table.listview.aCase thead th:last-child {border-radius:0 4px 4px 0}
div.onecrm table.listview.aCase thead th div,
table.listview.aCase thead th div {padding:0; border:0; background:transparent}
div.onecrm table.listview.aCase tbody td,
table.listview.aCase tbody td {
  border:0; padding:17px 15px; vertical-align:top; line-height:1.55;
  color:#44536a; font-size:14px; overflow-wrap:normal; word-break:normal;
}
div.onecrm table.listview.aCase tbody tr:nth-child(odd),
table.listview.aCase tbody tr:nth-child(odd) {background:#f5f7fa}
div.onecrm table.listview.aCase tbody tr:nth-child(even),
table.listview.aCase tbody tr:nth-child(even) {background:#fff}
div.onecrm table.listview.aCase tbody tr:hover,
table.listview.aCase tbody tr:hover {background:#eaf1ff}
div.onecrm table.listview.aCase tbody td a,
table.listview.aCase tbody td a {color:#3267e5; font-weight:650; text-decoration:none}
div.onecrm table.listview.aCase tbody td a:hover,
table.listview.aCase tbody td a:hover {text-decoration:underline}
div.onecrm table.listview.aCase .col-name {min-width:180px}
div.onecrm table.listview.aCase .col-status {min-width:120px}
div.onecrm table.listview.aCase .col-priority {min-width:105px}
div.onecrm table.listview.aCase :is(.col-date_entered,.col-date_closed,.col-case_number) {white-space:nowrap}
@media(max-width:900px){
 div.onecrm table.listview.aCase,table.listview.aCase{display:block;overflow-x:auto;max-width:100%}
 div.onecrm table.listview.aCase thead th,div.onecrm table.listview.aCase tbody td{min-width:105px}
}

/* Feature Requests: same clean, flat table treatment as Support Cases. */
div.onecrm table.listview.Bug,table.listview.Bug{width:100%;border:0;border-radius:0;box-shadow:none;border-collapse:separate;border-spacing:0;table-layout:auto;background:#fff;font-family:Roboto,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.45;overflow:visible}
div.onecrm table.listview.Bug thead th,table.listview.Bug thead th{background:#e8edf5;color:#1c293e;font-size:13px;font-weight:700;padding:16px 15px;border:0;text-align:left;vertical-align:middle;letter-spacing:0;white-space:normal}
div.onecrm table.listview.Bug thead th:first-child{border-radius:4px 0 0 4px}
div.onecrm table.listview.Bug thead th:last-child{border-radius:0 4px 4px 0}
div.onecrm table.listview.Bug thead th div{padding:0;border:0;background:transparent}
div.onecrm table.listview.Bug tbody td,table.listview.Bug tbody td{border:0;padding:17px 15px;vertical-align:top;line-height:1.55;color:#44536a;font-size:14px;overflow-wrap:normal;word-break:normal}
div.onecrm table.listview.Bug tbody tr:nth-child(odd){background:#f5f7fa}
div.onecrm table.listview.Bug tbody tr:nth-child(even){background:#fff}
div.onecrm table.listview.Bug tbody tr:hover{background:#eaf1ff}
div.onecrm table.listview.Bug tbody td a{color:#3267e5;font-weight:650;text-decoration:none}
div.onecrm table.listview.Bug tbody td a:hover{text-decoration:underline}
@media(max-width:900px){div.onecrm table.listview.Bug{display:block;overflow-x:auto;max-width:100%}div.onecrm table.listview.Bug thead th,div.onecrm table.listview.Bug tbody td{min-width:105px}}
/* Case create: priority selector as refined, accessible segmented pills. */
.onecrm-case-priority-choice{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0 14px;max-width:100%}
.onecrm-case-priority-choice button{appearance:none;min-height:35px;padding:7px 13px;border-radius:999px;border:1px solid #d9e1ec;background:#f5f7fb;color:#526174;font:600 12px/1.3 Roboto,"Segoe UI",Arial,sans-serif;box-shadow:none;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.onecrm-case-priority-choice button:hover{background:#eaf0fa;border-color:#b8c9e8}
.onecrm-case-priority-choice button[aria-pressed="true"]{background:#e6edff;border-color:#5875dc;color:#2d4cac;box-shadow:inset 0 0 0 1px #5875dc}
.onecrm-case-priority-choice button:focus-visible{outline:3px solid rgba(67,97,220,.28);outline-offset:2px}
.onecrm-case-priority-choice button[data-priority-tone="critical"]{background:#fff0f0;color:#a73333;border-color:#f1cccc}
.onecrm-case-priority-choice button[data-priority-tone="critical"][aria-pressed="true"]{background:#ffe2e2;border-color:#ce5555;box-shadow:inset 0 0 0 1px #ce5555}
.onecrm-case-priority-choice button[data-priority-tone="medium"]{background:#fff8df;color:#916515;border-color:#f1e3ac}
.onecrm-case-priority-choice button[data-priority-tone="medium"][aria-pressed="true"]{background:#fff0bd;border-color:#d4a941;box-shadow:inset 0 0 0 1px #d4a941}
.onecrm-case-priority-choice button[data-priority-tone="low"]{background:#f0f3f7;color:#596a7e;border-color:#dce3ed}
.onecrm-case-priority-choice button[data-priority-tone="low"][aria-pressed="true"]{background:#e2e9f4;border-color:#7890b7;box-shadow:inset 0 0 0 1px #7890b7}
.onecrm-case-priority-original{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}

/* Case create: compact, softly colored priority choice (presentation only). */
#onecrm-p-editor-form .onecrm-case-priority-choice{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  width:fit-content;max-width:min(100%,460px);margin:6px 0 12px;
}
#onecrm-p-editor-form .onecrm-case-priority-choice button{
  flex:0 0 auto;min-height:29px;width:auto;max-width:100%;
  padding:5px 11px;border-radius:999px;border-width:1px;
  font:600 11.5px/1.3 Roboto,"Segoe UI",Arial,sans-serif;
  box-shadow:none;white-space:normal;text-align:center;
}
#onecrm-p-editor-form .onecrm-case-priority-choice button[data-priority-tone="critical"]{background:#fde3e3!important;color:#a72a2a!important;border-color:#f6d1d1!important}
#onecrm-p-editor-form .onecrm-case-priority-choice button[data-priority-tone="medium"]{background:#fff1c3!important;color:#95520e!important;border-color:#f5e4a9!important}
#onecrm-p-editor-form .onecrm-case-priority-choice button[data-priority-tone="low"]{background:#e5eaf1!important;color:#45566d!important;border-color:#d8e0ea!important}
#onecrm-p-editor-form .onecrm-case-priority-choice button[data-priority-tone="very-low"]{background:#f1f4f8!important;color:#65748a!important;border-color:#e7ebf0!important}
#onecrm-p-editor-form .onecrm-case-priority-choice button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:1px;font-weight:700}
#onecrm-p-editor-form .onecrm-case-priority-choice button:hover{filter:brightness(.97)}
@media(max-width:600px){#onecrm-p-editor-form .onecrm-case-priority-choice{max-width:100%}}

/* Lead dashboard — visual alignment with Cases and Feature Requests */
.onecrm-lead-dashboard{color:#253348;font-family:Roboto,"Segoe UI",Arial,sans-serif;max-width:100%}
.onecrm-lead-dashboard h2{font-size:25px;font-weight:650;letter-spacing:-.025em;margin:0 0 20px;color:#243246}
.onecrm-lead-dashboard .onecrm-lead-card,.onecrm-lead-dashboard .onecrm-lead-table-wrap{background:#fff;border:1px solid #e0e6ef;border-radius:12px;box-shadow:0 2px 10px rgba(25,45,75,.05);overflow:hidden}
.onecrm-lead-dashboard .onecrm-lead-card{padding:24px;max-width:760px}
.onecrm-lead-dashboard .onecrm-lead-card h3{font-size:19px;font-weight:650;margin:0 0 22px}
.onecrm-lead-dashboard .onecrm-lead-form{display:grid;gap:14px}
.onecrm-lead-dashboard .onecrm-lead-form p{margin:0}
.onecrm-lead-dashboard .onecrm-lead-form label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px;color:#52627b}
.onecrm-lead-dashboard .onecrm-lead-form input{border:1px solid #cbd5e1;border-radius:8px;padding:11px 13px;width:100%;max-width:500px;min-height:42px;background:white;color:#243246;box-sizing:border-box}
.onecrm-lead-dashboard .onecrm-lead-form input:focus{outline:none;border-color:#4865d8;box-shadow:0 0 0 3px rgba(72,101,216,.13)}
.onecrm-lead-dashboard .onecrm-lead-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px}
.onecrm-lead-dashboard button[type=submit],.onecrm-lead-dashboard a.button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:10px 18px;min-height:40px;font-weight:600;text-decoration:none;box-sizing:border-box}
.onecrm-lead-dashboard button[type=submit],.onecrm-lead-dashboard a.button:not(.secondary){background:#4263df;color:white;border:1px solid #4263df}
.onecrm-lead-dashboard button[type=submit]:hover,.onecrm-lead-dashboard a.button:hover{filter:brightness(.94)}
.onecrm-lead-dashboard .onecrm-lead-table-wrap{overflow-x:auto}
.onecrm-lead-dashboard table.onecrm-lead-table{width:100%;border-collapse:collapse;border:0;margin:0}
.onecrm-lead-dashboard .onecrm-lead-table th{background:#eaf0f7;color:#34465f;font-weight:650;text-align:left;padding:14px 17px;border-bottom:1px solid #dce4ee}
.onecrm-lead-dashboard .onecrm-lead-table td{padding:13px 17px;border-bottom:1px solid #edf0f5}
.onecrm-lead-dashboard .onecrm-lead-table tr:nth-child(even){background:#f8fafc}
.onecrm-lead-dashboard .onecrm-lead-table tr:hover{background:#f1f5fc}
.onecrm-lead-dashboard .onecrm-lead-table a{color:#4263df;text-decoration:none;font-weight:600}
.onecrm-lead-dashboard .onecrm-lead-details{display:grid;grid-template-columns:minmax(140px,210px) minmax(0,1fr);gap:0;margin-bottom:20px}
.onecrm-lead-dashboard .onecrm-lead-details dt,.onecrm-lead-dashboard .onecrm-lead-details dd{padding:12px 10px;border-bottom:1px solid #edf0f5;margin:0}
.onecrm-lead-dashboard .onecrm-lead-details dt{font-weight:600;color:#52627b}
@media(max-width:600px){.onecrm-lead-dashboard .onecrm-lead-card{padding:16px}.onecrm-lead-dashboard .onecrm-lead-details{grid-template-columns:1fr}.onecrm-lead-dashboard .onecrm-lead-details dt{border-bottom:0;padding-bottom:0}}

/* Lead extra field controls */
.onecrm-lead-dashboard .onecrm-lead-form select,.onecrm-lead-dashboard .onecrm-lead-form textarea{border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;max-width:500px;width:100%;background:#fff;color:#243246;box-sizing:border-box}
.onecrm-lead-dashboard .onecrm-lead-module-field{border:0;padding:0;margin:0;max-width:700px}
.onecrm-lead-dashboard .onecrm-lead-module-field legend{font-size:13px;font-weight:600;color:#52627b;margin-bottom:8px}
.onecrm-lead-dashboard .onecrm-lead-module-options{display:flex;flex-wrap:wrap;gap:8px}
.onecrm-lead-dashboard .onecrm-lead-module-chip{display:inline-flex!important;cursor:pointer;position:relative}
.onecrm-lead-dashboard .onecrm-lead-module-chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.onecrm-lead-dashboard .onecrm-lead-module-chip span{border:1px solid #cbd5e1;border-radius:999px;padding:6px 12px;background:#f5f7fb;color:#43546d;font-size:13px;font-weight:600;transition:background .15s,border-color .15s}
.onecrm-lead-dashboard .onecrm-lead-module-chip input:checked+span{background:#dfe8ff;color:#2546a5;border-color:#6687ed}
.onecrm-lead-dashboard .onecrm-lead-module-chip input:focus-visible+span{outline:2px solid #4263df;outline-offset:2px}
.onecrm-lead-dashboard .onecrm-lead-form textarea{min-height:115px;resize:vertical}

/* Lead create form: structured Material-style 3-column layout */
.onecrm-lead-dashboard .onecrm-lead-form-modern{display:block}
.onecrm-lead-dashboard .onecrm-lead-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 34px;align-items:start}
.onecrm-lead-dashboard .onecrm-lead-field{min-width:0;margin:0}
.onecrm-lead-dashboard .onecrm-lead-field>label,.onecrm-lead-dashboard .onecrm-lead-field>legend{display:block;font-size:13px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;color:#667083;margin:0 0 10px;padding:0}
.onecrm-lead-dashboard .onecrm-lead-field>label span,.onecrm-lead-dashboard .onecrm-lead-field>legend span{color:#667083}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-field :is(input:not([type=radio]):not([type=checkbox]),select,textarea){display:block;width:100%;max-width:none;min-height:46px;border:1px solid #cbd3e1;border-radius:8px;padding:11px 14px;box-sizing:border-box;background:#fff;color:#344054;font-size:15px}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-field :is(input,textarea)::placeholder{color:#99a3b4}
.onecrm-lead-dashboard .onecrm-lead-form-modern fieldset{border:0;padding:0;min-width:0}
.onecrm-lead-dashboard .onecrm-lead-choice-options,.onecrm-lead-dashboard .onecrm-lead-module-options{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.onecrm-lead-dashboard .onecrm-lead-choice-chip,.onecrm-lead-dashboard .onecrm-lead-module-chip{display:inline-flex!important;position:relative;cursor:pointer;min-width:0;font-weight:500!important;letter-spacing:normal!important;text-transform:none!important;margin:0!important}
.onecrm-lead-dashboard .onecrm-lead-choice-chip input,.onecrm-lead-dashboard .onecrm-lead-module-chip input{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.onecrm-lead-dashboard .onecrm-lead-choice-chip span,.onecrm-lead-dashboard .onecrm-lead-module-chip span{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:0 14px;border:1px solid #cbd3e1;border-radius:10px;background:#fff;color:#647084;font-size:13px;white-space:nowrap;transition:background .15s,border-color .15s}
.onecrm-lead-dashboard .onecrm-lead-choice-chip input:checked+span,.onecrm-lead-dashboard .onecrm-lead-module-chip input:checked+span{background:#e7efff;border-color:#346aff;color:#235bd8;font-weight:700;box-shadow:inset 0 0 0 1px #346aff}
.onecrm-lead-dashboard .onecrm-lead-choice-chip input:focus-visible+span,.onecrm-lead-dashboard .onecrm-lead-module-chip input:focus-visible+span{outline:3px solid #9bb8ff;outline-offset:2px}
.onecrm-lead-dashboard .onecrm-lead-information{grid-column:span 2}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-information textarea{min-height:115px;resize:vertical}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-actions{margin-top:28px}
@media(max-width:1050px){.onecrm-lead-dashboard .onecrm-lead-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.onecrm-lead-dashboard .onecrm-lead-information{grid-column:span 2}}
@media(max-width:640px){.onecrm-lead-dashboard .onecrm-lead-form-grid{grid-template-columns:minmax(0,1fr);gap:20px}.onecrm-lead-dashboard .onecrm-lead-information{grid-column:auto}}

/* Lead form: fixed 3-column desktop layout and selectable outline chips. */
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:28px 32px!important;align-items:start;width:100%;max-width:none!important}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-form-grid>.onecrm-lead-field{width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;max-width:100%;width:100%}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-choice-field,.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-module-field{padding:0!important;border:0!important;min-width:0!important}
.onecrm-lead-dashboard .onecrm-lead-form-modern :is(.onecrm-lead-choice-options,.onecrm-lead-module-options){display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center}
.onecrm-lead-dashboard .onecrm-lead-form-modern :is(.onecrm-lead-choice-chip,.onecrm-lead-module-chip){display:inline-flex!important;position:relative;cursor:pointer;margin:0!important;padding:0!important;min-width:0!important;max-width:100%;background:transparent!important;border:0!important;box-shadow:none!important}
.onecrm-lead-dashboard .onecrm-lead-form-modern :is(.onecrm-lead-choice-chip,.onecrm-lead-module-chip)>input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}
.onecrm-lead-dashboard .onecrm-lead-form-modern :is(.onecrm-lead-choice-chip,.onecrm-lead-module-chip)>span{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px!important;padding:5px 14px!important;border:1.5px solid #c8d1df!important;border-radius:12px!important;background:#fff!important;color:#677387!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important;line-height:1.3!important;transition:background-color .15s,border-color .15s,color .15s}
.onecrm-lead-dashboard .onecrm-lead-form-modern :is(.onecrm-lead-choice-chip,.onecrm-lead-module-chip)>input:checked+span{background:#e5eeff!important;color:#245fe4!important;border-color:#2867ff!important;font-weight:650!important;box-shadow:inset 0 0 0 .5px #2867ff!important}
.onecrm-lead-dashboard .onecrm-lead-form-modern :is(.onecrm-lead-choice-chip,.onecrm-lead-module-chip)>input:focus-visible+span{outline:3px solid #a5baff;outline-offset:2px}
.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-information{grid-column:span 2!important}
@media(max-width:1050px){.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-form-grid{grid-template-columns:minmax(0,1fr)!important}.onecrm-lead-dashboard .onecrm-lead-form-modern .onecrm-lead-information{grid-column:auto!important}}
.onecrm-lead-dashboard .onecrm-lead-edit-form{margin-top:24px;padding-top:24px;border-top:1px solid #edf0f5}.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-edit-control{display:flex;align-items:stretch;gap:8px;width:100%}.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-edit-control :is(input,textarea){flex:1 1 auto;min-width:0}.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-edit-control textarea{min-height:115px;resize:vertical}.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-edit-control :is(input[readonly],textarea[readonly]){background:#f8fafc;color:#52627b;cursor:default}.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-edit-control :is(input.is-editing,textarea.is-editing){background:#fff;cursor:text}.onecrm-lead-dashboard .onecrm-lead-edit-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;min-height:46px;padding:0;border:1px solid #cbd3e1;border-radius:8px;background:#fff;color:#344054;cursor:pointer;transition:background .15s,border-color .15s}.onecrm-lead-dashboard .onecrm-lead-edit-toggle:hover{background:#f1f5ff;border-color:#4263df;color:#244fc7}.onecrm-lead-dashboard .onecrm-lead-edit-toggle:focus-visible{outline:3px solid #a5baff;outline-offset:2px}.onecrm-lead-dashboard .onecrm-lead-edit-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-actions{margin-top:28px}

/* Linked Knowledge Base articles on Case detail */
.onecrm-case-kb-articles{margin-top:22px}.onecrm-case-kb-articles h3{margin:0 0 12px}.onecrm-case-kb-table-wrap{overflow-x:auto;border:1px solid #e1e7f0;border-radius:12px}.onecrm-case-kb-table{width:100%;border-collapse:collapse}.onecrm-case-kb-table th{text-align:left;background:#f4f7fc;padding:12px 16px;color:#44546b}.onecrm-case-kb-table td{padding:12px 16px;border-top:1px solid #e9edf3;vertical-align:top}.onecrm-case-kb-table a{color:#3263ce;text-decoration:none}.onecrm-case-kb-table a:hover{text-decoration:underline}

/* Read-only KB article preview in Case creation search dialog */
.onecrm-case-kb-result .onecrm-case-kb-preview{font-size:12px;padding:6px 12px;border-radius:7px;border:1px solid #b7c9eb;background:#f2f6ff;color:#244c9a;cursor:pointer;margin:8px 0 4px 26px}
.onecrm-case-kb-preview-panel{padding:12px 18px;max-height:60vh;overflow-y:auto;background:#fff;color:#25334b}
.onecrm-case-kb-preview-back{border:1px solid #c8d5e8;background:#f6f8fc;border-radius:8px;padding:7px 14px;cursor:pointer;margin-bottom:14px}
.onecrm-case-kb-preview-body{line-height:1.6;overflow-wrap:anywhere}
.onecrm-case-kb-preview-article img{max-width:100%;height:auto}
.onecrm-case-kb-preview-summary{color:#5c6b80;font-weight:500}
/* Full Knowledge Base article button on already-linked Case entries */
.onecrm-case-kb-open-article{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:7px 13px!important;min-height:34px;border-radius:8px!important;background:#e7eeff!important;color:#3158bd!important;border:1px solid #b9cafa!important;text-decoration:none!important;font-size:13px;font-weight:600}
.onecrm-case-kb-open-article:hover{background:#d9e5ff!important;color:#21469c!important}

/* Case create: WordPress rich text editor */
.onecrm-case-rich-description{margin:20px 0 24px;max-width:100%;clear:both}.onecrm-case-rich-description>label{display:block;margin-bottom:10px;color:#334155}.onecrm-case-rich-description .wp-editor-wrap{border-radius:10px;overflow:hidden;border:1px solid #d8e0eb}.onecrm-case-rich-description .wp-editor-container{border:0}.onecrm-case-rich-description textarea{max-width:100%;box-sizing:border-box}.onecrm-case-rich-description .mce-tinymce{box-shadow:none!important}

/* Saved rich HTML description in case detail */
.onecrm-case-rich-detail{margin:20px 0;padding:20px;border:1px solid #e1e7f0;border-radius:12px;background:#fff}.onecrm-case-rich-detail h3{margin:0 0 14px}.onecrm-case-rich-content{overflow-wrap:anywhere;line-height:1.65}.onecrm-case-rich-content img{max-width:100%;height:auto;border-radius:6px}.onecrm-case-rich-content table{max-width:100%;display:block;overflow-x:auto}
.onecrm-lead-dashboard .onecrm-lead-edit-toggle.is-active{background:#4263df!important;color:#fff!important;box-shadow:0 0 0 2px #4263df!important}.onecrm-lead-dashboard .onecrm-lead-edit-toggle.is-active svg{stroke:#fff!important}.onecrm-lead-dashboard .onecrm-lead-edit-toggle.is-active:hover{background:#4263df!important;color:#111!important}.onecrm-lead-dashboard .onecrm-lead-edit-toggle.is-active:hover svg{stroke:#111!important}
.onecrm-lead-dashboard .onecrm-lead-edit-toggle.is-active{background:#4263df!important;color:#fff!important;box-shadow:0 0 0 2px #4263df!important}.onecrm-lead-dashboard .onecrm-lead-edit-toggle.is-active svg{stroke:#fff}.onecrm-lead-dashboard .onecrm-lead-edit-control :is(input.is-editing,textarea.is-editing){border-color:#4263df!important;box-shadow:0 0 0 2px rgba(66,99,223,.14)!important;background:#fff!important}
.onecrm-lead-dashboard .onecrm-lead-edit-form .onecrm-lead-edit-control{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:6px;align-items:stretch}.onecrm-lead-dashboard .onecrm-lead-edit-toggle{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center;justify-content:center;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;margin:auto 0;padding:0!important;border:0!important;border-radius:4px!important;background:#fff!important;color:#111!important;box-shadow:none!important;cursor:pointer}.onecrm-lead-dashboard .onecrm-lead-edit-toggle:hover{background:#f5f5f5!important;color:#000!important}.onecrm-lead-dashboard .onecrm-lead-edit-toggle:focus-visible{outline:2px solid #111;outline-offset:2px}.onecrm-lead-dashboard .onecrm-lead-edit-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:#111;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.onecrm-lead-dashboard .onecrm-lead-pagination{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
