EchoTex_Payroll/HRM.UI/ClientApp/src/app/hrmopen-ai/hrmopen-ai-test/hrmopen-aiteast.component.scss

459 lines
8.2 KiB
SCSS
Raw Normal View History

2026-07-12 18:07:59 +06:00
.textarea-wrapper {
position: relative;
width: 100%;
}
textarea.formAITextArea {
font-size: 1rem;
padding: 0.75rem 2.5rem 0.75rem 0.75rem;
border-radius: 0.5rem;
resize: none;
width: 100%;
height: 78%;
box-sizing: border-box;
}
.clear-btn {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
font-size: 1.2rem;
color: #888;
z-index: 10;
padding: 0;
line-height: 1;
}
.clear-btn:hover {
color: #333;
}
.p-button-rounded {
width: 2.5rem;
height: 2.5rem;
}
.centered-info {
text-align: center;
margin-top: 12px;
color: red;
font-weight: bold;
}
.userPrompt{
cursor: pointer;
}
.userPrompt :hover{
color: #414278;
font-weight: bold;
}
.query-card-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.query-card {
background: white;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
padding: 4px 16px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
cursor: pointer;
position: relative;
border: 1px solid #cfcfcf;
}
.query-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.query-card-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.query-text {
flex: 1;
font-size: 14px;
line-height: 1.4;
max-height: calc(1.4em * 2);
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.query-arrow {
font-size: 18px;
color: #52527A;
padding-left: 10px;
user-select: none;
}
.query-arrow:hover {
color: #33334e;
}
.query-date {
font-size: 12px;
color: #777;
text-align: right;
margin-top: 4px;
}
.chart-icon {
margin-left: 8px;
color: #52527A;
font-size: 16px;
}
.chart-query {
background: #e6f7ff;
}
.search-box textarea {
resize: none;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
border: 1px solid #cfcfcf;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box textarea:focus {
border-color: #52527A;
box-shadow: 0 0 5px rgba(82,82,122,0.5);
outline: none;
}
.history-wrapper {
display: flex;
flex-direction: column;
height: 100%;
}
.search-box {
flex: 0 0 auto;
margin-bottom: 10px;
}
.scrollable {
flex: 1 1 auto;
overflow-y: auto;
max-height: 100%;
}
.scrollable::-webkit-scrollbar {
width: 6px;
}
.scrollable::-webkit-scrollbar-track {
background: #f5f5f5;
border-radius: 10px;
}
.scrollable::-webkit-scrollbar-thumb {
background-color: #d6d6d6;
border-radius: 10px;
border: 2px solid #f5f5f5;
}
.scrollable::-webkit-scrollbar-thumb:hover {
background-color: #bfbfbf;
}
.suggestions-dropdown {
position: absolute;
background: rgba(255, 255, 255, 0.85); /* semi-transparent */
backdrop-filter: blur(4px); /* blur effect */
border: 1px solid #cfcfcf;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
max-height: 350px;
overflow-y: auto;
width: 500px;
z-index: 1000;
padding: 0;
margin: 0;
list-style: none;
}
.suggestions-dropdown li {
padding: 6px 12px;
cursor: pointer;
border-bottom: 1px solid #d1d1d1;
}
.suggestions-dropdown li:hover {
background: #f0f0f0;
color: #333;
}
.suggestions-dropdown .chart-icon {
margin-left: 6px;
}
.textarea-wrapper {
position: relative;
width: 100%;
}
.formAITextArea {
width: 100%;
padding: 0.75rem 2rem 0.75rem 0.75rem;
border-radius: 0.5rem;
resize: none;
font-size: 1rem;
}
suggestions-dropdown li.suggestion-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 12px;
cursor: pointer;
}
.suggestions-dropdown li.suggestion-item:hover {
background: #f0f0f0;
}
.suggestions-dropdown .chart-icon {
margin-left: 8px;
float: right;
font-size: 16px;
color: #52527A;
}
.grid-chart-wrapper {
display: flex;
gap: 10px;
}
.grid-chart-wrapper.show-chart .grid-container {
width: 50%;
}
.grid-chart-wrapper.show-chart .chart-container {
width: 50%;
}
.grid-chart-wrapper:not(.show-chart) .grid-container {
width: 100%;
}
.chart-container {
height: 520px;
}
.export-buttons {
display: flex;
justify-content: flex-end;
gap: 5px;
padding: 3px;
}
.ai-error-message {
text-align: center;
background: #fee2e2;
color: #991b1b;
border: 1px solid #fecaca;
border-radius: 10px;
padding: 10px 15px;
margin: 10px auto;
max-width: 80%;
font-weight: 500;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.ai-guidance-card {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
margin: auto;
max-width: 80%;
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ai-guidance-title {
font-size: 1.2rem;
font-weight: 600;
color: #111827;
margin-bottom: 10px;
}
.ai-guidance-text {
color: #374151;
font-size: 0.95rem;
margin-bottom: 15px;
}
.ai-section {
margin-bottom: 12px;
}
.ai-section-title {
font-weight: 600;
color: #1e40af;
margin-bottom: 4px;
}
.ai-field-list {
margin: 0;
padding-left: 15px;
color: #1e3a8a;
font-size: 0.9rem;
}
.ai-field-list li {
margin: 3px 0;
}
.ai-tip {
margin-top: 15px;
background: #e0f2fe;
color: #0369a1;
padding: 8px 12px;
border-radius: 8px;
font-size: 0.9rem;
font-style: italic;
}
.ai-field-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.badge {
background: #f1f3f5;
padding: 4px 10px;
border-radius: 12px;
font-size: 13px;
color: #495057;
}
.export-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #dee2e6;
border-radius: 5px;
margin-bottom: 5px;
}
.total-label {
font-weight: bold;
color: red;
font-size: 14px;
margin-left: 5px;
}
.total-count {
color: #000;
margin-left: 4px;
}
.export-toolbar.justify-end {
justify-content: flex-end;
}
.export-buttons .k-button-md {
padding-block: 2px !important;
padding-inline: 2px !important;
}
.custom-grid .cell-wrap {
min-width: 150px;
white-space: normal;
word-wrap: break-word;
overflow-wrap: anywhere;
}
.custom-grid .k-grid-content {
overflow-x: auto !important;
}
.header-container {
display: flex;
align-items: center;
gap: 2px;
width: 100%;
}
.header-title {
flex: 1 1 auto;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 3px 3px;
}
.header-input {
flex: 1 1 auto;
min-width: 0;
padding: 3px 3px;
background: #ffffff;
border: 1px solid #b5b5b5;
border-radius: 5px;
}
.header-input:focus {
outline: 1px solid #b6d6f7;
background-color: #ffffff;
}
.edit-btn, .save-btn {
flex: 0 0 20px;
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
cursor: pointer;
font-size: 14px;
border-radius: 4px;
}
.save-btn {
font-weight: 600;
}
::ng-deep .grid-chart-wrapper .k-grid .k-cell-inner>.k-link {
padding: 4px 4px !important;
}
::ng-deep .k-toolbar {
padding: 4px 7px 1px 7px !important;
}
.delete-btn {
color: red;
flex: 0 0 20px;
width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
cursor: pointer;
font-size: 14px;
border-radius: 4px;
}
.edit-btn:hover, .save-btn:hover, .delete-btn:hover {
background: rgba(0,0,0,0.04);
}
.toolbar-title {
font-weight: bold;
margin-right: 8px;
}
.deleted-columns-container {
display: flex;
align-items: center;
gap: 0px;
max-width: 100%;
overflow-x: auto;
white-space: nowrap;
padding: 0px 0px 3px 0px;
}
.restore-btn {
flex: 0 0 auto;
margin-left: 4px;
padding: 2px 6px;
border: 1px solid #6263a0;
border-radius: 4px;
background: #e3f2fd;
cursor: pointer;
color: #495057;
}
.deleted-columns-wrapper {
display: flex;
align-items: center;
gap: 6px;
}
.toolbar-container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin-top: 8px;
}
.toolbar-left,
.toolbar-right {
display: flex;
align-items: center;
gap: 10px;
}
.toolbar-left {
justify-content: flex-start;
}
.toolbar-right {
justify-content: flex-end;
}
@media (max-width: 768px) {
.toolbar-container {
flex-direction: column;
align-items: stretch;
gap: 10px;
}
.toolbar-left,
.toolbar-right {
justify-content: space-between;
}
}