.ddm-segno-sblocco-group {
    margin-bottom: 12px;
}

.ddm-segno-sblocco-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.ddm-segno-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ddm-segno-row button[data-ddm-segno-open] {
    padding: 8px 14px;
    border: 1px solid #7c3aed;
    border-radius: 6px;
    background: #f5f3ff;
    color: #5b21b6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ddm-segno-row button[data-ddm-segno-open]:hover {
    background: #ede9fe;
}

.ddm-segno-row button[data-ddm-segno-clear] {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.ddm-segno-preview {
    font-size: 13px;
    color: #475569;
    font-family: ui-monospace, monospace;
}

.ddm-segno-preview.ddm-segno-set {
    color: #5b21b6;
    font-weight: 600;
}

.ddm-segno-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ddm-segno-modal {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.ddm-segno-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.ddm-segno-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.ddm-segno-modal-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.ddm-segno-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ddm-segno-grid-wrap {
    border: 2px solid #93c5fd;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
    background: #fff;
    touch-action: none;
    user-select: none;
}

.ddm-segno-grid-wrap svg {
    display: block;
    cursor: crosshair;
}

.ddm-segno-dot {
    fill: #fff;
    stroke: #7c3aed;
    stroke-width: 2;
}

.ddm-segno-dot-center {
    fill: #7c3aed;
    pointer-events: none;
}

.ddm-segno-dot.ddm-segno-active {
    fill: #dbeafe;
    stroke: #6366f1;
    stroke-width: 3;
}

.ddm-segno-line {
    stroke: #7c3aed;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.ddm-segno-modal-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.ddm-segno-modal-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.ddm-segno-modal-actions button[data-ddm-segno-confirm] {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff;
}

.ddm-segno-hint {
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.ddm-segno-mini {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 6px;
}

.ddm-segno-print-wrap {
    text-align: center;
    margin: 6px 0;
}

.ddm-segno-print-wrap svg {
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #fff;
}

.ddm-segno-print-code {
    font-size: 11px;
    text-align: center;
    color: #475569;
}
