.left-sidebar { background: #ffffff; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); padding: 14px 14px 10px 14px; margin-left: 0; height: auto; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
.right-sidebar { background: #ffffff; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); padding: 14px 14px 10px 14px; height: auto; display: flex; flex-direction: column; width: 100%; box-sizing: border-box; }
.sidebar-title { margin: 0 0 10px 0; font-weight: 700; font-size: 1.12rem; padding: 10px 12px; background: #f3f6ff; border-radius: 10px; border: 1px solid #e6ebf5; text-align: center; display: block; width: 100%; }
.sidebar-title--konfigre { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; box-shadow: 0 5px 15px rgba(102,126,234,0.18); }
.sidebar-subtitle { margin: 2px 0 6px 0; font-weight: 600; color: #667eea; }
.left-sidebar > .d-flex { margin-bottom: 6px !important; justify-content: center !important; }
.item-list { display: grid; grid-template-columns: 1fr; gap: 10px; max-height: calc(7 * 92px + 6 * 10px); overflow-y: auto; overflow-x: hidden; min-height: 0; padding-right: 4px; scrollbar-gutter: stable; }
.right-sidebar .item-list { background: #f3f6ff; border: 1px solid #e6ebf5; border-radius: 10px; padding: 8px; max-height: calc(6 * 92px + 5 * 10px); overflow-y: auto; overflow-x: hidden; min-height: 0; }
.item-card { display: flex; align-items: center; gap: 10px; border: 1px solid #eef2f7; border-radius: 10px; padding: 8px; background: #f9fbff; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; }
.item-card:hover { box-shadow: 0 8px 22px rgba(102,126,234,0.18); transform: translateY(-1px); }
.item-card.selected { border-color: #667eea; box-shadow: 0 8px 22px rgba(102,126,234,0.22); }
.item-card img { height: 70px; width: 70px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid #e6ebf5; }
.item-name { font-size: 0.95rem; font-weight: 600; color: #1f2937; white-space: pre-line; }
.item-name[contenteditable="true"] { outline: none; border-bottom: 1px dashed transparent; }
.item-name[contenteditable="true"]:focus { border-bottom: 1px dashed #667eea; }
.canvas-wrap { background: transparent; box-shadow: none; padding: 0; display: flex; justify-content: center; align-items: center; height: 100%; }
canvas#armsCanvas { background: #0C1623; display: block; border-radius: 12px; width: 970px; height: auto; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.sidebar-col { flex: 0 0 400px !important; width: 400px !important; min-width: 400px !important; max-width: 400px !important; display: flex; flex-direction: column; box-sizing: border-box; }
.right-col { flex: 0 0 400px !important; width: 400px !important; min-width: 400px !important; max-width: 400px !important; }
.canvas-col { flex: 0 0 1050px !important; width: 1050px !important; min-width: 1050px !important; max-width: 1050px !important; display: flex; align-items: flex-start; justify-content: center; overflow-x: auto; box-sizing: border-box; }
.config-layout { justify-content: center; padding-left: 0; padding-right: 0; flex-wrap: nowrap; --bs-gutter-x: 0; --bs-gutter-y: 0; margin-left: auto !important; margin-right: auto !important; width: 1930px; }
.config-layout.row { margin-left: auto !important; margin-right: auto !important; }
main.container-fluid { padding-left: 0; padding-right: 0; }
.sidebar-col:first-of-type { padding-right: 0; }
.canvas-col { padding-left: 0; padding-right: 0; }
.canvas-col > canvas#armsCanvas { margin-left: auto; margin-right: auto; }
.sidebar-col:last-of-type { padding-left: 0; }
.btn-undo { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 5px 12px rgba(102,126,234,0.24); padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 1.0rem; }
.btn-undo:hover { filter: brightness(1.05); box-shadow: 0 8px 18px rgba(102,126,234,0.28); color: #fff !important; }
.btn-undo:active { transform: translateY(0.5px); }
.measure-wrap { border: 1px dashed #e6ebf5; background: #f9fbff; border-radius: 10px; padding: 10px; margin-top: 10px; }
.measure-wrap--global { margin-top: 12px; }
.measure-title { font-weight: 700; font-size: 1.0rem; padding: 8px 14px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 8px; border: none; text-align: center; margin-bottom: 10px; box-shadow: 0 5px 12px rgba(102,126,234,0.24); }
.measure-row { display: flex; align-items: center; gap: 10px; }
.measure-input { flex: 1; min-width: 0; border: 1px solid #e6ebf5; border-radius: 8px; padding: 8px 10px; outline: none; text-align: center; }
.measure-input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.15); }
.measure-ok { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff !important; border: none; box-shadow: 0 5px 12px rgba(102,126,234,0.24); padding: 8px 14px; border-radius: 8px; font-weight: 700; margin-left: 6px; display: inline-block; width: auto; flex: 0 0 auto; white-space: nowrap; font-size: 1.0rem; }
.measure-ok:hover { filter: brightness(1.05); box-shadow: 0 8px 18px rgba(102,126,234,0.28); color: #fff !important; }
.measure-ok:active { transform: translateY(0.5px); }
.btn-teklif { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 5px 12px rgba(102,126,234,0.24); padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 1.0rem; }
.btn-teklif:hover { filter: brightness(1.05); box-shadow: 0 8px 18px rgba(102,126,234,0.28); color: #fff !important; }
.btn-teklif:active { transform: translateY(0.5px); }
.qmodal-img { width: 50% !important; height: auto; display: block; margin-left: auto; margin-right: auto; }
.parts-list, .parts-list .part-row, .parts-list .part-name, .item-card .item-name { color: #000; }
.qmodal-title.sidebar-title { max-width: 70%; margin-left: 0; margin-right: 0; }
.qmodal-list { max-width: 70%; }
.qmodal-left-col { display: flex; flex-direction: column; align-items: flex-start; }
.qmodal-left-col .qmodal-img { margin-left: 0; margin-right: 0; }
.profile-mode .item-card { transition: none; }
.profile-mode .item-card:hover { box-shadow: none; transform: none; }
.profile-mode .item-card.selected { border-color: #e6ebf5 !important; box-shadow: none !important; }
.profile-mode .item-card img { outline: none !important; box-shadow: none !important; }
.item-card:focus, .item-card img:focus { outline: none !important; }
.item-thumb { height: 50px !important; width: 50px !important; }
.modal .form-label { color: #000; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.label-strong { font-weight: 700; font-size: 1.05rem; }
.modal .form-label .req { color: #d00; font-weight: 700; display: inline; margin-left: 4px; }
.qmodal-section { background: #f3f6ff; border: 1px solid #e6ebf5; border-radius: 10px; padding: 12px; }
#qmodal-form { background: #f3f6ff; border: 1px solid #e6ebf5; border-radius: 10px; padding: 12px; }
.qmodal-section > h5.sidebar-title, .qmodal-section > .sidebar-title { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; color: #fff !important; border: none !important; box-shadow: 0 5px 12px rgba(102,126,234,0.24) !important; padding: 10px 14px !important; border-radius: 8px !important; font-weight: 700 !important; font-size: 1.1rem !important; text-align: center !important; margin-bottom: 15px !important; }
.modal-content, #qmodal-form, .qmodal-section { background-color: #fff !important; border-color: #ddd !important; box-shadow: none !important; opacity: 1 !important; }
.qmodal-section #qmodal-form { background: transparent !important; border: none !important; padding: 0 !important; }
#qm_notes { min-height: 6.5rem; }
@keyframes invalidBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); } 50% { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.35); } }
.invalid-blink { animation: invalidBlink 0.8s ease; }
#emailVerificationSection { background: #f7faff; border: 1px solid #e6ebf5; border-radius: 10px; padding: 14px 14px; margin-top: 10px; }
#verificationStatusSection small { font-size: 0.92rem; }
#verificationStatusSection { margin-bottom: 6px; }
#emailVerificationSection .input-group.input-group-sm > .form-control { padding-top: 0.35rem; padding-bottom: 0.35rem; }
#emailVerificationSection #evCode { width: 28ch; flex: 0 0 auto; padding-top: 0.5rem; padding-bottom: 0.5rem; border-radius: 8px; text-align: center; }
#emailVerificationSection #evCode::placeholder { text-align: center; font-weight: 700; opacity: 0.7; }
#emailVerificationSection .input-group { align-items: stretch; }
#emailVerificationSection .input-group { display: flex; gap: 8px; }
#emailVerificationSection #evCode { flex: 1 1 auto; }
#emailVerificationSection #evSendBtn { flex: 0 0 auto; white-space: nowrap; align-self: center; }
#emailVerificationSection #evSendBtn { width: auto !important; min-width: 110px; height: auto; padding: 0.45rem 0.8rem; line-height: 1.2; font-weight: 700; }
#qmodal-form .btn.btn-undo { width: 100%; padding-top: 0.6rem; padding-bottom: 0.6rem; font-weight: 700; }
#emailVerificationSection .ev-title { font-weight: 700; color: #000; margin-bottom: 12px; text-align: left; }
#emailVerificationSection .ev-title .req { color: #d00; font-weight: 700; }
#qmodal-form .invalid-feedback { display: block; font-size: 0.85rem; margin-top: 4px; }
#qmodal-form .invalid-feedback:empty { display: none !important; }
