Files
no-copy-frontend/src/app/styles/violation-details.scss
T

806 lines
13 KiB
SCSS
Raw Normal View History

2026-04-14 16:01:49 +07:00
@use './variable.scss' as v;
.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);
}
}
.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;
overflow: hidden;
* {
min-height: 0;
}
&-content {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
height: 100%;
overflow: hidden;
}
&-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-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
position: relative;
}
&-image {
width: 300px;
height: 200px;
position: relative;
background: #f5f5f5;
border-radius: 8px;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: contain;
}
}
&-image-buttons {
display: flex;
gap: 12px;
justify-content: center;
position: absolute;
bottom: 5px;
.image-btn {
width: 36px;
height: 36px;
border-radius: 8px;
border: 1px solid #e2e8f0;
background: white;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
&:hover {
background: #f1f5f9;
transform: scale(1.05);
}
&:active {
transform: scale(0.95);
}
}
}
&-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 {
padding: 10px;
position: relative;
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
}
&-choice {
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
gap: 10px;
h4 {
text-align: center;
font-size: 26px;
}
.violation-info-choice-buttons {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
.btn {
min-width: 180px;
}
}
}
&-tabs-wrapper {
position: relative;
height: 100%;
display: flex;
flex-direction: column;
min-height: 0;
.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-tabs {
display: flex;
gap: 20px;
padding: 10px;
flex-shrink: 0;
}
.btn-primary {
background: v.$bg-hover;
color: v.$text-p;
border: 2px solid transparent;
&.active {
background: linear-gradient(135deg, v.$p-color, v.$s-color);
color: v.$white;
border: 2px solid transparent;
}
}
}
.samples-wrapper {
max-width: 400px;
display: flex;
flex-direction: column;
min-height: 0;
flex: 1;
h5 {
font-size: 20px;
font-weight: 600;
margin-bottom: 5px;
border-bottom: 1px solid v.$border-color-1;
padding-left: 10px;
}
.samples-list {
overflow: auto;
flex: 1;
min-height: 0;
height: 100%;
&::-webkit-scrollbar-button {
display: none;
height: 0;
width: 0;
}
&::-webkit-scrollbar {
width: 6px;
height: 6px;
}
&::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 10px;
}
&::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 10px;
&:hover {
background: rgba(0, 0, 0, 0.3);
}
}
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
.sample-item {
margin-bottom: 5px;
border-bottom: 1px solid v.$border-color-1;
padding: 10px;
margin-bottom: 10px;
border-radius: 12px;
cursor: pointer;
&:hover {
background: v.$bg-light;
}
.sample-item-title {
font-size: 18px;
font-weight: 600;
}
.sample-item-text {
color: v.$text-s;
}
}
}
}
.complaint-details {
&-item {
margin-bottom: 10px;
}
&-title {
color: v.$text-s;
font-size: 16px;
font-weight: 400;
}
&-text {
color: v.$text-p;
font-weight: 600;
font-size: 18px;
}
}
}
.violation-page-note {
margin-top: auto;
margin-bottom: 0;
}
.note-form {
margin-top: 0;
border: none;
padding: 0;
.button-actions {
display: flex;
justify-content: end;
gap: 10px;
}
}
.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;
}
}
}
.image-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
cursor: pointer;
}
.image-modal-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
cursor: default;
img {
max-width: 100%;
max-height: 90vh;
object-fit: contain;
border-radius: 8px;
}
}
.image-modal-close {
position: absolute;
top: -40px;
right: 0;
background: none;
border: none;
color: white;
font-size: 32px;
cursor: pointer;
padding: 8px;
line-height: 1;
&:hover {
opacity: 0.8;
}
}