change matched table layout

This commit is contained in:
smanylov
2026-04-14 16:01:49 +07:00
parent 35b7f82ad9
commit c4aefdb8b9
9 changed files with 1335 additions and 853 deletions
-613
View File
@@ -4255,619 +4255,6 @@
}
}
.violation-details {
.page-title-color-frame {
display: flex;
gap: 10px;
.violation-page-icon {
width: 80px;
height: 80px;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.3);
overflow: hidden;
.icon {
width: 100%;
height: 100%;
}
}
.violation-page-info {
display: flex;
gap: 10px;
}
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid v.$border-color-1;
}
.info-row {
display: flex;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid #f8fafc;
}
.info-label {
color: #64748b;
font-size: 14px;
}
.info-value {
color: #1e293b;
font-weight: 600;
font-size: 14px;
text-align: right;
}
.violation-source {
margin-top: 15px;
&-title {
font-size: 14px;
color: #64748b;
margin-bottom: 8px;
font-weight: 600;
}
.url-display {
background: #f8fafc;
padding: 12px;
border-radius: 8px;
border: 1px solid v.$border-color-1;
margin-top: 10px;
word-break: break-all;
.url-link {
color: #6366f1;
text-decoration: none;
font-weight: 600;
}
}
}
.notes-section {
background: #f8fafc;
padding: 15px;
border-radius: 12px;
margin-top: 15px;
border: 1px solid v.$border-color-1;
text-align: left;
.notes-title {
font-size: 14px;
font-weight: 600;
color: #1e293b;
margin-bottom: 10px;
text-align: left;
}
.notes-content {
font-size: 13px;
color: #475569;
line-height: 1.6;
white-space: pre-line;
max-height: 200px;
overflow-y: auto;
text-align: left;
word-wrap: break-word;
margin: 0;
padding: 0;
}
}
.stats-mini-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-bottom: 20px;
.stat-mini-card {
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
padding: 15px;
border-radius: 12px;
text-align: center;
border: 1px solid v.$border-color-1;
}
.stat-mini-value {
font-size: 28px;
font-weight: 700;
color: #1e293b;
margin-bottom: 5px;
}
.stat-mini-label {
font-size: 12px;
color: #64748b;
}
}
.btn-small {
padding: 6px 12px;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
&:disabled {
opacity: 0.6;
}
}
.btn-primary-small {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: white;
&:hover {
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
}
.btn-secondary-small {
background: #f1f5f9;
color: #64748b;
&:hover {
background: v.$border-color-1;
}
}
.sources-list-wrapper {
display: grid;
grid-template-columns: 1fr 3fr;
gap: 10px;
height: 80vh;
margin-bottom: 20px;
.sources-list {
display: flex;
flex-direction: column;
gap: 15px;
.source-card {
background: #fff;
border: 1px solid #f3f4f6;
border-radius: 20px;
box-shadow: 0 4px 20px #0000001a;
transition: all 0.3s ease;
padding: 15px;
height: calc(16vh - 12px);
cursor: pointer;
justify-content: space-between;
opacity: 0.75;
display: flex;
gap: 10px;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
border-color: #cbd5e1;
}
&.selected {
opacity: 1;
border: 1px solid #6366f1;
background: linear-gradient(180deg, #ffffff 0%, #e6eaf3 100%);
}
}
.source-header {
display: flex;
align-items: start;
justify-content: space-between;
margin-bottom: 10px;
gap: 5px;
&-left {
display: flex;
flex-direction: column;
}
&-right {
display: flex;
flex-direction: column;
align-items: end;
}
}
.source-image {
max-height: 80%;
min-height: 50px;
height: 100%;
position: relative;
img {
position: relative !important;
height: 100% !important;
border-radius: 8px;
width: auto !important;
}
}
.source-url-block {
margin-top: auto;
}
.source-url {
color: #6366f1;
font-weight: 600;
font-size: 14px;
text-decoration: none;
word-break: break-all;
flex: 1;
}
.source-meta {
gap: 15px;
font-size: 12px;
color: #64748b;
margin-bottom: 10px;
flex-wrap: wrap;
margin-right: 5px;
}
.source-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: auto;
}
}
}
.sources-list-pagination {
display: flex;
justify-content: space-between;
align-items: center;
}
.source-status {
padding: 4px 10px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
margin-bottom: 5px;
user-select: none;
&.new,
&.created {
background: v.$status-new;
}
&.showed {
background-color: v.$b-color-1;
}
&.legal_in_work,
&.complaint_in_work {
background: v.$status-in-work;
color: v.$white;
}
&.authorized_use {
background: v.$authorized-use;
}
}
.btn-action {
flex: 1;
width: 100%;
padding: 12px 20px;
border-radius: 12px;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.3s ease;
font-size: 14px;
max-width: 300px;
&:disabled {
opacity: 0.5;
}
}
.btn-case {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: white;
margin-bottom: 20px;
&:hover {
transform: translateY(-2px);
}
}
.btn-success {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
max-width: 200px;
padding: 6px 10px;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}
}
/* .btn-warning {
background: linear-gradient(135deg, #f59e0b, #d97706);
color: white;
}
.btn-secondary {
background: linear-gradient(135deg, #64748b, #475569);
color: white;
&:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4);
}
} */
.violation-info {
background: #fff;
border: 1px solid #f3f4f6;
border-radius: 20px;
box-shadow: 0 4px 20px #0000001a;
padding: 15px;
display: flex;
flex-direction: column;
height: 100%;
min-height: 500px;
&-content {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
&-grid {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 10px;
flex-grow: 1;
padding-bottom: 15px;
}
&-title {
border-bottom: 1px solid v.$border-color-1;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
display: flex;
}
&-image {
width: 300px;
height: 200px;
position: relative;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
}
&-right-side {
display: flex;
flex-direction: column;
gap: 10px;
}
&-source {
span {
color: #64748b;
margin-right: 5px;
}
a {
color: #6366f1;
word-break: break-all;
}
}
&-date-status {
display: flex;
gap: 10px;
.source-status {
margin-bottom: 0;
}
}
&-action {
margin-top: auto;
}
&-actions {
border-left: 1px solid v.$border-color-1;
padding-left: 15px;
}
&-header {
display: grid;
grid-template-columns: 300px auto;
gap: 10px;
flex-shrink: 0;
padding-bottom: 20px;
border-bottom: 1px solid rgb(226, 232, 240);
}
/* &-case-grid {
display: grid;
grid-template-rows: 1fr 1fr;
gap: 5px;
flex: 1;
min-height: 0;
overflow: auto;
} */
&-case {
padding: 10px;
position: relative;
&:first-child {
border-bottom: 1px solid rgb(226, 232, 240);
padding-bottom: 10px;
}
}
&-choice {
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
h4 {
text-align: center;
}
.violation-info-choice-buttons {
display: flex;
flex-direction: column;
align-items: center;
}
}
&-tabs-wrapper {
position: relative;
.violation-info-choice {
padding: 20px;
text-align: center;
}
.violation-info-choice-buttons {
display: flex;
gap: 16px;
justify-content: center;
margin-top: 16px;
}
.violation-info-choice-btn {
padding: 12px 24px;
border: 1px solid #ccc;
border-radius: 6px;
background: white;
cursor: pointer;
}
.violation-info-tab {
padding: 8px 16px;
border: none;
background: transparent;
cursor: pointer;
}
.violation-info-tab--active {
border-bottom: 2px solid blue;
color: blue;
}
}
}
.violation-page-note {
margin-top: auto;
margin-bottom: 0;
}
.note-form {
margin-top: 0;
border: none;
padding: 0;
}
.note-textarea {
width: 100%;
min-height: 80px;
padding: 12px;
border: 1px solid v.$border-color-1;
border-radius: 8px;
font-size: 14px;
font-family: inherit;
resize: vertical;
box-sizing: border-box;
background: #f8fafc;
&:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
&-wrapper {
display: flex;
flex-direction: column;
margin-bottom: 10px;
}
}
.note-form-flex {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.note-case-input {
border: 1px solid v.$border-color-1;
border-radius: 8px;
box-sizing: border-box;
background: #f8fafc;
padding: 5px;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
&:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
&::placeholder {
font-size: 12px;
}
}
.note-case-label {
font-weight: 600;
}
.note-form-group {
input {
display: block;
}
}
}
.popular-questions {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
border-radius: 20px;